Exemple #1
0
        public IList List(Type type, IConnectinContext cc, Region region, params string[] orderby)
        {
            ObjectMapper om = ObjectMapper.GetOM(type);

            SelectDataReader sr    = om.GetSelectReader(type);
            string           strob = null;

            if (orderby != null && orderby.Length > 0)
            {
                strob = string.Join(",", orderby);
            }
            return(EntityBase.ExOnList(type, cc, om.GetSelectTable(sr), this, region, strob, sr.Group));
        }
Exemple #2
0
        public IList <RESULT> List <T, RESULT>(IConnectinContext cc, Region region, params string[] orderby)
            where T : Mappings.DataObject, new()
            where RESULT : new()
        {
            Type             type  = typeof(RESULT);
            ObjectMapper     om    = ObjectMapper.GetOM(typeof(T));
            SelectDataReader sr    = om.GetSelectReader(type);
            string           strob = null;

            if (orderby != null && orderby.Length > 0)
            {
                strob = string.Join(",", orderby);
            }
            return((IList <RESULT>)EntityBase.ExOnList(typeof(RESULT), cc, om.GetSelectTable(sr), this, region, strob, sr.Group));
        }