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
- Reference: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract.Linq
- Ancestry: Attribute | FieldNameAttribute
Properties
Name
Name of the data field in the underlying database.
property Name: String read;
String Name { get; }
ReadOnly Property 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
- DA LINQ Table Definitions