Code First approach - DEFAULT_VALUE for table columns using existing sequence in DB
Posted: Fri 21 Nov 2014 08:54
Hi,
In our application we are using EntityFramework 6.1 with code first and the Devart dotConnect Data Provider v8.4.264.6 for Oracle. I have a question regarding the DEFAULT_VALUE for table columns. I found an example solving this issue when using EntityFramework with the model first approach here: http://blog.devart.com/set-identity-and ... ggers.html .
We are looking for a similar solution with Devart dotConnect for the code first approach.
Right now we have an Oracle database (version 11g) and would prefer to use only the existing sequence for generating of identity (ID) column value, without having to use the trigger defined in the Oracle database.
Is this possible with dotConnect and the code first approach?
Regards
Jaroslav
In our application we are using EntityFramework 6.1 with code first and the Devart dotConnect Data Provider v8.4.264.6 for Oracle. I have a question regarding the DEFAULT_VALUE for table columns. I found an example solving this issue when using EntityFramework with the model first approach here: http://blog.devart.com/set-identity-and ... ggers.html .
We are looking for a similar solution with Devart dotConnect for the code first approach.
Right now we have an Oracle database (version 11g) and would prefer to use only the existing sequence for generating of identity (ID) column value, without having to use the trigger defined in the Oracle database.
Is this possible with dotConnect and the code first approach?
Regards
Jaroslav