Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception using .net 6 #73

Open
beachwalker opened this issue Jan 27, 2022 · 12 comments
Open

Exception using .net 6 #73

beachwalker opened this issue Jan 27, 2022 · 12 comments

Comments

@beachwalker
Copy link

When trying to run it with .net 6 and ef core 6.0.1 this throws an exception during startup.

System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'.
   at Microsoft.EntityFrameworkCore.DbContextExtensions.AutoHistory[TAutoHistory](EntityEntry entry, Func`1 createHistoryFactory)
   at Microsoft.EntityFrameworkCore.DbContextExtensions.EnsureAutoHistory[TAutoHistory](DbContext context, Func`1 createHistoryFactory)
   at Microsoft.EntityFrameworkCore.DbContextExtensions.EnsureAutoHistory(DbContext context)
@lostatredrock
Copy link

I cloned the current repo, included this in my project and it solved this problem for me so guessing the project just needs a new build pushed to nuget for Net 6. Is this something in the works?

@NormanGiHu
Copy link

We get this exception since ef core 6 and .net 6:
Method not found: 'System.String Microsoft.EntityFrameworkCore.RelationalEntityTypeExtensions.GetTableName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.

@sauhardad
Copy link

sauhardad commented Apr 5, 2022

Do we know when the latest build will be pushed to nuget for .NET 6 ?

@rigofunc
Copy link
Member

rigofunc commented Apr 6, 2022

maybe this weekend

@GeorgeLeithead
Copy link

I'm still getting the error:
System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'.
Using:

  • Microsoft.EntityFrameworkCore" Version="6.0.4"
  • Microsoft.EntityFrameworkCore.AutoHistory" Version="5.0.8"

@LinQiaoPorco
Copy link

We get this exception since ef core 6 and .net 6: Method not found: 'System.String Microsoft.EntityFrameworkCore.RelationalEntityTypeExtensions.GetTableName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.

I got this error, too, when I migrate from .Net 5 to .Net 6.

OS: Ubuntu 18.04;
DotNet SDK: 6.0.300;

@NewGHUser4321
Copy link

I'm still getting the error: System.MissingMethodException: Method not found: 'System.Type Microsoft.EntityFrameworkCore.Metadata.ITypeBase.get_ClrType()'. Using:

  • Microsoft.EntityFrameworkCore" Version="6.0.4"
  • Microsoft.EntityFrameworkCore.AutoHistory" Version="5.0.8"

Same with me. Any help would be appreciated.

Thanks,

@hhwwrr110
Copy link

if you download from nuget it will throw this exception , you can clone this repository,and relaase it.

@LinQiaoPorco
Copy link

We get this exception since ef core 6 and .net 6: Method not found: 'System.String Microsoft.EntityFrameworkCore.RelationalEntityTypeExtensions.GetTableName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.

I got this error, too, when I migrate from .Net 5 to .Net 6.

OS: Ubuntu 18.04;
DotNet SDK: 6.0.300;

Add Microsoft.EntityFrameworkCore.Relational solves the problem for me, have no idea if it worked for you.

@HyderAli1990
Copy link

Is there any fix or workaround for this issue?
@xyting
Help would be appreciated

@LinQiaoPorco
Copy link

Is there any fix or workaround for this issue? @xyting Help would be appreciated

Try to Add Microsoft.EntityFrameworkCore.Relational package.

@rigofunc
Copy link
Member

very very sorry, please update to version v6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants