func init // adds using namespace sys.add_use('System.Data.SqlClient') // initialize instance params = this.props('Constructor').value if(params == 'Constructor') params = '' elseif(params == 'Constructor2') params = '' + d("adapter") end sys.add_object(this.codename, 'SqlCommandBuilder', params) // initialize properties sys.set_typed_field(20, 'DataAdapter') // makes implementation methods for properties sys._prop_init('CatalogLocation', 1, 1, 0) sys._prop_init('CatalogSeparator', 1, 1, 2) sys._prop_init('DataAdapter', 1, 1, 0) sys._prop_init('QuotePrefix', 1, 1, 2) sys._prop_init('QuoteSuffix', 1, 1, 2) sys._prop_init('SchemaSeparator', 1, 1, 2) // makes implementation of methods as properties sys._mtd_as_prop_init('GetDeleteCommand()') sys._mtd_as_prop_init('GetInsertCommand()') sys._mtd_as_prop_init('GetUpdateCommand()') sys._mtd_as_prop_init('SqlCommandBuilder') // initialize common events and properties include("DbCommandBuilder-init") include("Component-init") include("MarshalByRefObject-init") include("Object-init") end func doConstructor() blk.println(this.codename, ' = new SqlCommandBuilder();') end func doConstructor2(adapter) blk.println(this.codename, ' = new SqlCommandBuilder(', d("adapter"), ');') end func doDeriveParameters(command) blk.println('SqlCommandBuilder.DeriveParameters(', d("command"), ');') end func doGetDeleteCommand2(useColumnsForParameterNames) if(linked("onGetDeleteCommand")) event("onGetDeleteCommand", this.codename + '.GetDeleteCommand(' + d("useColumnsForParameterNames") + ')') else blk.println(this.codename, '.GetDeleteCommand(', d("useColumnsForParameterNames"), ');') end end func doGetInsertCommand2(useColumnsForParameterNames) if(linked("onGetInsertCommand")) event("onGetInsertCommand", this.codename + '.GetInsertCommand(' + d("useColumnsForParameterNames") + ')') else blk.println(this.codename, '.GetInsertCommand(', d("useColumnsForParameterNames"), ');') end end func doGetUpdateCommand2(useColumnsForParameterNames) if(linked("onGetUpdateCommand")) event("onGetUpdateCommand", this.codename + '.GetUpdateCommand(' + d("useColumnsForParameterNames") + ')') else blk.println(this.codename, '.GetUpdateCommand(', d("useColumnsForParameterNames"), ');') end end func doQuoteIdentifier(unquotedIdentifier) if(linked("onQuoteIdentifier")) event("onQuoteIdentifier", this.codename + '.QuoteIdentifier(' + d("unquotedIdentifier") + ')') else blk.println(this.codename, '.QuoteIdentifier(', d("unquotedIdentifier"), ');') end end func doUnquoteIdentifier(quotedIdentifier) if(linked("onUnquoteIdentifier")) event("onUnquoteIdentifier", this.codename + '.UnquoteIdentifier(' + d("quotedIdentifier") + ')') else blk.println(this.codename, '.UnquoteIdentifier(', d("quotedIdentifier"), ');') end end include("DbCommandBuilder")