1.调用视图
声明实体类
string sql = "select * from View_ExchangeDetails order by CreateTime desc";
var dataList = db.Database.SqlQuery<ExchanageDetails>(sql).ToList();
时间: 2024-10-01 04:42:54
1.调用视图
声明实体类
string sql = "select * from View_ExchangeDetails order by CreateTime desc";
var dataList = db.Database.SqlQuery<ExchanageDetails>(sql).ToList();