protected KnstDbContext(IEFCoreUnitOfWork efUnitOfWork)
 {
     _efUnitOfWork           = efUnitOfWork;
     _defaultDbSessionIsUsed = true;
     _dbSession = _efUnitOfWork.GetDefaultDbSession() as IEFCoreDbSession;
     _dbSession.Attach(this);
 }
 public Task SaveChangesAsync(IEFCoreDbSession dbSession) => dbSession.SaveChangesAsync();
 public TContext GetCtx <TContext>(IEFCoreDbSession dbSession) where TContext : KnstDbContext => dbSession.GetCtx <TContext>();
 public TRepo Use <TRepo>(IEFCoreDbSession dbSession) where TRepo : IEFCoreRepo => base.Create <TRepo>(dbSession);
 public void SaveChanges(IEFCoreDbSession dbSession) => dbSession.SaveChanges();