We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for the great library, we have just done an upgrade to .Net6 and are seeing the following error.
When calling DeleteAsync() on a query that uses Sql Server HierarchyId type as a column type, we get an error (see below)
e.g. (divisionId is type Microsoft.EntityFrameworkCore.HierarchyId)
await _dbContext.TableName .Where(table => table.DivisionId == divisionId) .DeleteAsync();
MetaType.GetMetaTypeFromValue(Type dataType, Object value, Boolean inferLen, Boolean streamAllowed) MetaType.GetMetaTypeFromType(Type dataType) SqlParameter.GetMetaTypeOnly() SqlParameter.Validate(Int32 index, Boolean isCommandProc) SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters, Boolean includeReturnValue) SqlCommand.BuildExecuteSql(CommandBehavior behavior, String commandText, SqlParameterCollection parameters, _SqlRPC& rpc) SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) SqlCommand.ExecuteScalar() <>c.(DbCommand ) BatchDelete.Execute[T](IQueryable1 query) BatchDeleteExtensions.Delete[T](IQueryable1 query, Action1 batchDeleteBuilder) <>c__DisplayClass2_01.<DeleteAsync>b__0() Task1.InnerInvoke() <.cctor>b__272_0(Object obj) ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) SqlCommand.ExecuteScalar() <>c.(DbCommand ) BatchDelete.Execute[T](IQueryable
1 query, Action
1.<DeleteAsync>b__0() Task
Exception message: "No mapping exists from object type Microsoft.EntityFrameworkCore.HierarchyId to a known managed provider native type."
This was working fine until a recent upgrade to .Net 6 (from 3.1) Using EF core 6.0.16
The text was updated successfully, but these errors were encountered:
Hello @lsrigel ,
Thank you for contacting us.
My developer will look at it if we can easily support this or not.
Best Regards,
Jon
Sorry, something went wrong.
Just to give you an update: My developer has fixed this issue. The fix will be part of the next release, that will happen in 1 or 2 weeks.
Thank you, appreciate the effort
Sorry for the delay, the fix has been finally been released today. If you are using EF Core 6, the fix should be available in the version v6.22.4
JonathanMagnan
No branches or pull requests
Thanks for the great library, we have just done an upgrade to .Net6 and are seeing the following error.
1. Description
When calling DeleteAsync() on a query that uses Sql Server HierarchyId type as a column type, we get an error (see below)
e.g. (divisionId is type Microsoft.EntityFrameworkCore.HierarchyId)
2. Exception Stacktrace (trimmed to only include library component)
MetaType.GetMetaTypeFromValue(Type dataType, Object value, Boolean inferLen, Boolean streamAllowed)
MetaType.GetMetaTypeFromType(Type dataType)
SqlParameter.GetMetaTypeOnly()
SqlParameter.Validate(Int32 index, Boolean isCommandProc)
SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters, Boolean includeReturnValue)
SqlCommand.BuildExecuteSql(CommandBehavior behavior, String commandText, SqlParameterCollection parameters, _SqlRPC& rpc)
SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) SqlCommand.ExecuteScalar() <>c.(DbCommand ) BatchDelete.Execute[T](IQueryable
1 query)BatchDeleteExtensions.Delete[T](IQueryable
1 query, Action
1 batchDeleteBuilder)<>c__DisplayClass2_0
1.<DeleteAsync>b__0() Task
1.InnerInvoke()<.cctor>b__272_0(Object obj)
ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
4. Any further technical details
This was working fine until a recent upgrade to .Net 6 (from 3.1)
Using EF core 6.0.16
The text was updated successfully, but these errors were encountered: