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

            strSql.Append("insert into CMS_TAG_PROPERTY(");
            strSql.Append("TAGID,PROPERTYID)");

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

            db.AddInParameter(dbCommand, "TAGID", DbType.AnsiString, model.TAGID);
            db.AddInParameter(dbCommand, "PROPERTYID", DbType.AnsiString, model.PROPERTYID);
            db.ExecuteNonQuery(dbCommand);
        }
示例#2
0
 public void Add(E_Model.TagProperty model)
 {
     dal.Add(model);
 }