HiI'm using DbFirst,if I set
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] attribute on the ID
column after a model refresh it will be lostthanks
From: Daniel Rail <dan...@accra.ca>To:
"firebird-net-provider@lists.sourceforge.net"
<firebird-net-provider@lists.sourceforge.net>Sent: Saturday, August 26, 2017,
4:37:44 PM GMT+3Subject: Re: [Firebird-net-provider] EF - last inserted ID is 0
Hi,
At August 26, 2017, 1:38 AM, Mr. John via Firebird-net-provider wrote:
|
| Hi.
Thanks Paul for your answer
For my first code I've followed this:
https://stackoverflow.com/questions/4068084/how-to-find-an-identity-of-the-last-inserted-row-in-entity-framework
and that seems not to apply to FB? |
That's how I do it. Just make certain that you are using the
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] attribute on the ID
column in the myTableEnt entity.
--
Best regards,
Daniel Rail
Senior Software Developer
ACCRA Solutions Inc. (www.accra.ca)
ACCRA Med Software Inc.
(www.filopto.com)------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider