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
1
vote
0 answers

Entity Framework 6, Postgres (npgsql) and EF Power Tools

I have some trouble using the EF Power Tools and I searched now for several days but I didn't find any solution for my problem. Maybe someone has a new idea or hint for me. My problem is that when I want to create a Preview Data Model VS says that…
1
vote
0 answers

Code First model missing tables

I have an existing database with many tables that I am creating a Code First model from. When I create the model, it is missing several tables that are in the database. Steps taken Using the Entity Data Wizard, select Code First from…
1
vote
1 answer

Entity Framework Powertools Generating Views with Mysql and EF6

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…
1
vote
1 answer

Generating repositories with EF Reverse Engineer Code First

Is it possible to generate models' repository files with EF Power tools? How?
Babak
  • 3,716
  • 6
  • 39
  • 56
1
vote
1 answer

How can I get EF Power Tools to add StringLength when reverse engineering?

How can I get EF Power Tools to add the Data Annotation Attribute StringLength when reverse engineering an existing database into a Code First model?
Dave
  • 1,822
  • 2
  • 27
  • 36
1
vote
1 answer

Entity Framework Power Tools & PostgreSQL JSON Data Type

I have been playing around with the PostgreSQL JSON Data Type and when I try to reverse engineer code first with EF Power Tools JSON Data Type is ignored. If one manually configures the JSON filed in the FluentAPI configuration then everything is…
khorvat
  • 1,630
  • 2
  • 20
  • 31
1
vote
1 answer

EF power tools beta 3 error while using Generate View

Recently I have migrated to EF6 alpha 3 and when I use EF Power Tools Beta 3 for "Generate Views" for my context to get faster startup , I get this error message : --------------------------- Exception has been thrown by the target of an…
Arash
  • 11
  • 3
1
vote
0 answers

Database to Entity Naming Conversion

Currently I am using EF 5.0.0 with EF Power Tools 3. I am trying to do reverse engineering from an existing database with reverse engineering code first (Power Tools 3). The sample of doing this can be found at this MSDN Link. The only problem of…
1
vote
0 answers

Automating of pre-generated views

The EF Power Tools have a nice option which is explained here: "Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project. If you change your model then you will need…
0
votes
1 answer

EF Core Power tools does not load models of many to many junction table into asp.net wep api project

I am loading 6 different models from SQL-Server-Management-Studio via EF Core Powertools into my web api project. Models look like this: I got follwoing Models in my project. I want to add a picture with the list of tags and categories like this. …
flomue99
  • 87
  • 9
0
votes
0 answers

How to make EF Core Power Tools generate one-to-one instead of one-to-many relationship

I have a less than ideal data model that is something like this (a country can have no or exactly one central bank): Table COUNTRY: COUNTRY_ID: Guid Table CENTRAL_BANK: CENTRAL_BANK_ID: Guid COUNTRY_ID: Guid Of course it would be better if we head…
TravelingFox
  • 484
  • 5
  • 18
0
votes
0 answers

Stored Procedure T4 Templates in EF Core Power Tools

I am using EF Core Power Tools (v 2.5.1277) to reverse engineer SQL Server database tables and stored procedures via the Reverse Engineer option. My problem is specifically with stored procedures and T4 templates. The tool generates a partial…
Nick
  • 1
  • 2
0
votes
1 answer

ef core power tools many to many

We're using Entity Framework Core 7 along with EF Core Power tools to reverse engineer our SQL Sever db. We have a many to many relationship in our db: Staff -> Role which in db has a mapping table in between StaffRole. When running EF core power…
Paritosh
  • 4,243
  • 7
  • 47
  • 80
0
votes
1 answer

Web API - EF Core 6.0 Create one to many relationship GET with nested relationship

Using EF Power tools I have the following classes created: Category.cs public partial class Category { public Category() { Folders = new HashSet(); Reports = new HashSet(); } public int CategoryId {…
0
votes
1 answer

How to generate model from MS SQL with fields and NOT properties. Using EF

I'm using (EF Core power tools -> Reverse enginiring) to generate classes from MS SQL database. It generates properties like: public string Password { get; set; } public string PositionId { get; set; } But I need it to be fields like: public string…