コード例 #1
0
        public bool InsertAdPlanLog(AdPlanyLogEntity entity)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append(" insert into [dbo].[tblAdPlanyLog] ( ");
            strSql.Append("   [UserMangeId] ");
            strSql.Append("  ,[UserName] ");
            strSql.Append("  ,[BusinessId] ");
            strSql.Append("  ,[BusinessPlanID] ");
            strSql.Append("  ,[ADPlanID] ");
            strSql.Append("  ,[ADName] ");
            strSql.Append("  ,[BillingMethod] ");
            strSql.Append("  ,[OperationType] ");
            strSql.Append("  ,[OldJson] ");
            strSql.Append("  ,[NewJson] ");
            strSql.Append("  ,[CreateUser] ");
            strSql.Append("  ) values( ");
            strSql.Append("   @UserMangeId ");
            strSql.Append("  ,@UserName ");
            strSql.Append("  ,@BusinessId ");
            strSql.Append("  ,@BusinessPlanID ");
            strSql.Append("  ,@ADPlanID ");
            strSql.Append("  ,@ADName ");
            strSql.Append("  ,@BillingMethod ");
            strSql.Append("  ,@OperationType ");
            strSql.Append("  ,@OldJson ");
            strSql.Append("  ,@NewJson ");
            strSql.Append("  ,@CreateUser ");
            strSql.Append("  )");
            using (IDbConnection connection = new SqlConnection(DBConnectionStringConfig.Default.JMGGConnectionString))
            {
                return(connection.Execute(strSql.ToString(), entity) > 0);
            }
        }
コード例 #2
0
 public bool InsertAdPlanLog(AdPlanyLogEntity entity)
 {
     return(adPlanCMD.InsertAdPlanLog(entity));
 }