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.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax public static TranslationHelper LoadObjectFromXML(
OperationTypeEnum operation,
BaseInfo obj,
string xml,
bool disconnectObject = true,
bool updateOnlySpecifiedColumns = 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) - updateOnlySpecifiedColumns (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:
TranslationHelperTranslation helper
See Also