ef-power-tools

A constructible type deriving from DbContext could not be found in the selected file (EF Power Tools Beta 3/Visual Studio 2012)

こ雲淡風輕ζ 提交于 2020-01-03 17:47:09
问题 I'm trying to use the "View Model" feature of the EF Power Tools Beta 3 as heavily depended on by Julie Lerman within Visual Studio 2012. I originally had the " sequence contains no matching element " problem many people seem to have encountered. The solution in the above article is an acceptable workaround that fixes the problem. I'm now encountering the second error: "A constructible type deriving from DbContext could not be found in the selected file" The proposed cause of the problem in

A constructible type deriving from DbContext could not be found in the selected file (EF Power Tools Beta 3/Visual Studio 2012)

被刻印的时光 ゝ 提交于 2020-01-03 17:47:04
问题 I'm trying to use the "View Model" feature of the EF Power Tools Beta 3 as heavily depended on by Julie Lerman within Visual Studio 2012. I originally had the " sequence contains no matching element " problem many people seem to have encountered. The solution in the above article is an acceptable workaround that fixes the problem. I'm now encountering the second error: "A constructible type deriving from DbContext could not be found in the selected file" The proposed cause of the problem in

EntityFramwork Power Tools error while generating views

冷暖自知 提交于 2019-12-25 10:01:57
问题 When trying to use the Generate Views function of EntityFramework Power Tools (0.9 beta), the generation fails and I get the following error at the Output window: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'System.ComponentModel.DataAnnotations.Schema.IndexAttribute' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at MyProject

why when i want use EF Power tools for view my model i get error?

天涯浪子 提交于 2019-12-12 12:51:40
问题 Im using EF Code first and i generate my model by "EF 4.x DbContext Fluent Generator for c#" extension in vs2010. but when i want to view my Entity model via EF Power tools i get this error:"Sequence Contains no matching element". is there any idea? 回答1: It's a bit too late and not sure if this would help but for others and historic reasons... I had the same issue (with Beta 3 - and .NET 4/2010/EF5 etc.) - the solution was relatively simple. I just moved out the project from the 'solution

Entity Framework Powertools Generating Views with Mysql and EF6

匆匆过客 提交于 2019-12-11 20:13:48
问题 I am using Entity Framework 6.1 with MySQL Server 5.5.35, and EF Powertools (latest version). I am able to run and use the framework fine and registered all the correct provider details in the application configuration file. Where I am having an issue is that I cannot use the right click Power tool function Generate Views, it keeps throwing up this exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.Entity.Core

Change name of generated Context file with EF PowerTools Reverse Engineer Code First

余生颓废 提交于 2019-12-10 15:56:42
问题 I have been attempting to figure out how to make the EF Power Tools - Reverse Engineer Code First use a different name for the generated Context-file , than what it uses now. Example I have a database called My_Awesome_Dev_Database . When I run Reverse-engineer against that, the file that is generated will be called: My_Awesome_Dev_DatabaseContext.cs What it would like to do is specify what the file is to be called, for instance: MyAwesomeDatabaseContext.cs Attempts so far I have tried

Improve navigation property names when reverse engineering a database

喜你入骨 提交于 2019-11-26 12:51:17
I'm using Entity Framework 5 with Visual Studio with Entity Framework Power Tools Beta 2 to reverse engineer moderately sized databases (~100 tables). Unfortunately, the navigation properties do not have meaningful names . For example, if there are two tables: CREATE TABLE Contacts ( ContactID INT IDENTITY (1, 1) NOT NULL, ... CONSTRAINT PK_Contacts PRIMARY KEY CLUSTERED (ContactID ASC) } CREATE TABLE Projects ( ProjectID INT IDENTITY (1, 1) NOT NULL, TechnicalContactID INT NOT NULL, SalesContactID INT NOT NULL, ... CONSTRAINT PK_Projects PRIMARY KEY CLUSTERED (ProjectID ASC), CONSTRAINT FK

Improve navigation property names when reverse engineering a database

别说谁变了你拦得住时间么 提交于 2019-11-26 03:07:48
问题 I\'m using Entity Framework 5 with Visual Studio with Entity Framework Power Tools Beta 2 to reverse engineer moderately sized databases (~100 tables). Unfortunately, the navigation properties do not have meaningful names . For example, if there are two tables: CREATE TABLE Contacts ( ContactID INT IDENTITY (1, 1) NOT NULL, ... CONSTRAINT PK_Contacts PRIMARY KEY CLUSTERED (ContactID ASC) } CREATE TABLE Projects ( ProjectID INT IDENTITY (1, 1) NOT NULL, TechnicalContactID INT NOT NULL,