Questions tagged [ef-power-tools]

For issues relating to the EF Power Tools.

EF Power Tools is used for reverse engineering and generating read-only entity data model for code-first.

Resources:

67 questions
59
votes
4 answers

Improve navigation property names when reverse engineering a database

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…
marapet
  • 54,856
  • 12
  • 170
  • 184
8
votes
2 answers

EF Core power tools generate nullable Boolean

I am using EF Core Power Tools version 2.4.0 with Miccrosoft.EntifyFrameworkCore.SqlServer version 2.2.6 I have SQL table column IsActive defined as [IsActive] [bit] NOT NULL I use EF Core Power Tool's reverse engineering to generate entities and DB…
LP13
  • 30,567
  • 53
  • 217
  • 400
5
votes
1 answer

Handling foreign keys in multiple contexts/domains using Entity Framework Code First and Migrations

I'm building a new system that utilizes data from an existing legacy system. A requirement is for our application to use the same physical database but a different schema for isolation. Our application will need read access only from the dbo schema,…
Mike Cole
  • 14,474
  • 28
  • 114
  • 194
5
votes
1 answer

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

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…
Brett Postin
  • 11,215
  • 10
  • 60
  • 95
4
votes
3 answers

Data annotations for handling empty strings

I use the EF Core Powertools to reverse-engineer a set of tables from my Db into an EF data model. When creating a record in a table, one or more varchar fields are marked as allowing null. If I update my entity attributes on these fields to…
bitshift
  • 6,026
  • 11
  • 44
  • 108
4
votes
1 answer

How can I install Entity Framework Power Tools for Visual Studio 2017?

I try to install Entity Framework Power Tools for Visual Studio 2017 but it does not see Visual Studio 2017. What should I do?
4
votes
1 answer

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

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…
user191152
4
votes
1 answer

Unable to reverse-engineer code-first with EFPowerTools Beta2 VS2012

I want to reverse-engineer code first using PowerTools. It works when I reverse engineer from a local MS-SQL database, but not from Oracle DB. I get the following errors in the output console: System.Data.ProviderIncompatibleException: The…
solidau
  • 4,021
  • 3
  • 24
  • 45
3
votes
0 answers

EF Core Power Tools : use identitiydbcontext

I have been using EF Core Power Tools to reverse engineer an existing SQL database. We are now at the stage where we wanted to implement identity, I have setup the program.cs with this code: builder.Services .AddIdentity
Paritosh
  • 4,243
  • 7
  • 47
  • 80
3
votes
1 answer

EF 6 Core - Many-to-Many Relationship Database First (EF Core Power Tools/scaffold-dbcontext)

I am having trouble trying to make my models generate like they used to before EF Core. I have tried using both EF Core Power Tools and the scaffold-dbcontext command with no success. Most answers I've seen on Google => Stackoverflow mentioned…
Morgs
  • 1,558
  • 3
  • 19
  • 34
3
votes
1 answer

Combine EF Power Tools and .edmx to generate CodeFirst Class And DB

I use this step for generating CodeFirst Classes in my MVC project: 1) run my app with membership support and call MVC Action that use membership to create membership default tables (Membership,User,UserInRoles,...) 2) add new .edmx file to my…
b24
  • 2,425
  • 6
  • 30
  • 51
3
votes
1 answer

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

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?
Masoud
  • 8,020
  • 12
  • 62
  • 123
2
votes
0 answers

Pre generated views using entity framework power tool are not working

I am using entity framework with DB first approach. I have migrated from EF5 to EF6 successfully. In EF5, I was using pre generated views to improve startup performance. In EF6, it is not working. I have generated views using power tool. Power tool…
Swapnil K
  • 21
  • 4
2
votes
0 answers

EF Power Tools generates no views for relationships

(Not new to SO, but new to asking questions, so pardon mistakes. Thanks.) I used EF Power Tools to pre-generate views, but then I saw "return null;" at the end of the following method of the generated class, and so I wanted to find out when (or if)…
2
votes
1 answer

Visual Studio Ultimate 2013 crashes when using Entity Framework Power Tools Beta 4

I'm running VS Ultimate 2013 on a Windows 8.1 machine and have been successfully for several months now. However, I just installed the NuGet package for Entity Framework Power Tools Beta 4 today and am having issues. After installing EFPT, I…
1
2 3 4 5