Carrotware.CMS.Core.CannedQueries.FindPageByTitleAndDate C# (CSharp) Method

FindPageByTitleAndDate() static private method

static private FindPageByTitleAndDate ( CarrotCMSDataContext ctx, Guid siteID, string sTitle, string sFileNameFrag, DateTime dateCreate ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
sTitle string
sFileNameFrag string
dateCreate DateTime
return IQueryable
        internal static IQueryable<vw_carrot_Content> FindPageByTitleAndDate(CarrotCMSDataContext ctx, Guid siteID, string sTitle, string sFileNameFrag, DateTime dateCreate)
        {
            return (from ct in ctx.vw_carrot_Contents
                    orderby ct.NavOrder, ct.NavMenuText
                    where ct.SiteID == siteID
                     && ct.IsLatestVersion == true
                     && (ct.PageHead == sTitle || ct.TitleBar == sTitle)
                     && ct.FileName.Contains(sFileNameFrag)
                     && ct.CreateDate.Date == dateCreate.Date
                    select ct);
        }