public IList <T> Get(ServiceCenter.Model.PagingConfig cfg) { using (ISession session = this.SessionFactory.OpenSession()) { return(session.GetList <T>(cfg)); } }
public IList <T> Get(ServiceCenter.Model.PagingConfig cfg, ISession session) { if (session == null || session.IsConnected == false || session.IsOpen == false) { session = this.SessionFactory.OpenSession(); } return(session.GetList <T>(cfg)); }
public IList <T> Get(ServiceCenter.Model.PagingConfig cfg) { IList <T> objList; using (ISession session = this.SessionFactory.OpenSession()) { objList = session.GetList <T>(cfg); } return(objList); }
public IList <T> Get(ServiceCenter.Model.PagingConfig cfg, ISession session) { IList <T> objList; if (session == null || session.IsConnected == false || session.IsOpen == false) { session = this.SessionFactory.OpenSession(); } objList = session.GetList <T>(cfg); foreach (T obj in objList) { session.Evict(obj); } return(objList); }
/// <summary> /// 获取基础数据分类数据集合。 /// </summary> /// <param name="cfg">查询参数.</param> /// <returns>MethodReturnResult<IList<BaseAttributeCategory>>,基础数据分类数据集合.</returns> public ServiceCenter.Model.MethodReturnResult <IList <BaseAttributeCategory> > Get(ref ServiceCenter.Model.PagingConfig cfg) { return(base.Channel.Get(ref cfg)); }
/// <summary> /// 获取采集数据集合。 /// </summary> /// <param name="cfg">查询采集.</param> /// <returns>MethodReturnResult<IList<Data>>,采集数据集合.</returns> public MethodReturnResult <IList <Data> > Get(ref ServiceCenter.Model.PagingConfig cfg) { return(base.Channel.Get(ref cfg)); }
/// <summary> /// 获取采集数据事务数据集合。 /// </summary> /// <param name="cfg">查询参数.</param> /// <returns>MethodReturnResult<IList<DataAcquisitionTrans>>,采集数据事务数据集合.</returns> public ServiceCenter.Model.MethodReturnResult <IList <DataAcquisitionTrans> > Get(ref ServiceCenter.Model.PagingConfig cfg) { return(base.Channel.Get(ref cfg)); }