我们可以在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[^]