C# .NET 4.0 MVC Inserting a record with primary key

前端 未结 2 1213
再見小時候
再見小時候 2020-12-30 06:19

We have a database with a tables called \'Sites\' This table has the columns, SiteID, Name, Tags, Description, URI, with SiteID being a primary key (It is not set as an Iden

2条回答
  •  甜味超标
    2020-12-30 07:00

    I think you can understand your problem and solve it reading this article: http://leedumond.com/blog/using-a-guid-as-an-entitykey-in-entity-framework-4/

提交回复
热议问题