【发布时间】:2019-10-06 08:19:08
【问题描述】:
假设我有一个客户表,并且想使用原始 SQL 进行查询。以下代码不起作用:
List<Customer> customers = _db.Customer.FromSql("SELECT * FROM Customer").ToList();
失败并显示错误代码
'42P01:关系“客户”不存在'
【问题讨论】:
标签: sql postgresql entity-framework-core quoted-identifier