全,我试图使用SqlQuery Hibernate类来创建一个非实体POJO的列表,但是在尝试将这些列化名时遇到了麻烦。当我试图在sql (例如SELECT o.id as orderId, ps.code as prescriptionStatus...)中放置别名时,hibernate抱怨它找不到列"x",其中列"x“是非别名的列名(例如"id”而不是"orderId")。如果我没
我希望使用dapper和这样的查询从表中检索数据: public IActionResult Index() ViewBag.accounts = GetAccountLists().OrderByDescending(x => x.AccountName).ToList();
using (var connection = new NpgsqlConnect