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)

5 results in tag: idisposable

Why is an explicit Dispose() function required in asp.net MVC Controllers? Can somebody clarify the complexities? (special to ASP.NET)

I know C# can manage resource pretty well with its garbage collector. But since it has that, what exactly is this for and why is it needed? ...Can anyone explain why ....Dispose()... is needed in asp.net mvc?...Also, what does it mean to Dispose a connect...
asp.net-mvc c# entity-framework garbage-collection idisposable
asked by Jan Carlo Viray

Entity Framework Context Lifetime Questions

I have some questions about the desired lifetime of an Entity Framework context in an ASP.NET MVC application. Isn't it best to keep the context alive for the shortest time possible?...Consider the following controller action:...public ActionResult Index(...
asp.net-mvc c# entity-framework idisposable using
asked by Jonathan Wood

No need to dispose DataContext/ObjectContext in EF?

Albahari writes in "c# 4.0 in a nutshell":...> Although DataContext/ObjectContext implement IDisposable, you can (in general) get away without disposing instances. Disposing forces the context’s connection to dispose—but this is usually unnecess...
entity-framework idisposable repository repository-pattern
asked by Volker von Einem

DbContext disposing?

DbContext...public class HaberPortalDB : DbContext { public DbSet<Haberler> Haberler { get; set; } public DbSet<Kategoriler> Kategoriler { get; set; } public DbSet<Yazarlar> Yazarlar { get; set; } } public class Haberler { public virtual ...
asp.net-mvc c# entity-framework idisposable
asked by AliRıza Adıyahşi

Entity Framework and context dispose

When should one call ...DbContext.dispose()... with entity framework?...Is this imaginary method bad?...public static string GetName(string userId) { var context = new DomainDbContext(); var userName = context.UserNameItems.FirstOrDefault(x => x.U...
dbcontext entity-framework idisposable
asked by Sindre

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!