Our Blog

How to disable Identity for int primary keys using EF Code-First

Posted on Monday, 02 May 2011 by nestor in How To

EF Code-First uses conventions to beautifully create identity field for us when defining int primary keys. However, there are times that we don't want the database generate the primary key values for us. Here are two ways to avoid Code-First set identity fields on int primary keys.

Continue reading…

  • 1
| total: 1 | page: 1 / 1