private void RowUpdating(object sender, MySqlRowUpdatingEventArgs args) { base.RowUpdatingHandler(args); if (args.StatementType == StatementType.Insert) { if (this.ReturnGeneratedIdentifiers) { if (args.Command.UpdatedRowSource != UpdateRowSource.None) { throw new InvalidOperationException(Resources.MixingUpdatedRowSource); } args.Command.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord; if (this.finalSelect == null) { this.CreateFinalSelect(); } } if ((this.finalSelect != null) && (this.finalSelect.Length > 0)) { MySqlCommand command = args.Command; command.CommandText = command.CommandText + this.finalSelect; } } }
private void RowUpdating( object sender, MySqlRowUpdatingEventArgs args ) { base.RowUpdatingHandler( args ); if( args.StatementType == StatementType.Insert ) { if( this.ReturnGeneratedIdentifiers ) { if( args.Command.UpdatedRowSource != UpdateRowSource.None ) { throw new InvalidOperationException( Resources.MixingUpdatedRowSource ); } args.Command.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord; if( this.finalSelect == null ) { this.CreateFinalSelect(); } } if( ( this.finalSelect != null ) && ( this.finalSelect.Length > 0 ) ) { MySqlCommand command = args.Command; command.CommandText = command.CommandText + this.finalSelect; } } }