Exemple #1
0
        public override SqlParameter[] GetParameters()
        {
            M_MisType MType = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = MType.ID;
            sp[1].Value = MType.TypeName;
            sp[2].Value = MType.TypeDescribe;
            sp[3].Value = MType.CreateTime;
            return(sp);
        }
Exemple #2
0
        public M_MisType GetModelFromReader(DbDataReader rdr)
        {
            M_MisType MType = new M_MisType();

            MType.ID           = Convert.ToInt32(rdr["ID"]);
            MType.TypeName     = ConverToStr(rdr["TypeName"]);
            MType.TypeDescribe = ConverToStr(rdr["TypeDescribe"]);
            MType.CreateTime   = ConvertToDate(rdr["CreateTime"]);
            if (!rdr.HasRows)
            {
                rdr.Close();
                rdr.Dispose();
            }
            return(MType);
        }