Page 1 of 1

[dotConnect for Oracle]how to save changes with POCO

Posted: Wed 10 Nov 2010 08:32
by Lyu_KingT
0. i create a model including inheritances and associations using devart entity developer, the target DBMS is oracle 10g, the project is named ORM, so we have orm.dll;
1. i generate POCO codes from *.edml (under the instruction from devar blog, link below) in project named POCO, so we have POCO.dll
2. now can i use (only use) POCO.dll to save changes (insert, update, delete) to Oracle with dotConnect for Oracle?

thx.

Posted: Thu 11 Nov 2010 16:19
by AndreyR
Take a look at this blog post dealing with change tracking with POCO Entities.
Here is another link dealing with detecting changes in POCO entities.

Posted: Mon 15 Nov 2010 01:52
by Lyu_KingT
AndreyR wrote:Take a look at this blog post dealing with change tracking with POCO Entities.
Here is another link dealing with detecting changes in POCO entities.
thanks for your reply,
do you mean that POCO.Context.SaveChanges() is independence from devart dotConnect for Oracle? because the links you gave me are from MSDN.com.
but some replies on MSDN forum show that the default ADO .NET cannot save changes to Oracle with POCO.Context.SaveChanges().

http://social.msdn.microsoft.com/Forums ... b0122828b/

so without dotConnect for Oracle, can i save changes to Oracle?

if i have to use dotConnect for Oracle to save changes with POCO, how to configure the app.config?

thx.

Posted: Mon 15 Nov 2010 16:26
by AndreyR
dotConnect for Oracle is necessary for the Devart Entity Framework support.
After it is installed, you can perform the steps mentioned in this blog post to work with POCO objects like it is described in the tutorials I have specified in my previous answer.