Class ValueConverterAttribute
Declares the IPropertyValueConverter applied to a mapped property. The converter type must be a non-abstract class implementing IPropertyValueConverter with a public parameterless constructor.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class ValueConverterAttribute : Attribute
- Inheritance
-
ValueConverterAttribute
- Inherited Members
- Extension Methods
Constructors
ValueConverterAttribute(Type)
Creates the attribute for the given converter type.
public ValueConverterAttribute(Type converterType)
Parameters
converterTypeTypeThe converter type; a non-abstract IPropertyValueConverter implementation.
Properties
ConverterType
The converter type applied to the property.
public Type ConverterType { get; }