using Bootstrap.DataAccess; using Longbow.Web.Mvc; using System; namespace Bootstrap.Admin.Query { /// /// Query trace options. /// public class QueryTraceOptions : PaginationOption { /// /// /// public DateTime? OperateTimeStart { get; set; } /// /// /// public DateTime? OperateTimeEnd { get; set; } /// /// 请求IP地址 /// public string AccessIP { get; set; } /// /// /// /// public QueryData RetrieveData() { var data = TraceHelper.Retrieves(this, OperateTimeStart, OperateTimeEnd, AccessIP); var ret = new QueryData(); ret.total = data.TotalItems; ret.rows = data.Items; return ret; } } }