Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (DbContext != null)
                {
                    DbContext.Dispose();
                    DbContext = null;
                }
            }

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 public BasicController(ManagedDbContext context)
 {
     DbContext = context;
 }
 public ClientController(ManagedDbContext context)
     : base(context)
 {
 }