示例#1
0
        public List <Event> SiteEventLogGrid_GetData(int startRowIndex, int maximumRows, out int totalRowCount)
        {
            var          itemId = HttpUtility.UrlDecode(Request.QueryString["id"]);
            List <Event> events = EventRepository.GetPagedEvents(maximumRows, startRowIndex);

            totalRowCount = EventRepository.CountEvents();
            return(events);
        }
示例#2
0
        private static void Main(string[] args)
        {
            var eventContext = new EventRepository();
            var temp         = eventContext.GetEventsByItemId(new Guid("0795a7ed-91b0-4dff-805f-38cab60b6e4d"), 2, 1);

            var count = eventContext.CountEvents();

            count = eventContext.CountEventsByItemId(new Guid("0795a7ed-91b0-4dff-805f-38cab60b6e4d"));

            var asd = eventContext.GetEventItemById(15);
        }