Click or drag to resize
HierarchyHelperLoadObjectFromXML Method
Loads objects data including collection from a given XML representation (root of the xml has to be ClassTableName of given object).

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public static TranslationHelper LoadObjectFromXML(
	OperationTypeEnum operation,
	BaseInfo obj,
	string xml,
	bool disconnectObject = true,
	bool updateMode = false,
	string cultureName = null,
	List<string> excludedColumns = null
)

Parameters

operation
Type: CMS.DataEngineOperationTypeEnum
Operation type
obj
Type: CMS.DataEngineBaseInfo
Object to load
xml
Type: SystemString
XML data
disconnectObject (Optional)
Type: SystemBoolean
If true, object collections are disconnected (collections won't load data automatically from the DB, just from dataset)
updateMode (Optional)
Type: SystemBoolean
If true, only column contained in the XML are loaded (columns which are not contained are not set to null)
cultureName (Optional)
Type: SystemString
Name of the culture to use for parsing double and datetime values
excludedColumns (Optional)
Type: System.Collections.GenericListString
Columns which will be ignored during the data load even if they are in the provided data

Return Value

Type: TranslationHelper
Translation helper
See Also