ValidateColumn

Class ValidateColumn

This attribute defines a default or custom check that is applied to a property.

Inheritance
ValidateColumn
Inherited Members
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public sealed class ValidateColumn : Attribute

Constructors

ValidateColumn()

Declaration
    public ValidateColumn()

ValidateColumn(ValueGenerationEvent)

Declaration
    public ValidateColumn(ValueGenerationEvent valueGenerationEvent)
Parameters
TypeNameDescription
ValueGenerationEventvalueGenerationEvent

Properties

Context

Declaration
    public object Context { get; }
Property Value
TypeDescription
object

CustomValidation

Declaration
    public Predicate<object> CustomValidation { get; set; }
Property Value
TypeDescription
Predicate<object>

DateTimeStyles

Declaration
    public DateTimeStyles DateTimeStyles { get; set; }
Property Value
TypeDescription
DateTimeStyles

FormatProvider

Declaration
    public IFormatProvider FormatProvider { get; set; }
Property Value
TypeDescription
IFormatProvider

NumberStyles

Declaration
    public NumberStyles NumberStyles { get; set; }
Property Value
TypeDescription
NumberStyles

Parameter1

Declaration
    public object Parameter1 { get; set; }
Property Value
TypeDescription
object

Parameter2

Declaration
    public object Parameter2 { get; set; }
Property Value
TypeDescription
object

PropertyName

Name of the property to wich the validation is applied.

Declaration
    public string PropertyName { get; set; }
Property Value
TypeDescription
string

ValidationMethod

Declaration
    public ValidationMethod ValidationMethod { get; set; }
Property Value
TypeDescription
ValidationMethod