LinqConnect Documentation
In This Topic
    Attribute Mapping
    In This Topic
    Using Attributes
    LinqConnect Documentation
    Attribute Mapping
    [email protected]

    An entity class is just like any class that you might define as a part of your application, except that it is annotated with special information that associates it with a particular database table. These annotations are made as custom attributes on your class declaration. The attributes are only meaningful when you use the class in conjunction with LinqConnect. They are similar to the XML serialization attributes in the .NET Framework. These "data" attributes provide LinqConnect with enough information to translate queries for your objects into SQL queries against the database and changes to your objects into SQL insert, update, and delete commands.

    LinqConnect supports the following attributes:

    • Database
    • Table
    • Column
    • Association
    • InheritanceMapping
    • Function
    • Parameter
    • ResultType

    See the description of these attributes and samples using them in the Mapping Definition section.