static private FindCommentsByDate ( Carrotware.CMS.Data.CarrotCMSDataContext ctx, System.Guid siteID, System.Guid rootContentID, System.DateTime postDate, string postIP ) : IQueryable |
||
ctx | Carrotware.CMS.Data.CarrotCMSDataContext | |
siteID | System.Guid | |
rootContentID | System.Guid | |
postDate | System.DateTime | |
postIP | string | |
return | IQueryable |
public static int GetCommentCountByContent(Guid siteID, Guid rootContentID, DateTime postDate, string postIP) { using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) { return((from c in CannedQueries.FindCommentsByDate(_db, siteID, rootContentID, postDate, postIP) select c).Count()); } }