好吧,我已经坚持了一个星期这些错误,我已经搜索了很多解决方案,但它们似乎都不像我的情况。
我更改了数据库中的一种数据类型并从数据库中更新了模型后,有两个警告错误和多个警告。
警告是: 消息1验证(ASP.Net):属性'HeaderSelectedCssClass'不是元素'AccordionPane'的有效属性。
->Warning 17 The variable 'f' is declared but never used
->Warning 15 The variable 'ex' is declared but never used
->Warning 20 The variable 'e' is declared but never used
->Warning 29 Error 6013: The table/view 'C:\USERS\\APP_DATA\CMSDB.MDF.dbo.View' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it.
->Warning 28 Error 6013: The table/view 'C:\USERS\\APP_DATA\CMSDB.MDF.dbo.totalOTHours' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it.
按照我在项目中找到确切文件的错误,我发现这两个甚至都不是一张桌子。
那么,我该如何应对呢?
任何建议都表示赞赏。