Categories
Most popular tags
- mvc
- mvc-3
- seo-tips
- standards
- website
- application-pool
- business-card
- china
- code-first
- coding
- company-history
- database
- design
- disability
- ecommerce
- ef-code-first
- global-design
- google-chrome
- google-plus
- internet
Achives 2012
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.- 1
