hi,
i'm using Gen Pro Version 3.0 Final (with selfservicing) for a ms sql server 2008 database in
a client server scenario (.net 3.5 sp1), in wich entities are loaded on the server an passed with web services (wcf) to the client. only the server has a connection to the database.
now the problem:
if i load an existing entity or create a new one on the server and send it via wcf to the client, i cant't access the collection properties to related entities. there comes an InvalidOperationException with the message "the connection was not initialized". as far as i understand, the entity tries to (lazy) load the related entities, but has no connection to the database.
but i don't want to lazy load the objects on client. if they are not loaded on server, a collection should be null or empty.
how can i transfer an entity via wcf without getting InvalidOperationExceptions by accessing properties from the entity?
best regards,
shennig