Exemplo n.º 1
0
        public override SqlParameter[] GetParameters()
        {
            M_IDC_DNSTable model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value  = model.ID;
            sp[1].Value  = model.Domain;
            sp[2].Value  = model.IP;
            sp[3].Value  = model.MX;
            sp[4].Value  = model.Max_sub_domain;
            sp[5].Value  = model.Max_url_forward;
            sp[6].Value  = model.State;
            sp[7].Value  = model.Site_ID;
            sp[8].Value  = model.SiteProperty_ID;
            sp[9].Value  = model.User_ID;
            sp[10].Value = model.Server_ID;
            sp[11].Value = model.Closed_By;
            sp[12].Value = model.MultiByte;
            sp[13].Value = model.MultiByte_Domain;
            return(sp);
        }
Exemplo n.º 2
0
        public M_IDC_DNSTable GetModelFromReader(DbDataReader rdr)
        {
            M_IDC_DNSTable model = new M_IDC_DNSTable();

            model.ID               = Convert.ToInt32(rdr["ID"]);
            model.Domain           = ConverToStr(rdr["Domain"]);
            model.IP               = ConverToStr(rdr["IP"]);
            model.MX               = ConverToStr(rdr["MX"]);
            model.Max_sub_domain   = ConvertToInt(rdr["Max_sub_domain"]);
            model.Max_url_forward  = ConvertToInt(rdr["Max_url_forward"]);
            model.State            = Convert.ToInt32(rdr["State"]);
            model.Site_ID          = ConvertToInt(rdr["Site_ID"]);
            model.SiteProperty_ID  = ConvertToInt(rdr["SiteProperty_ID"]);
            model.User_ID          = Convert.ToInt32(rdr["User_ID"]);
            model.Server_ID        = ConvertToInt(rdr["Server_ID"]);
            model.Closed_By        = ConvertToInt(rdr["Closed_By"]);
            model.MultiByte        = ConvertToInt(rdr["MultiByte"]);
            model.MultiByte_Domain = ConvertToInt(rdr["MultiByte_Domain"]);
            rdr.Close();
            return(model);
        }