Click or drag to resize
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.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax
C#
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
ExceptionCondition
DataClassTableUpdateException Thrown when class table is not associated with the provided classInfo.
See Also