예제 #1
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(E_Model.SignupBrand model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("insert into CMS_SIGNUP_BRAND(");
            strSql.Append("SIGNUOID,BRANDID)");

            strSql.Append(" values (");
            strSql.Append("@SIGNUOID,@BRANDID)");
            Database  db        = DatabaseFactory.CreateDatabase();
            DbCommand dbCommand = db.GetSqlStringCommand(strSql.ToString());

            db.AddInParameter(dbCommand, "SIGNUOID", DbType.AnsiString, model.SIGNUOID);
            db.AddInParameter(dbCommand, "BRANDID", DbType.AnsiString, model.BRANDID);

            db.ExecuteNonQuery(dbCommand);
        }
예제 #2
0
 public void Add(E_Model.SignupBrand model)
 {
     dal.Add(model);
 }