You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it cant work,. then i change property route to JsonObject and JsonObject<Dictionary<string,object>>, i cant work.
Exception message:
System.NullReferenceException:“Object reference not set to an instance of an object.”
Stack trace:
at System.JsonObject`1.Equals(JsonObject`1 other)
at lambda_method(Closure , InternalEntityEntry )
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.OriginalValues..ctor(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.EnsureOriginalValues()
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntrySubscriber.SnapshotAndSubscribe(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState entityState, Boolean acceptChanges, Nullable`1 forceStateWhenUnknownKey)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode node, Boolean force)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode node, TState state, Func`3 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraph(InternalEntityEntry rootEntry, EntityState entityState, Boolean forceStateWhenUnknownKey)
at Microsoft.EntityFrameworkCore.DbContext.SetEntityState(InternalEntityEntry entry, EntityState entityState)
at Microsoft.EntityFrameworkCore.DbContext.SetEntityState[TEntity](TEntity entity, EntityState entityState)
at Microsoft.EntityFrameworkCore.DbContext.Add[TEntity](TEntity entity)
at ZhiYuan.ISMS.Web.Controllers.AccountController.Login(String returnUrl) in D:\Git\Core\ZyISMS\ZhiYuan.ISMS.Web\Controllers\AccountController.cs:line 52
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
Further technical details
MySQL version: 8.0.13
Operating system: windows 10
Pomelo.EntityFrameworkCore.MySql version: 2.1.4
.net core version: 2.2.0
The text was updated successfully, but these errors were encountered:
The provider library version number is tightly coupled to the upstream EF library, so you will have to wait for version 2.2 to be released which has yet to be announced.
Steps to reproduce
my menu class:
Startup.cs:
The issue
when try to insert a menu like this
it cant work,. then i change property route to JsonObject and JsonObject<Dictionary<string,object>>, i cant work.
Further technical details
MySQL version: 8.0.13
Operating system: windows 10
Pomelo.EntityFrameworkCore.MySql version: 2.1.4
.net core version: 2.2.0
The text was updated successfully, but these errors were encountered: