コード例 #1
0
        public List <HomeTypeInfo> HomeTypeInfo_GetByLevel(string Level, int LevelLength)
        {
            List <DataAccess.HomeTypeInfo> list = new List <DataAccess.HomeTypeInfo>();

            DataAccess.HomeTypeInfo obj = new DataAccess.HomeTypeInfo();
            DbCommand cmd = db.GetStoredProcCommand("sp_HomeTypeInfo_GetByLevel", Level, LevelLength);

            using (IDataReader dr = db.ExecuteReader(cmd))
            {
                while (dr.Read())
                {
                    list.Add(obj.HomeTypeInfoIDataReader(dr));
                }
                dr.Close();
                dr.Dispose();
            }
            return(list);
        }
コード例 #2
0
        public List <HomeTypeInfo> HomeTypeInfo_GetByAll()
        {
            List <DataAccess.HomeTypeInfo> list = new List <DataAccess.HomeTypeInfo>();

            DataAccess.HomeTypeInfo obj = new DataAccess.HomeTypeInfo();
            DbCommand cmd = db.GetStoredProcCommand("HomeType_SelectAll");

            using (IDataReader dr = db.ExecuteReader(cmd))
            {
                while (dr.Read())
                {
                    list.Add(obj.HomeTypeInfoIDataReader(dr));
                }
                dr.Close();
                dr.Dispose();
            }
            return(list);
        }
コード例 #3
0
        public List <HomeTypeInfo> HomeTypeInfo_Paging(string CurentHomeTypeInfo, string HomeTypeInfoSize)
        {
            List <DataAccess.HomeTypeInfo> list = new List <DataAccess.HomeTypeInfo>();

            DataAccess.HomeTypeInfo obj = new DataAccess.HomeTypeInfo();
            DbCommand cmd = db.GetStoredProcCommand("HomeType_SelectPage", CurentHomeTypeInfo, HomeTypeInfoSize);

            using (IDataReader dr = db.ExecuteReader(cmd))
            {
                while (dr.Read())
                {
                    list.Add(obj.HomeTypeInfoIDataReader(dr));
                }
                dr.Close();
                dr.Dispose();
            }
            return(list);
        }