Hide

YetaWF.DataProvider.SQLGeneric Package Documentation

Display
Print

YetaWF.DataProvider.SQLGeneric.SQLGenericBase.GetKey2Name Method

Returns the secondary key's column name.

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

Syntax

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

Parameters

tableName

The table name.

propertyData

The collection of property information.

Return Value

Returns the secondary key's column name.

Remarks

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

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