Kentico CMS 6.0 Developer's Guide

Database table API

Database table API

Previous topic Next topic Mail us feedback on this topic!  

Database table API

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Kentico CMS uses database tables to store data. There are two API classes for each database table to manage its data - Info class and Provider class. See the example for the CMS_User table bellow.

 

devguide_clip1485

 

Info class

 

Each info class is related to a database table. An info class reflects one particular entry (line) in the table. This means an info class is a data container holding data of one table entry. The properties of an info class correspond to the columns of the related table.

 

Provider class

 

A provider class is used to manage data from the related table. It usually uses the related info object when manipulating with the data. A typical provider class contains methods used for getting, inserting, updating and deleting table data, together with various other methods used for further table data manipulation.