public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(ingredientGroup => ingredientGroup.IsActive);
     }
 }
示例#2
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(department => department.IsActive);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(job => job.IsActive);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(region => region.IsActive);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(saucerConfiguration => saucerConfiguration.IsActive);
     }
 }
示例#6
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(company => company.IsActive);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(role => role.IsActive);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(disease => disease.IsActive);
     }
 }
示例#9
0
 public void WithRole(int roleId)
 {
     if (roleId.IsNotZero())
     {
         _query.Where(roleConfiguration => roleConfiguration.RoleId == roleId);
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(saucerMultimedia => saucerMultimedia.IsActive);
     }
 }
示例#11
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(tip => tip.IsActive);
     }
 }
示例#12
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(menu => menu.IsActive);
     }
 }
 public void WithReservation(int reservationId)
 {
     if (reservationId.IsNotZero())
     {
         _query.Where(reservationDetail => reservationDetail.ReservationId == reservationId);
     }
 }
示例#14
0
 public void WithoutDealer(int dealerId)
 {
     if (dealerId.IsNotZero())
     {
         var dealerSaucerQuery = new SqlServerExpressionVisitor <DealerSaucer>();
         dealerSaucerQuery.Where(dealerSaucer => dealerSaucer.DealerId == dealerId);
         var saucerIds = _dataBaseSqlServerOrmLite.FindExpressionVisitor(dealerSaucerQuery).Select(dealerSaucer => dealerSaucer.SaucerId);
         saucerIds = saucerIds.Count().IsNotZero() ? saucerIds : new[] { int.MinValue };
         _query.Where(saucer => !Sql.In(saucer.Id, saucerIds));
     }
 }
示例#15
0
 public void WithPermission(int permissionId)
 {
     if (permissionId.IsNotZero())
     {
         var permissionAccessLevelQuery = new SqlServerExpressionVisitor <PermissionAccessLevel>();
         permissionAccessLevelQuery.Where(permissionAccessLevel => permissionAccessLevel.PermissionId == permissionId);
         var accessLevelIds = _dataBaseSqlServerOrmLite.FindExpressionVisitor(permissionAccessLevelQuery).Select(permissionAccessLevel => permissionAccessLevel.AccessLevelId);
         accessLevelIds = accessLevelIds.Count().IsNotZero() ? accessLevelIds : new[] { int.MinValue };
         _query.Where(accessLevel => Sql.In(accessLevel.Id, accessLevelIds));
     }
 }
示例#16
0
 public void WithoutBranch(int branchId)
 {
     if (branchId.IsNotZero())
     {
         var branchDealerQuery = new SqlServerExpressionVisitor <BranchDealer>();
         branchDealerQuery.Where(branchDealer => branchDealer.BranchId == branchId);
         var dealerIds = _dataBaseSqlServerOrmLite.FindExpressionVisitor(branchDealerQuery).Select(branchDealer => branchDealer.DealerId);
         dealerIds = dealerIds.Count().IsNotZero() ? dealerIds : new[] { int.MinValue };
         _query.Where(dealer => !Sql.In(dealer.Id, dealerIds));
     }
 }
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(branch => branch.IsActive);
     }
 }
示例#18
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(dealer => dealer.IsActive);
     }
 }
示例#19
0
 public void WithOnlyActivated(bool onlyActivated)
 {
     if (onlyActivated)
     {
         _query.Where(warning => warning.IsActive);
     }
 }