DataClassInfoProviderEnsureDatabaseStructure Method |
Ensures the database structure based on the given class form definition.
If the database table doesn't exist, it is created together with required columns.
If the database already exists, columns are updated based on the definition.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax public static void EnsureDatabaseStructure(
DataClassInfo classInfo,
bool updateSystemFields = false
)
Parameters
- classInfo
- Type: CMS.DataEngineDataClassInfo
Data class info - updateSystemFields (Optional)
- Type: SystemBoolean
If true, the system fields are updated as well
Exceptions Exception | Condition |
---|
DataClassTableUpdateException |
Thrown when class table is not associated with the provided classInfo.
|
See Also