#ctor ()
Initializes a new instance of the Logic base class.
#ctor ( connectionString, providerName )
Initializes a new instance of the Logic base class.
| Name | Type | Description |
|---|
| connectionString | System.String | The Connection string. |
| providerName | System.String | The database provider name. e.g. System.Data.SqlClient (default). |
AddDefaultSortOrder ( sortOrder )
Adds the default sort order.
| Name | Type | Description |
|---|
| sortOrder | System.Collections.Generic.KeyValuePair{System.Collections.Generic.List{System.Linq.Expressions.Expression{System.Func{System.Object}}} | A key/value pair with a Lambda expression in the form: '() => Class.Property' as key and a value indicating if the sorting must be ascending(false) or descending(true). |
AddDefaultSortOrder ( sortOrder )
Adds the default sort order.
| Name | Type | Description |
|---|
| sortOrder | System.Collections.Generic.KeyValuePair{System.Linq.Expressions.Expression{System.Func{System.Object}} | A key/value pair with a Lambda expression in the form: '() => Class.Property' as key and a value indicating if the sorting must be ascending(false) or descending(true). |
ApplyDefaultSortOrder ( query )
Applies the default sort order to the query.
| Name | Type | Description |
|---|
| query | Componyx.Data.DAL.FluentQuery{<T>} | The FluentQuery of type T. |
ReturnsThe FluentQuery of type T.
ApplyPaging ( dal, query, pageIndex )
Apply paging to the query.
| Name | Type | Description |
|---|
| dal | Componyx.Data.DAL | - |
| query | Componyx.Data.DAL.FluentQuery{<T>} | - |
| pageIndex | System.Nullable{System.Int32} | - |
Delete ( obj, deep )
Removes the item in the database.
| Name | Type | Description |
|---|
| obj | <T> | The object to delete. |
| deep | System.Boolean | Defines if related objects are removed. |
DeleteAsync ( obj, deep )
Removes the item in the database.
| Name | Type | Description |
|---|
| obj | <T> | The object to delete. |
| deep | System.Boolean | Defines if related objects are removed. |
DeleteSet ( list, deep )
Removes the items in the database.
| Name | Type | Description |
|---|
| list | System.Collections.Generic.IEnumerable{<T>} | A list of objects to delete. |
| deep | System.Boolean | Defines if related objects are removed. |
DeleteSetAsync ( list, deep )
Removes the items in the database.
| Name | Type | Description |
|---|
| list | System.Collections.Generic.IEnumerable{<T>} | A list of objects to delete. |
| deep | System.Boolean | Defines if related objects are removed. |
Init ()
Initializes the class. This method can be overridden in the derived class.
InitDAL ( dal )
Initializes the Data Access Layer. This method can be overridden in the derived class.
| Name | Type | Description |
|---|
| dal | Componyx.Data.DAL | - |
InitDALAsync ( dal )
Initializes the Data Access Layer. This method can be overridden in the derived class.
| Name | Type | Description |
|---|
| dal | Componyx.Data.DAL | - |
Load ( obj )
Loads a single item of the specified type.
| Name | Type | Description |
|---|
| obj | <T> | The object to load. |
ReturnsA single item of the specified type.
LoadAsync ( obj )
Loads a single item of the specified type.
| Name | Type | Description |
|---|
| obj | <T> | The object to load. |
ReturnsA single item of the specified type.
LoadSet ()
Loads a list of items with the specified type.
ReturnsA list with items of the specified type.
LoadSet ( pageIndex )
Loads a list of items with the specified type.
| Name | Type | Description |
|---|
| pageIndex | System.Nullable{System.Int32} | The page index of the paged result set to load. |
ReturnsA list of the specified type.
LoadSetAsync ()
Loads a list of items with the specified type.
ReturnsA list with items of the specified type.
LoadSetAsync ( pageIndex )
Loads a list of items with the specified type.
| Name | Type | Description |
|---|
| pageIndex | System.Nullable{System.Int32} | The page index of the paged result set to load. |
ReturnsA list of the specified type.
Save ( obj, deep, refreshModel )
Stores the item in the database.
| Name | Type | Description |
|---|
| obj | <T> | The object to store. |
| deep | System.Boolean | Defines if related objects are stored. |
| refreshModel | System.Boolean | Defines if the model should be reloaded from the database. |
SaveAsync ( obj, deep, refreshModel )
Stores the item in the database.
| Name | Type | Description |
|---|
| obj | <T> | The object to store. |
| deep | System.Boolean | Defines if related objects are stored. |
| refreshModel | System.Boolean | Defines if the model should be reloaded from the database. |
SaveSet ( list, deep, refreshModel )
Stores the items in the database.
| Name | Type | Description |
|---|
| list | System.Collections.Generic.IEnumerable{<T>} | A list of objects to store. |
| deep | System.Boolean | Defines if related objects are stored. |
| refreshModel | System.Boolean | Defines if the model should be reloaded from the database. |
SaveSetAsync ( list, deep, refreshModel )
Stores the items in the database.
| Name | Type | Description |
|---|
| list | System.Collections.Generic.IEnumerable{<T>} | A list of objects to store. |
| deep | System.Boolean | Defines if related objects are stored. |
| refreshModel | System.Boolean | Defines if the model should be reloaded from the database. |
SetDefaultSortOrder ( sortOrder )
Sets the default sort order.
| Name | Type | Description |
|---|
| sortOrder | System.Collections.Generic.List{System.Collections.Generic.KeyValuePair{System.Collections.Generic.List{System.Linq.Expressions.Expression{System.Func{System.Object}}} | A list of key/value pairs with a Lambda expression in the form: '() => Class.Property' as key and a value indicating if the sorting must be ascending(false) or descending(true). |
SetDefaultSortOrder ( sortOrder )
Sets the default sort order.
| Name | Type | Description |
|---|
| sortOrder | System.Collections.Generic.List{System.Collections.Generic.KeyValuePair{System.Linq.Expressions.Expression{System.Func{System.Object}} | A list of key/value pairs with a Lambda expression in the form: '() => Class.Property' as key and a value indicating if the sorting must be ascending(false) or descending(true). |