The property 'text' is part of the object's key information and cannot be modified

前端 未结 4 828
青春惊慌失措
青春惊慌失措 2021-01-12 05:58

So I have a table in the database, with a column that is simply an nvarchar(800).

When I try to do:

try
{
    UserTable = (from x in entities.userTab         


        
4条回答
  •  清酒与你
    2021-01-12 06:18

    Is there a PK on the table at all? If not, EF uses all of the fields/columns as part of the "key information."

提交回复
热议问题