Table of Contents

Class VelocityField

Namespace
YndigoBlue.Velocity.Attributes
Assembly
YndigoBlue.Velocity.dll

Configures how a C# property maps to a database column during data binding. Use this attribute to specify column names, mark auto-generated columns, or exclude properties from binding.

[AttributeUsage(AttributeTargets.Property)]
public class VelocityField : Attribute
Inheritance
VelocityField

Constructors

VelocityField(bool)

Excludes this property from all data binding operations.

VelocityField(string, bool)

Maps this property to the specified database column.

Properties

AutoGenerate

Gets whether the database auto-generates this column's value (e.g. identity/serial).

FieldName

Gets the name of the database column this property maps to.

Ignore

Gets whether this property should be excluded from all data binding operations.