首页 > 代码库 > net 视图的调用和开发

net 视图的调用和开发

1.调用视图

声明实体类

  string sql = "select * from View_ExchangeDetails order by CreateTime desc";
 var dataList = db.Database.SqlQuery<ExchanageDetails>(sql).ToList();

net 视图的调用和开发