1.调用视图
声明实体类
string sql = "select * from View_ExchangeDetails order by CreateTime desc";
var dataList = db.Database.SqlQuery<ExchanageDetails>(sql).ToList();
1.调用视图
声明实体类
string sql = "select * from View_ExchangeDetails order by CreateTime desc";
var dataList = db.Database.SqlQuery<ExchanageDetails>(sql).ToList();