コード例 #1
0
 /// <summary>
 /// UnitOfWork başlangıcı
 /// </summary>
 public UnitOfWork(string filterPropertyName, object filterPropertyValue, UnitOfWorkSettings unitOfWorkSettings)
 {
     filteredRepository  = true;
     FilterColumnName    = filterPropertyName;
     FilterColumnValue   = filterPropertyValue;
     _unitOfWorkSettings = unitOfWorkSettings;
 }
コード例 #2
0
 public static UnitOfWork <T> CreateUnitOfWork <T>(object companyNo, UnitOfWorkSettings unitOfWorkSettings) where T : DbContext
 {
     if (companyNo != null)
     {
         return(new UnitOfWork <T>("CompanyNo", companyNo, unitOfWorkSettings));
     }
     return(new UnitOfWork <T>(unitOfWorkSettings));
 }
コード例 #3
0
 public static UnitOfWork <T> CreateUnitOfWork <T>(UnitOfWorkSettings unitOfWorkSettings) where T : DbContext
 {
     return(new UnitOfWork <T>(unitOfWorkSettings));
 }
コード例 #4
0
 public UnitOfWork(UnitOfWorkSettings unitOfWorkSettings)
 {
     _unitOfWorkSettings = unitOfWorkSettings;
 }