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 <j...@cincura.net>To:
> "firebird-net-provider@lists.sourceforge.net"
> <firebird-net-provider@lists.sourceforge.net>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
> 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


Links:

  1. 
https://www.tabsoverspaces.com/230841-generated-primary-key-in-entity-framework-model-from-firebird/
------------------------------------------------------------------------------
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

Reply via email to