Class ValueConverterFunc<TModel, TProvider>
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
HandlesNulls
Identifies that convert expressions can handle null values.
public bool HandlesNulls { get; }
Property Value
ToProviderExpression
Gets the expression to convert objects when writing data to the database.
public LambdaExpression ToProviderExpression { get; }