我们可以在ef6 codefirst方法中使用designer.cs文件,比如创建edmx文件 [英] Can we have designer.cs file in ef6 codefirst approach like creating edmx file

查看:100
本文介绍了我们可以在ef6 codefirst方法中使用designer.cs文件,比如创建edmx文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用代码优先的Entity Framework 6。我想在代码中使用designer.cs类第一种方法是否有可能我只是问你.....如果有可能那么如何获取或创建类文件。当我们同样创建edmx文件时,可以找到这个类。



我尝试了什么:



我没有尝试任何东西,因为我不知道如何创建它,或者它是否已经创建了它所在的位置。所以,任何人都可以帮我解决这个问题。

Hello I am having Entity Framework 6 with code first approach. I would like to have designer.cs class in code first approach can it be possible or not i am just asking you..... If it is possible then how to get or create the class file. This class can be found when we create edmx file right likewise i required.

What I have tried:

I doesn't try anything because i don't know how to create it or if it is already created then where it is located. So, please can anyone help me regarding this.

推荐答案

这个StackOverflow线程中有几个建议:

如何首先创建EntityFramework代码的可视化模型 [ ^ ]



如果您使用的是Visual Studio 2015或2017,则需要EF Power Tools社区版,而不是从接受的答案中链接的测试版:

实体框架6 Power Tools社区版 - Visual Studio Marketplace [ ^ ]
There are several suggestions in this StackOverflow thread:
How do you create a visual model of EntityFramework code first[^]

If you're using Visual Studio 2015 or 2017, you'll want the EF Power Tools community edition, rather than the beta version linked from the accepted answer:
Entity Framework 6 Power Tools Community Edition - Visual Studio Marketplace[^]


这篇关于我们可以在ef6 codefirst方法中使用designer.cs文件,比如创建edmx文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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