namespace Yw.DAL { /// /// 运行实时记录 /// public interface IRunRealRecord { #region 常规获取 /// /// 获取最近几条列表 /// List GetLastList(DateTime? StartTime, DateTime? EndTime, int Number = 1, bool? Run = null); /// /// 获取某日的最近几条数据 /// List GetLastListByDay(DateTime Day, int Number = 1, bool? Run = null); /// /// 获取日期区间的最近几条数据 /// List GetLastListByDayRange(DateTime StartDay, DateTime EndDay, int Number = 1, bool? Run = null); /// /// 获取时间区间的最近几条数据 /// List GetLastListByTimeRange(DateTime StartTime, DateTime EndTime, int Number = 1, bool? Run = null); /// /// 获取 /// List Get(DateTime? StartTime, DateTime? EndTime, bool? Run = null); /// /// 获取某日的数据 /// List GetByDay(DateTime Day, bool? Run = null); /// /// 获取日期区间内的数据 /// List GetByDayRange(DateTime StartDay, DateTime EndDay, bool? Run = null); /// /// 获取时间区间的数据 /// List GetByTimeRange(DateTime StartTime, DateTime EndTime, bool? Run = null); /// /// 获取分页列表 /// List GetPageList(DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total); #endregion #region 通过 ObjectType 和 ObjectID 获取 /// /// 通过 ObjectType 和 ObjectID 获取最近几条记录 /// List GetLastListByObjectTypeAndObjectID(string ObjectType, long ObjectID, int Number = 1, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取 /// List GetByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取 (限制数量) /// List GetLimitByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, int limit, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取某日的数据 /// List GetByObjectTypeAndObjectIDOfDay(string ObjectType, long ObjectID, DateTime Day, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取某日的数据 (限制数量) /// List GetLimitByObjectTypeAndObjectIDOfDay(string ObjectType, long ObjectID, DateTime Day, int limit, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取日期区间内的数据 /// List GetByObjectTypeAndObjectIDOfDayRange(string ObjectType, long ObjectID, DateTime StartDay, DateTime EndDay, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取日期区间内的数据 (限制数量) /// List GetLimitByObjectTypeAndObjectIDOfDayRange(string ObjectType, long ObjectID, DateTime StartDay, DateTime EndDay, int limit, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取时间区间内的数据 /// List GetByObjectTypeAndObjectIDOfTimeRange(string ObjectType, long ObjectID, DateTime StartTime, DateTime EndTime, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取时间区间内的数据(限制数量) /// List GetLimitByObjectTypeAndObjectIDOfTimeRange(string ObjectType, long ObjectID, DateTime StartTime, DateTime EndTime, int limit, bool? Run = null); /// /// 通过 ObjectType 和 ObjectID 获取分页列表 /// List GetPageListByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total); #endregion #region InsertOrUpdate /// /// 插入 /// bool InsertOrUpdate(Entity.RunRealRecord entity); /// /// 批量插入 /// bool InsertOrUpdate(List list); #endregion } }