예제 #1
0
 public DbRepository(AuthInfo authInfo)
 {
     _authInfo = authInfo;
     _instanceId = authInfo.CompanyId;
     _context = new FilteredContext(authInfo.CompanyId);
     _releaseContext = true;
 }
예제 #2
0
 public DbRepository(int companyId)
 {
     _context = new FilteredContext(companyId);
     _instanceId = companyId;
     _releaseContext = true;
 }