Global Data Management Forum

 View Only
Expand all | Collapse all

dotnet 7 / ef core 7 ?

  • 1.  dotnet 7 / ef core 7 ?

    Posted Mon January 23, 2023 09:37 AM
    Whats the prospect of a updated  IBM.EntityFrameworkCore package for EFcore 7 ?

    ------------------------------
    Torben Hørup
    ------------------------------


  • 2.  RE: dotnet 7 / ef core 7 ?

    Posted Tue January 24, 2023 02:09 AM

    And just for reference

    If you try to use current IBM.EntityFrameworkCore with EFcore 7 you get this stacktrace

    System.MissingMethodException: Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, System.Func`3<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Metadata.IEntityType,Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator>)'.
       at IBM.EntityFrameworkCore.Storage.Internal.Db2StringTypeMapping..ctor(String storeType, Nullable`1 dbType, Boolean unicode, Nullable`1 size, Boolean fixedLength, Nullable`1 sqlDbType)
       at IBM.EntityFrameworkCore.Storage.Internal.Db2TypeMapper..ctor(TypeMappingSourceDependencies dependencies, RelationalTypeMappingSourceDependencies relationalDependencies)
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)