Page 1 of 1
EF4 CodeFirst working Oracle samples
Posted: Sun 06 Feb 2011 12:39
by Alladin
Hi there,
I'm looking for code first EF4 samples working with DevArt Oracle EF provider.
No Microsoft example works so far.
Any help would be appreciated.
Posted: Tue 08 Feb 2011 10:34
by AndreyR
I have sent you a simple example.
We plan to blog about CTP 5 support in the near future.
Posted: Tue 08 Feb 2011 11:11
by Alladin
Thank you very much / Большое Спасибо
Posted: Tue 08 Feb 2011 11:15
by Alladin
How does it work in Oracle:
[DatabaseGenerated(DatabaseGenerationOption.Identity)]
As far as I know, there is no identity columns...
Posted: Tue 08 Feb 2011 11:39
by AndreyR
Our code creates a sequence and a BEFORE INSERT trigger initializing the auto-increment column.
Posted: Fri 18 Feb 2011 11:25
by lancelotti
AndreyR wrote:Our code creates a sequence and a BEFORE INSERT trigger initializing the auto-increment column.
Can I get this generated Id automatically after SaveChanges?
Posted: Fri 18 Feb 2011 14:45
by AndreyR
EF code should populate this value automatically, if you have set the StoreGeneratedPattern attribute to Identity (actually, if the trigger and sequence are generated, you already have set this attribute correctly).
Posted: Thu 12 May 2011 14:42
by AndreyR
We have released an
article dealing with Code First support peculiarities here. It incorporates the changes introduced in EF 4.1 RTW.