錯誤描述:
調用EF中的FirstOrDefault()時,報錯誤:An error occurred while executing the command definition. See the inner exception for details.
解決方案:
一般是代碼中的表或者字段無法與數據庫對應導致,檢查代碼中的表名稱或字段名稱與數據庫表或字段名稱是否一致。
錯誤描述:
調用EF中的FirstOrDefault()時,報錯誤:An error occurred while executing the command definition. See the inner exception for details.
解決方案:
一般是代碼中的表或者字段無法與數據庫對應導致,檢查代碼中的表名稱或字段名稱與數據庫表或字段名稱是否一致。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。