zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

3 results in tag: dispose

How to dispose resources with dependency injection

I'm using StructureMap to resolve references to my repository class. My repository interface implements IDisposable, e.g....public interface IMyRepository : IDisposable { SomeClass GetById(int id); } ...An implementation of the interface using Entity Fr...
dependency-injection dispose entity-framework structuremap
asked by Fixer

The ObjectContext instance has been disposed and can no longer be used

I've seen this question asked a million times, but every single suggestion I've encountered I already seem to have covered....I have entity framework in my MVC solution, and I have a 'repository' which attempts to retrieve a collection of ...MyObject...s:...
asp.net-mvc c# dispose entity-framework
asked by user1017882

How to ensure that Autofac is calling Dispose() on EF6 DbContext

UPDATE...Found this little gem which helped me with DbContext ...Josh Kodroff - Making Entity Framework More Unit-Testable...Original...After doing a lot of research I finally decided to implement IOC using Autofac in my MVC5 EF6 project. Autofac's docume...
autofac c# dispose entity-framework-6
asked by SeanG80

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!