我有一个包含 View 的数据库,在我的旧 pre-Core 应用程序中,我严重依赖它来检索信息。
但是,对于 EF 7 - 使用 dnx ef dbcontext scaffold "Data Source=myServerName; Initial Catalog=myDatabaseName; Integrated Security=True"EntityFramework.SqlServer
仅支持/允许我使用 表。无论如何,我可以使用 EF 7 访问我的 View 数据吗?
最佳答案
不幸的是没有。 EF Core 不支持 View (目前)。在 EF Core 上查看此问题:https://github.com/aspnet/EntityFramework/issues/1679
关于c# - 在 ASP.NET Core 1.0 中使用 Entity Framework 7 搭建 SQL Server View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36164183/