Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用此系统过程将 .NET 方法注册为表事件的脚本,或将 .NET 方法注销,不再作为表事件的脚本。
ml_add_dnet_table_script ( 'version', 'table', 'event', 'script' )
version
VARCHAR(128)。版本名。
table
VARCHAR(128)。表名。
event
VARCHAR(128)。事件名。
script
TEXT。脚本内容。如果是 Adaptive Server Enterprise,此参数为 VARCHAR(16384)。如果是 IBM DB2 LUW,此参数为 VARCHAR(4000)。如果是 SAP HANA 和 Oracle,此参数为 CLOB。
要注销某个方法,请将脚本内容参数设置为空值。
script 值是 .NET 程序集某个类中的公共方法(例如,MyClass.MyMethod)。
调用 ml_add_dnet_table_script 时,该方法将与您指定的表、事件和脚本版本关联。如果版本名是新的,则会自动插入到 ml_version 表中。
以下示例将 EgClass 类的 empDownloadCursor 方法指派给 emp 表的 download_cursor 事件。
call ml_add_dnet_table_script( 'ver1', 'emp', 'download_cursor','EgPackage.EgClass.empDownloadCursor' )