I want to know in ASP.NET MVC3, can we autoincrement primary key
In below site, there is a clear way to do this, but I could not see Identity See or Identity increment properties. Is this feature NOt available now (or) there is some other way.
http://dashingquill.web.officelive.com/blogs/create_comments_in_asp_net_mvc_website.aspx
Thanks
Suresh G
Identity is set in the database. MVC has nothing to do with it. When a field is set to be an Identity field, then when a new record is created, the field is automatically incremented by the database.