Allows the implementation of domain model objects.
Type | Name | Summary |
---|---|---|
AfterEraseEventHandler | AfterErase | AfterErase event is fired after that the Erase method is executed. |
AfterSaveEventHandler | AfterSave | AfterSave event is fired after that the Save method is executed. |
BeforeEraseEventHandler | BeforeErase | BeforeErase event is fired before that the Erase method is executed. |
BeforeSaveEventHandler | BeforeSave | BeforeSave event is fired before that the Save method is executed. |
Column/property map.
public ColumnPropertyMappings ColumnPropertyMappings { get; set; }
Gets the DataAction that is currently performed on this object.
public DataAction CurrentAction { get; }
A collection of data properties.
public IDictionary<String, IDataProperty> DataProperties { get; }
Get or set the data services object.
public IDataServices DataServices { get; set; }
Get whether the validation of the object must be enforced.
public Boolean EnforceModelValidation { get; }
Get or set an object that manages the generation of identity fields values.
public IIdentity Identity { get; set; }
Get or set data properties.
public Object Item { get; set; }
Get whether the object has been modified.
public Boolean Modified { get; }
Get or set an object that manages the generation of numerator fields values.
public INumerator Numerator { get; set; }
Get or set an object that manages the generation of sequence fields values.
public ISequencer Sequencer { get; set; }
Get or set the data validator object.
public IDataModelValidator Validator { get; set; }
Clears the contents of the object.
public Void Clear()
Erases an object by issuing a delete command to the underlaying data source, automatically applying concurrency check when possible.
public Void Erase()
Erases an object by issuing a delete command to the underlaying data source.
public Void Erase(concurrency)
Name | Type | Summary |
---|---|---|
concurrency | ConcurrencyMode | Mode of concurrency to apply to the erase action. |
Erases an object by issuing a delete command to the underlaying data source, automatically applying concurrency check when possible.
public Task EraseAsync()
Erases an object by issuing a delete command to the underlaying data source.
public Task EraseAsync(concurrency)
Name | Type | Summary |
---|---|---|
concurrency | ConcurrencyMode | Mode of concurrency to apply to the erase action. |
Fill this object with the contents of the specified DataRow object.
public Void Fill(row)
Name | Type | Summary |
---|---|---|
row | DataRow | The DataRow object. |
Returns the value of the internal property field.
public Object GetDataPropertyValue(property)
The value of the property field.
Name | Type | Summary |
---|---|---|
property | String | The property to get it's internal value. |
Test if a data property has data.
public Boolean HasData(property)
True if the property has data.
Name | Type | Summary |
---|---|---|
property | String | The name of the property. |
Test if a data property has been modified.
public Boolean IsModified(property)
True if the property has been modified.
Name | Type | Summary |
---|---|---|
property | String | The name of the property. |
Saves the object by issuing an insert or update command based on the specified action, automatically applying concurrency check when possible.
public Void Save(action)
Name | Type | Summary |
---|---|---|
action | DataAction | The action to execute. |
Saves the object by issuing an insert or update command based on the specified action.
public Void Save(action, concurrency)
Name | Type | Summary |
---|---|---|
action | DataAction | The action to execute. |
concurrency | ConcurrencyMode | Concurrency mode to apply. |
Saves the object by issuing an insert or update command based on the specified action, automatically applying concurrency check when possible.
public Task SaveAsync(action)
Name | Type | Summary |
---|---|---|
action | DataAction | The action to execute. |
Saves the object by issuing an insert or update command based on the specified action.
public Task SaveAsync(action, concurrency)
Name | Type | Summary |
---|---|---|
action | DataAction | The action to execute. |
concurrency | ConcurrencyMode | Concurrency mode to apply. |
Sets the value od the internal property field.
public Void SetDataPropertyValue(property, value)
Name | Type | Summary |
---|---|---|
property | String | The property to set it's internal value. |
value | Object | The new value for the property. |
Validates this object.
public Void Validate()
In this document