net 视图的调用和开发

1.调用视图

声明实体类

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

posted @ 2017-08-08 11:57  李寒星  阅读(271)  评论(0编辑  收藏  举报