protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (Context == null) { return; } SaveChanges(); Context.Dispose(); Context = null; }
public AchiUnitOfWork(AchiDbContext context) { Context = context; }