Show / Hide Table of Contents

Class DbConvert

Class containing static methods to convert back and from the database.

Inheritance
object
DbConvert
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top