Hide

YetaWF.DataProvider.SQLGeneric Package Documentation

Display
Print

YetaWF.DataProvider.SQLGeneric.SQLGenericBase.GetKey1Name Method

Returns the primary key's column name.

Class: YetaWF.DataProvider.SQLGeneric.SQLGenericBase
Namespace: YetaWF.DataProvider.SQLGeneric
Assembly: YetaWF.DataProvider.SQLGeneric

Syntax

protected string GetKey1Name(
    string tableName,
    List<YetaWF.Core.Models.PropertyData> propertyData );

Parameters

tableName

The table name.

propertyData

The collection of property information.

Return Value

Returns the primary key's column name.

Remarks

A primary key is defined in a model by decorating a property with the YetaWF.Core.DataProvider.Attributes.Data_PrimaryKey attribute. If no primary key is defined for the specified table, an exception occurs.

See Also YetaWF.DataProvider.SQLGeneric.SQLGenericBase ClassYetaWF.DataProvider.SQLGenericYetaWF.Core