Interface IEntity
Assembly: Terrasoft.Core.dll
Syntax
Methods
Delete(Object)
Declaration
bool Delete(object keyValue)
Parameters
Type |
Name |
Description |
System.Object |
keyValue |
The key value.
|
Returns
Type |
Description |
System.Boolean |
True if entity was deleted, otherwise False .
|
Delete(Object, Boolean)
Declaration
bool Delete(object keyValue, bool trackChanges)
Parameters
Type |
Name |
Description |
System.Object |
keyValue |
The key value.
|
System.Boolean |
trackChanges |
Indicates whether to track changes.
|
Returns
Type |
Description |
System.Boolean |
True if entity was deleted, otherwise False .
|
FetchFromDB(IEnumerable<String>, Boolean)
Loads specified column values from database.
Declaration
bool FetchFromDB(IEnumerable<string> columnNamesToFetch, bool useDisplayValues)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
columnNamesToFetch |
Column names to load.
|
System.Boolean |
useDisplayValues |
Indicate whether to load primary display values.
If true primary display values will be fetched.
|
Returns
Type |
Description |
System.Boolean |
true if column values loaded. Otherwise returns false .
|
FetchFromDB(Object, Boolean)
Loads all column values from database.
Declaration
bool FetchFromDB(object keyValue, bool useDisplayValues)
Parameters
Type |
Name |
Description |
System.Object |
keyValue |
Primary column value.
|
System.Boolean |
useDisplayValues |
Indicate whether to load primary display values.
If true primary display values will be fetched.
|
Returns
Type |
Description |
System.Boolean |
true if column values loaded. Otherwise returns false .
|
FetchFromDB(String, Object, Boolean)
Declaration
bool FetchFromDB(string conditionColumnName, object conditionValue, bool useDisplayValues = true)
Parameters
Type |
Name |
Description |
System.String |
conditionColumnName |
|
System.Object |
conditionValue |
|
System.Boolean |
useDisplayValues |
|
Returns
Type |
Description |
System.Boolean |
|
GetIsColumnValueLoaded(String)
Declaration
bool GetIsColumnValueLoaded(string valueName)
Parameters
Type |
Name |
Description |
System.String |
valueName |
|
Returns
Type |
Description |
System.Boolean |
|
GetTypedColumnValue<TResult>(String)
Declaration
TResult GetTypedColumnValue<TResult>(string valueName)
Parameters
Type |
Name |
Description |
System.String |
valueName |
|
Returns
Type Parameters
Save(Boolean, Boolean)
Declaration
bool Save(bool validateRequired = true, bool setColumnDefValue = true)
Parameters
Type |
Name |
Description |
System.Boolean |
validateRequired |
|
System.Boolean |
setColumnDefValue |
|
Returns
Type |
Description |
System.Boolean |
|
Save(Boolean, Boolean, Boolean)
Declaration
bool Save(bool validateRequired, bool setColumnDefValue, bool trackChanges)
Parameters
Type |
Name |
Description |
System.Boolean |
validateRequired |
|
System.Boolean |
setColumnDefValue |
|
System.Boolean |
trackChanges |
|
Returns
Type |
Description |
System.Boolean |
|
Save(EntitySaveConfig)
Declaration
bool Save(EntitySaveConfig saveConfig)
Parameters
Returns
Type |
Description |
System.Boolean |
true > if entity saved. Otherwise returns false
|
SetColumnValue(String, Object)
Declaration
bool SetColumnValue(string valueName, object value)
Parameters
Type |
Name |
Description |
System.String |
valueName |
|
System.Object |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods