Creating a New Plug-in
Create a new plug-in by creating a class that inherits from Plugin.
A plug-in class should always override the IsEnabled method to indicate whether the plug-in is enabled for the current connection. This should be determined by one or more connection string parameters defined in the constructor.
To implement special processing at connection time, the plug-in class should override the ConnectionOpened method.
To implement custom processing of results from queries, the plug-in class should override the GetSqlData method.
To implement custom processing of query parameters, the plug-in class should override the GetProviderType, getStorage, InferDbType, and CheckSqlType methods.
We recommend implementing a static method that installs the plug-in, so a user of the plug-in can call plugin class.Install() to install the plug-in.
The following demonstrates how to install a custom plug-in in an application and two examples of custom plug-ins, which are actually custom versions of existing built-in plug-ins.
Last modified date: 08/28/2024