ADO.NET Entity Framework and identity columns

前端 未结 10 1518
甜味超标
甜味超标 2020-12-29 18:06

Is the Entity Framework aware of identity columns?

I am using SQL Server 2005 Express Edition and have several tables where the primary key is an identity column. w

10条回答
  •  一生所求
    2020-12-29 18:28

    Entity Framework is aware and can handle identity columns.

    Your problem can be maybe not the EF itself but the generated formview of it. Try to delete the input for the identity column from the insert form and let's see what happens.

提交回复
热议问题