Class DbConvert
Class containing static methods to convert back and from the database.
Inherited Members
Namespace: SuperOfficeData
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public sealed class DbConvert
Methods
FromDb(object, DbConvertType)
Converts the value from the type used in the database to the type used in Rows and Entities.
Declaration
public static object FromDb(object value, DbConvertType type)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value returned from the database |
| DbConvertType | type | Type of value. |
Returns
| Type | Description |
|---|---|
| object | The value used in HDB and CRM.Entities. |
ToDb(object, DbConvertType)
Converts the value from the type used in HDB and RDB to the type used in the database.
Declaration
public static object ToDb(object value, DbConvertType type)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value used in HDB and CRM.Entities. |
| DbConvertType | type | The type of the value. |
Returns
| Type | Description |
|---|---|
| object | The value that can be inserted into the database. |