[英]Scaffolding SQL Server Views with Entity Framework 7 in ASP.NET Core 1.0?
I have a database which holds views, and in my old pre-Core app, I relied on it heavily to retrieve information. 我有一个保存视图的数据库,在我以前的核心应用程序中,我非常依赖它来检索信息。
However, with EF 7 - using dnx ef dbcontext scaffold "Data Source=myServerName; Initial Catalog=myDatabaseName; Integrated Security=True" EntityFramework.SqlServer
only scaffolds/allows me to use tables . 但是,使用EF 7 - 使用
dnx ef dbcontext scaffold "Data Source=myServerName; Initial Catalog=myDatabaseName; Integrated Security=True" EntityFramework.SqlServer
only scaffolds /允许我使用表格 。 Is there anyway I can access my view data with EF 7? 无论如何我可以使用EF 7访问我的视图数据吗?
Unfortunately no. 抱歉不行。 EF Core does not support views (yet).
EF Core不支持视图(尚未)。 See this issue on EF Core: https://github.com/aspnet/EntityFramework/issues/1679
在EF Core上查看此问题: https : //github.com/aspnet/EntityFramework/issues/1679
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.