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...
I have a project on MVC. We chose EF for our DB transactions. We created some managers for the BLL layer. I found a lot of examples, where "...using..." statement is used, i.e....public Item GetItem(long itemId)
using (var db = new MyEntitie...
just wondering if I dispose my dbcontext object correctly here or should I be using the using block instead?...public class RepoBankAccount : IBankAccount
private AppDbContext db = null;
this.db = new AppD...