使用EF查询POSTGRESQL中一张表时发生报错
var list = mealContext.OrderPlans.ToList();
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
Npgsql.PostgresException (0x80004005): 42703: 字段 o.OrderType 不存在
Exception data:
Severity: 错误
SqlState: 42703
MessageText: 字段 o.OrderType 不存在
Hint: 也许您想要引用列"o.OrderCode"。
数据库中是有这个字段的反编译成的sql语句我在库中运行成功了
看一下db和entity 字段OrderType是否对应上了