现有数据库中的Entity Framework Core 2.0 Scaffold视图 [英] Entity Framework Core 2.0 Scaffold view from existing database

查看:88
本文介绍了现有数据库中的Entity Framework Core 2.0 Scaffold视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从Entity Framework Core 2.0中的现有数据库中脚手架视图?

Is it possible to scaffold view from existing database in Entity Framework Core 2.0?

类似下面的命令:

Scaffold-DbContext "Server=xxx;Database=xxx; User Id=xxx; Password=xxx;"  
                   Microsoft.EntityFrameworkCore.SqlServer        
                   -OutputDir Models -Context TestStare 
                   -Tables Osebe -Views View1 -Force

推荐答案

否,不支持,目前在待办事项列表中: https://github.com/aspnet/EntityFrameworkCore/issues/1679

No, it is not supported, currently in the Backlog: https://github.com/aspnet/EntityFrameworkCore/issues/1679

这篇关于现有数据库中的Entity Framework Core 2.0 Scaffold视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆