Table of Contents

Class ValueConverterFunc<TModel, TProvider>

Namespace
LinqToDB.Common
Assembly
linq2db.dll
public class ValueConverterFunc<TModel, TProvider> : IValueConverter

Type Parameters

TModel
TProvider
Inheritance
ValueConverterFunc<TModel, TProvider>
Implements
Extension Methods

Constructors

ValueConverterFunc(Func<TModel, TProvider>, Func<TProvider, TModel>, bool)

public ValueConverterFunc(Func<TModel, TProvider> convertToProviderFunc, Func<TProvider, TModel> convertFromProviderFunc, bool handlesNulls)

Parameters

convertToProviderFunc Func<TModel, TProvider>
convertFromProviderFunc Func<TProvider, TModel>
handlesNulls bool

Properties

FromProviderExpression

Gets the expression to convert objects when reading data from the database.

public LambdaExpression FromProviderExpression { get; }

Property Value

LambdaExpression

HandlesNulls

Identifies that convert expressions can handle null values.

public bool HandlesNulls { get; }

Property Value

bool

ToProviderExpression

Gets the expression to convert objects when writing data to the database.

public LambdaExpression ToProviderExpression { get; }

Property Value

LambdaExpression