Exemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (Context == null)
            {
                return;
            }

            SaveChanges();
            Context.Dispose();
            Context = null;
        }
Exemplo n.º 2
0
 public AchiUnitOfWork(AchiDbContext context)
 {
     Context = context;
 }