Beispiel #1
0
        public IQueryable <ScheduleItem> GetScheduleItemsByTimeSlot(EventAddress eventAddress, Oxite.Modules.Conferences.Models.DateRangeAddress dateRangeAddress)
        {
            var query =
                from si in context.oxite_Conferences_ScheduleItems
                join e in context.oxite_Conferences_Events on si.EventID equals e.EventID
                where string.Compare(e.EventName, eventAddress.EventName, true) == 0 && si.StartTime >= dateRangeAddress.StartDate && si.EndTime <= dateRangeAddress.EndDate
                select si;

            return(projectScheduleItems(query));
        }
Beispiel #2
0
 public TimeslotDescription(DateRangeAddress dateRange, string label)
 {
     DateRange = dateRange;
     Label     = label;
 }