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); }
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); }