CDCoding Dropletsincodingdroplets.com·Aug 4 · 12 min readUnable to Create an Object of Type DbContext in EF Core: Causes and FixesYou add an entity, run dotnet ef migrations add AddOrders, and the tooling stops dead: Unable to create an object of type 'AppDbContext'. For the different patterns supported at design time, see https10
CDCoding Dropletsincodingdroplets.com·Jun 30 · 9 min readThe Entity Instance Cannot Be Tracked in ASP.NET Core: Causes and FixesIf you have hit System.InvalidOperationException: The instance of entity type 'X' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked, you are lookin00
CDCoding Dropletsincodingdroplets.com·May 25 · 12 min readObjectDisposedException: Cannot Access a Disposed Context Instance in ASP.NET Core — Root Cause and FixThe error ObjectDisposedException: Cannot access a disposed context instance is one of those production surprises that hits developers at the worst time — usually under load, during a scheduled job, o00