Getting NEXTVAL from sequence
Posted: Thu 12 Aug 2010 19:41
Hi,
Is there a way in dotConnect for ORACLE and EF to have the key value be populated automatically from a SEQUENCE?
I don't have control over the tables so I can't add a trigger to do this.
I can probably figure out a way to extract the connection string from the EF model and create a normal ADO.NET connection to get the NEXTVAL and then populate it in my entity prior to saving...
But, it would be nice if there was a way to put it in the model.
Thank you! Great product!
Is there a way in dotConnect for ORACLE and EF to have the key value be populated automatically from a SEQUENCE?
I don't have control over the tables so I can't add a trigger to do this.
I can probably figure out a way to extract the connection string from the EF model and create a normal ADO.NET connection to get the NEXTVAL and then populate it in my entity prior to saving...
But, it would be nice if there was a way to put it in the model.
Thank you! Great product!