1. 程式人生 > >使用EF操作資料必須設定主鍵

使用EF操作資料必須設定主鍵

Unable to update the EntitySet 'UserType' because it has a DefiningQuery and no <InsertFunction> ele

資料庫沒有主鍵

【1】新增主鍵

【2】在edmx中更新