摘要: 问题来源:项目需要进行查询操作,会涉及多表间的联合查询,使用Entity Framework会牵涉到效率问题,为增加查询速度,所以使用数据库视图技术,综合来讲是将Model类映射到数据库View。来自MSDN的一篇文章Mapping to an Indexed View:1) You can certainly use Code First to map to a view, just tellCode Firstthat it's a table and it will use the same SQL against the view that it would for a tab 阅读全文
posted @ 2013-11-25 20:46 super 86 阅读(1886) 评论(0) 推荐(0) 编辑