AutoHistory
AutoHistory copied to clipboard
Exception using .net 6
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)
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?
We get this exception since ef core 6 and .net 6: Method not found: 'System.String Microsoft.EntityFrameworkCore.RelationalEntityTypeExtensions.GetTableName(Microsoft.EntityFrameworkCore.Metadata.IEntityType)'.
Do we know when the latest build will be pushed to nuget for .NET 6 ?
maybe this weekend
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"
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;
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,
if you download from nuget it will throw this exception , you can clone this repository,and relaase it.
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.