Table of Contents

Class ValueConverter

Namespace
DevExpress.Xpo.Metadata
Assembly
DevExpress.Xpo.v24.1.dll

Serves as a base for the classes that represent property Value Converters.

public abstract class ValueConverter
Inheritance
ValueConverter
Derived
Inherited Members

Constructors

ValueConverter()

protected ValueConverter()

Properties

StorageType

When overridden in a derived class, gets the type that the property’s value is converted to when it’s saved in a data store.

public abstract Type StorageType { get; }

Property Value

Type

A Type descendant which represents the type that the property’s value is converted to when it’s saved in a data store.

Methods

ConvertFromStorageType(object)

When overridden in a derived class, converts the value which is stored in a data store to the persistent property’s value.

public abstract object ConvertFromStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value.

ConvertToStorageType(object)

When overridden in a derived class, converts the persistent property’s value to the value which is stored in a data store.

public abstract object ConvertToStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value.