FieldNameAttribute

Overview

Property Attribute. Represent mapping between field name in the schema and property name of the DA LINQ table definition class.

[FieldName("Product")]
public virtual int Product 
{
 ...
}

This attribute is used by DA LINQ engine internally for proper configuring serialization/de-serialization routines.

Note: If attribute is not specified, then property name will be treated as the field name of the schema data table. Use the IgnorePropertyAttribute attribute to mark properties that should be not mapped to database fields.

Location

Properties


Name

Name of the data field in the underlying database.

 

property Name: String read;

 

String Name { get; }

 

Property ReadOnly Name As String

Instance Methods


constructor

Creates a new instance of the FieldNameAttribute class and sets its Name property.

 

constructor(name: String)

 

FieldNameAttribute(String name)

 

Sub New (name As String)

Parameters:

  • name: Schema field name

See Also

  • DA LINQ Table Definitions