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)); }
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)); }
private static CampaignCriteriaSetEntity GetCampaignCriteriaSetEntity(CampaignsDataContext dc, Guid campaignId) { dc.LoadOptions = CriteriaLoadOptions; return(GetCampaignCriteriaSetEntityQuery(dc, campaignId)); }
private Criteria GetCriteria(CampaignsDataContext dc, Guid campaignId) { dc.LoadOptions = CriteriaLoadOptions; return(GetCriteriaQuery(dc, campaignId, _criteriaPersister)); }