Class LoadDataSettings
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Defines the settings for loading data into objects
public class LoadDataSettings
- Inheritance
-
objectLoadDataSettings
- Extension Methods
Constructors
LoadDataSettings(IDataContainer, string)
Constructor
public LoadDataSettings(IDataContainer data, string objectType = null)
Parameters
dataIDataContainerSource data
objectTypestringObject type
LoadDataSettings(DataRow, string)
Constructor
public LoadDataSettings(DataRow dr, string objectType = null)
Parameters
drDataRowSource DataRow
objectTypestringObject type
Properties
Data
Object data. When object type is not specified, data may provide necessary information to select correct object type in case there are multiple candidates.
public IDataContainer Data { get; set; }
Property Value
DataIsExternal
Determines if the provided data is external data which may not be complete. If true, the loaded object loads default data before loading this data, and does not overwrite default values with null from external data.
public bool DataIsExternal { get; set; }
Property Value
- bool
ObjectType
Object type used by the factory to create a specific type of the object.
public string ObjectType { get; protected set; }
Property Value
- string
ThrowIfNotFound
If true, the method throws an exception in case the object type was not found. Default false
public bool ThrowIfNotFound { get; set; }
Property Value
- bool