System Administration
Plugin API Functionality
Connect to the Database
The mechanism by which the plugin connects to the database is an IDataService object. To establish a connection to the database, create a new instance of the IDataService object and use the Host.GetDataService method.
C# Example
Use the following C# command to establish a connection between the plugin and the page’s Data Source.
Visual Basic .Net Example
Use the following Visual Basic .Net command to establish a connection between the plugin and the page’s Data Source.
Read From the Database
With a connection established, the IDataService object can be used to read from the database. There are many functions that can be used to read from the database.
C# Example
Use one of the following two most commonly used C# functions to read from a database.
Visual Basic.Net Example
Use one of the following two most commonly used Visual Basic.Net functions to read from a database.
Write to the Database
With a connection established, the IDataService object can be used to write to the database. There are many functions that can be used to write to the database; the most commonly used function is ExecuteNonQuery.
C# Example
Use the ExecuteNonQuery function to write to the database.
Visual Basic .Net Example
Use the ExecuteNonQuery function to write to the database.
Was this article helpful?
Sorry about that.
Why wasn't this helpful? (check all that apply)
Thanks for your feedback.
Want to tell us more?
Send an email to our authors to leave your feedback.
Great!
Thanks for your feedback.