Пример #1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <MobileSoft.Model.Unified.Tb_UnionPayCertificate> DataTableToList(DataTable dt)
        {
            List <MobileSoft.Model.Unified.Tb_UnionPayCertificate> modelList = new List <MobileSoft.Model.Unified.Tb_UnionPayCertificate>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                MobileSoft.Model.Unified.Tb_UnionPayCertificate model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model                 = new MobileSoft.Model.Unified.Tb_UnionPayCertificate();
                    model.Id              = dt.Rows[n]["Id"].ToString();
                    model.CommunityId     = dt.Rows[n]["CommunityId"].ToString();
                    model.signCertPath    = dt.Rows[n]["signCertPath"].ToString();
                    model.signCertPwd     = dt.Rows[n]["signCertPwd"].ToString();
                    model.validateCertDir = dt.Rows[n]["validateCertDir"].ToString();
                    model.encryptCert     = dt.Rows[n]["encryptCert"].ToString();
                    model.merId           = dt.Rows[n]["merId"].ToString();
                    model.accNo           = dt.Rows[n]["accNo"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Пример #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Unified.Tb_UnionPayCertificate model)
 {
     dal.Update(model);
 }
Пример #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.Unified.Tb_UnionPayCertificate model)
 {
     dal.Add(model);
 }