/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <DNSABC.Model.DNSABC_ProductModelCdn> DataTableToList(DataTable dt)
        {
            List <DNSABC.Model.DNSABC_ProductModelCdn> modelList = new List <DNSABC.Model.DNSABC_ProductModelCdn>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                DNSABC.Model.DNSABC_ProductModelCdn model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new DNSABC.Model.DNSABC_ProductModelCdn();
                    if (dt.Rows[n]["Id"] != null && dt.Rows[n]["Id"].ToString() != "")
                    {
                        model.Id = int.Parse(dt.Rows[n]["Id"].ToString());
                    }
                    if (dt.Rows[n]["ProductID"] != null && dt.Rows[n]["ProductID"].ToString() != "")
                    {
                        model.ProductID = int.Parse(dt.Rows[n]["ProductID"].ToString());
                    }
                    if (dt.Rows[n]["isHost"] != null && dt.Rows[n]["isHost"].ToString() != "")
                    {
                        model.isHost = int.Parse(dt.Rows[n]["isHost"].ToString());
                    }
                    if (dt.Rows[n]["isConnection"] != null && dt.Rows[n]["isConnection"].ToString() != "")
                    {
                        model.isConnection = int.Parse(dt.Rows[n]["isConnection"].ToString());
                    }
                    if (dt.Rows[n]["isBandwidth"] != null && dt.Rows[n]["isBandwidth"].ToString() != "")
                    {
                        model.isBandwidth = int.Parse(dt.Rows[n]["isBandwidth"].ToString());
                    }
                    if (dt.Rows[n]["Remark"] != null && dt.Rows[n]["Remark"].ToString() != "")
                    {
                        model.Remark = dt.Rows[n]["Remark"].ToString();
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(DNSABC.Model.DNSABC_ProductModelCdn model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(DNSABC.Model.DNSABC_ProductModelCdn model)
 {
     return(dal.Add(model));
 }