[dotConnect for Oracle]how to save changes with POCO

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Lyu_KingT
Posts: 7
Joined: Thu 21 Oct 2010 06:08

[dotConnect for Oracle]how to save changes with POCO

Post by Lyu_KingT » Wed 10 Nov 2010 08:32

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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 11 Nov 2010 16:19

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.

Lyu_KingT
Posts: 7
Joined: Thu 21 Oct 2010 06:08

Post by Lyu_KingT » Mon 15 Nov 2010 01:52

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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 15 Nov 2010 16:26

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.

Post Reply