Exemplo n.º 1
0
        public M_Plat_MailConfig GetModelFromReader(DbDataReader rdr)
        {
            M_Plat_MailConfig model = new M_Plat_MailConfig();

            model.ID     = ConvertToInt(rdr["ID"]);
            model.POP    = ConverToStr(rdr["POP"]);
            model.SMTP   = ConverToStr(rdr["SMTP"]);
            model.Acount = ConverToStr(rdr["Acount"]);
            model.Passwd = ConverToStr(rdr["Passwd"]);
            model.UserID = ConvertToInt(rdr["UserID"]);
            model.CDate  = ConvertToDate(rdr["CDate"]);
            model.Alias  = ConverToStr(rdr["Alias"]);
            model.Days   = ConvertToInt(rdr["Days"]);
            return(model);
        }
Exemplo n.º 2
0
        public override SqlParameter[] GetParameters()
        {
            M_Plat_MailConfig model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.POP;
            sp[2].Value = model.SMTP;
            sp[3].Value = model.Acount;
            sp[4].Value = model.Passwd;
            sp[5].Value = model.UserID;
            sp[6].Value = model.CDate;
            sp[7].Value = model.Alias;
            sp[8].Value = model.Days;
            return(sp);
        }