From: Jiří Č. <ji...@ci...> - 2017-08-29 07:40:33
|
With DB First you can set it up in Properties the same way. Or you can use https://www.tabsoverspaces.com/230841-generated-primary-key-in-entity-framework-model-from-firebird[1]/. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Tue, Aug 29, 2017, at 08:44, Mr. John via Firebird-net-provider wrote:> Hi.I'm using Db first and as I found that is about code firstIf > I'm wrong> please someone give me some tips about using thatthanks. > > From: Jiří Činčura <ji...@ci...>To: > "fir...@li..." > <fir...@li...>Sent: Monday, August 28,> 2017, 2:48:44 PM GMT+3Subject: Re: [Firebird-net-provider] EF - last > inserted ID is 0 > Why so complex. Just use > https://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.configuration.primitivepropertyconfiguration.hasdatabasegeneratedoption(v=vs.113).aspx> and that's it. You should consider you entities store agnostic, > in fact.> > -- > Mgr. Jiří Činčura > https://www.tabsoverspaces.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 > Fir...@li... > 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 > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider Links: 1. https://www.tabsoverspaces.com/230841-generated-primary-key-in-entity-framework-model-from-firebird/ |