/// <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); }
public void Add(E_Model.SignupBrand model) { dal.Add(model); }