EntityFrameworkCore.Generator icon indicating copy to clipboard operation
EntityFrameworkCore.Generator copied to clipboard

Error at EFCore 2.2

Open Teastears opened this issue 5 years ago • 3 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

Teastears avatar Nov 14 '19 03:11 Teastears

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

pwelter34 avatar Nov 14 '19 20:11 pwelter34

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

Teastears avatar Nov 15 '19 00:11 Teastears

I have a try to solve and pull a request

Teastears avatar Apr 08 '21 08:04 Teastears