loresoft / EntityFrameworkCore.Generator

Generate Entity Framework Core model from an existing database

Home Page:https://efg.loresoft.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error at EFCore 2.2

Teastears opened this issue · comments

My project is run with EFCore 2.2
when I build code by Views,The Map File has a Error.There have 2 method which are not supported.

Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity>.HasNoKey
Microsoft.EntityFrameworkCore.RelationalEntityTypeBuilderExtensions.ToView

Any ideas on how to handle? Add a flag for version outputted?

I have no idea.Maybe can check EFCore verion before build code,if it is 2.x ,skip all the Views,only build the Tables

I have a try to solve and pull a request