Carrotware.CMS.Core.CompiledQueries.PostsByDateRange C# (CSharp) Method

PostsByDateRange() static private method

static private PostsByDateRange ( Carrotware.CMS.Data.CarrotCMSDataContext ctx, System.Guid siteID, System.DateTime dateBegin, System.DateTime dateEnd, bool bActiveOnly ) : IQueryable
ctx Carrotware.CMS.Data.CarrotCMSDataContext
siteID System.Guid
dateBegin System.DateTime
dateEnd System.DateTime
bActiveOnly bool
return IQueryable
        internal static IQueryable<vw_carrot_Content> PostsByDateRange(CarrotCMSDataContext ctx, Guid siteID, DateTime dateBegin, DateTime dateEnd, bool bActiveOnly)
        {
            SearchParameterObject sp = new SearchParameterObject {
                SiteID = siteID,
                DateCompare = DateTime.UtcNow,
                ContentTypeID = ContentPageType.GetIDByType(ContentPageType.PageType.BlogEntry),
                ContentType = ContentPageType.PageType.BlogEntry,
                DateBegin = dateBegin,
                DateEnd = dateEnd,
                ActiveOnly = bActiveOnly
            };

            return cqPostsByDateRange(ctx, sp);
        }