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
0
votes
0 answers

EF Core Power Tools - Missing "Create EF Core DB Context..." Menu

We are using EF Core Power Tools, v2.5.1145 on VS 2022 Community Edition. We have a Visual Studio Database project. In the screen shot below, the author of EF Core Power Tools, Erik Ejlskov Jensen, indicates you can right-click on the Database…
Tom Baxter
  • 2,110
  • 2
  • 19
  • 38
0
votes
2 answers

EF Core Power Tools EntityFrameworkCore.Design.OperationException suddenly occurring on "Add DbContext Diagram"

I've been using EF Core Power Tools to assist with learning EF Core. The data project is simply a class library that contains the base DbContext used by the associated web app, plus the migrations folder. It's been working fine until suddenly this…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
0
votes
1 answer

Stored procedure "weird" result set with Power Tools EF Core 5

I have installed EF Core 5 Power Tools to Add a DB with stored procedure to an ASP.NET Core project. the models are successfully generated by Power Tools and the tables work fine; but when i try to retrieve a result set out of a stored procedure and…
0
votes
1 answer

.NET 5 properly injecting DbContext connection string when using EF Core Power Tools

Hoping for guidance on best practices for setting a connection string in a .NET 5 Web API. I am using EF Core Power Tools to reverse engineer a database model and I have a connection string in an appsettings.json file. Trying to figure out how I…
0
votes
0 answers

EFCore Power Tools: The application to execute does not exist: 'contextlist'

I'm using the EF Core Power Tools and am encountering an issue when I try to 'Compare DbContext to Database': I am on version 2.5.636. The following is in the efptparams.txt file: exec --depsfile…
Ali Bdeir
  • 4,151
  • 10
  • 57
  • 117
0
votes
1 answer

Edit SQLite3 database information

In VS2019 I have window opened "SQLite/SQL Server Compact Toolbox". If I right-click on my SQLite3 db there one of menu items says "Database Information". If I run that I get: -- Script Date: 12/12/2020 12:19 - ErikEJ.SqlCeScripting version…
0
votes
0 answers

EF Core Power Tools does not keep identity column name

I have .NET Core 3.1 .NET Standard 2.0 class library with Microsoft.EntityFrameworkCore.SqlServer 3.1.8. I am using VS 2019 with EF Core Power Tools 2.4.217 All my SQL table names are pluralize and have identity column with the following naming…
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
1 answer

EF Power Tools defaulting to pascalcase

We recently adopted EF Power Tools reverse engineering to create our entities in our .Net Core 3 Web Apis. This has had the unintended consequence of returning data in pascalcase instead of the default camelcase. I have tried in the…
0
votes
0 answers

EF Core 3.1.3: Generating an extra column when using .Include() with basic Parent/Child relationship tables

I'm having some trouble diagnosing an error (Invalid column name 'AgencyOfficeId') I'm receiving when I attempt to use Entity Framework Core 3.1.3 using the .Include() extension method. I'm trying to return a collection of parent records…
0
votes
0 answers

How Generates pre-compiled views used by the EF when DbContext is in a DLL?

I have a DbContext in an external dll (that I don't own) and I want to generated pre-compiled views for it? Do you know how to do it? Thanks Daniel
0
votes
0 answers

Entity Framework Power Tools not generating entity data model in visual studio 2015

I have installed EF Power tools on VS 2015 as per this SO answer But when I try to generate entity data model for a dbcontext, I get error. I have all the relevant assembly references. What am I missing.
VivekDev
  • 20,868
  • 27
  • 132
  • 202
0
votes
0 answers

Entity Framework: Could not load type on any new classes I add

This is driving me crazy, I have spent hours trying to resolve it. I am using Power tools for Entity Framework to view Entity Data Model. All works fine with these two classes: namespace MarketAnalyser.LogicLayer { public class MarketMinData …
Gordon
  • 73
  • 7
0
votes
1 answer

EntityFramwork Power Tools error while generating views

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…
0
votes
2 answers

Entity Framework Code First Pre-Compiled Views Not Speeding Up First Call

I used EF PowerTools (EF5) in VS2012 to generate pre-compiled views for my large code-first DataContext. Unfortunately, this didn't help speed up the first call to the data context. It still takes about 13 seconds. Are there some considerations for…
Jason Butera
  • 2,376
  • 3
  • 29
  • 46
0
votes
0 answers

Bug in Entity Framework Power Tools Beta 4

Please let me know if this is not the correct place to submit a bug report for the EF Power Tools. I assume the version marked BETA is still the latest and greatest version to use. I'm using it with EF 6.1.1 There is a bug in reverse engineering…
cdarrigo
  • 964
  • 1
  • 8
  • 26