Пример #1
0
 private static IQueryable <Campaign> GetCampaigns(CampaignsDataContext dc, Range range)
 {
     if (range.Skip != 0)
     {
         return(range.Take != null
             ? GetCampaignsSkipTakeQuery(dc, range)
             : GetCampaignsSkipQuery(dc, range));
     }
     return(range.Take != null
         ? GetCampaignsTakeQuery(dc, range)
         : GetCampaignsQuery(dc));
 }
Пример #2
0
 private static IQueryable <Campaign> GetCampaignsByCategory(CampaignsDataContext dc, CampaignCategory category, Range range)
 {
     if (range.Skip != 0)
     {
         return(range.Take != null
             ? GetCampaignsByCategorySkipTakeQuery(dc, category, range.Skip, range.Take.Value)
             : GetCampaignsByCategorySkipQuery(dc, category, range.Skip));
     }
     return(range.Take != null
         ? GetCampaignsByCategoryTakeQuery(dc, category, range.Take.Value)
         : GetCampaignsByCategoryQuery(dc, category));
 }
Пример #3
0
 private static CampaignCriteriaSetEntity GetCampaignCriteriaSetEntity(CampaignsDataContext dc, Guid campaignId)
 {
     dc.LoadOptions = CriteriaLoadOptions;
     return(GetCampaignCriteriaSetEntityQuery(dc, campaignId));
 }
Пример #4
0
 private Criteria GetCriteria(CampaignsDataContext dc, Guid campaignId)
 {
     dc.LoadOptions = CriteriaLoadOptions;
     return(GetCriteriaQuery(dc, campaignId, _criteriaPersister));
 }