I've been reading up on DataObjects.Net in the Manual. I see that Entities are fully transactional objects, meaning one can only persist objects within a transaction, which is fine for batch runs. At page 71 of the Manual there is mention of Disconnected Operations. Since we are writing a WPF Program we don't want transactions to be open during editing by the user. We will be using Disconnected Entities which will be persisted at a later time (with concurrency handling and so on).

When we want to implement this we will need a full description, on how to realize this, pretty soon. In the Manual this is missing at the moment. Can you provide us with a (draft) description?

Regards Paul Sinnema Diartis AG

Updated at 04.06.2010 13:22:44

Thanks, I'll take a look

Updated at 15.06.2010 9:54:30

Hi Alex,

Would you consider the following example a good practice with DO4?

At the start of our Application we open a Domain and a Session. A DisconnectedState attaches to the Session During several minutes we allow the User to read, add, update and remove data At a certain moment (primarely when the users leaves the current screen) we persist the data to the DB

This means that we keep a Domain, Session and DisconnectedState open for as long as the Program is running.

Regards Paul Sinnema Diartis AG

This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked Jun 03 '10 at 09:54

Paul%20Sinnema's gravatar image

Paul Sinnema

Exactly - thanks a lot. There is also OrderAccounting sample in Sandbox, but it will be updated soon (current version isn't simple enough).

(Jun 03 '10 at 09:54) Alex Yakunin Alex%20Yakunin's gravatar image

Yes, that's ok. But remember:

  • Likely, you'll need several Sessions & DisconnectedState. E.g. in MDI app.

  • You must balance between amount of consumed RAM and DisconnectedState lifetime, if you really frequently update it.

(Jun 03 '10 at 09:54) Alex Yakunin Alex%20Yakunin's gravatar image

When you install latest official published version (4.2.1 or 4.3 RC2) than you find in start menu under "DataObjects..." folder, sample called "WPF Sample" which uses disconnected scenario you describe.

(Jun 03 '10 at 09:54) Peter Ĺ ulek Peter%20%C5%A0ulek's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Jun 03 '10 at 09:54

Seen: 1,513 times

Last updated: Jun 03 '10 at 09:54

powered by OSQA