Exemplo n.º 1
0
 public IList <T> Get(ServiceCenter.Model.PagingConfig cfg)
 {
     using (ISession session = this.SessionFactory.OpenSession())
     {
         return(session.GetList <T>(cfg));
     }
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
        public IList <T> Get(ServiceCenter.Model.PagingConfig cfg)
        {
            IList <T> objList;

            using (ISession session = this.SessionFactory.OpenSession())
            {
                objList = session.GetList <T>(cfg);
            }
            return(objList);
        }
Exemplo n.º 4
0
        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&lt;IList&lt;BaseAttributeCategory&gt;&gt;,基础数据分类数据集合.</returns>
 public ServiceCenter.Model.MethodReturnResult <IList <BaseAttributeCategory> > Get(ref ServiceCenter.Model.PagingConfig cfg)
 {
     return(base.Channel.Get(ref cfg));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 获取采集数据集合。
 /// </summary>
 /// <param name="cfg">查询采集.</param>
 /// <returns>MethodReturnResult&lt;IList&lt;Data&gt;&gt;,采集数据集合.</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&lt;IList&lt;DataAcquisitionTrans&gt;&gt;,采集数据事务数据集合.</returns>
 public ServiceCenter.Model.MethodReturnResult <IList <DataAcquisitionTrans> > Get(ref ServiceCenter.Model.PagingConfig cfg)
 {
     return(base.Channel.Get(ref cfg));
 }