Exemplo n.º 1
0
 /// <summary>
 /// UnitOfWork başlangıcı
 /// </summary>
 public UnitOfWork(string filterPropertyName, object filterPropertyValue, UnitOfWorkSettings unitOfWorkSettings)
 {
     filteredRepository  = true;
     FilterColumnName    = filterPropertyName;
     FilterColumnValue   = filterPropertyValue;
     _unitOfWorkSettings = unitOfWorkSettings;
 }
 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));
 }
 public static UnitOfWork <T> CreateUnitOfWork <T>(UnitOfWorkSettings unitOfWorkSettings) where T : DbContext
 {
     return(new UnitOfWork <T>(unitOfWorkSettings));
 }
Exemplo n.º 4
0
 public UnitOfWork(UnitOfWorkSettings unitOfWorkSettings)
 {
     _unitOfWorkSettings = unitOfWorkSettings;
 }