ExpansionBase.GetPrimaryKey Method

<< >>

Navigation:  CodeStencil > Custom Library > Class Library > Expansion Namespace > ExpansionBase Class > ExpansionBase Methods >

ExpansionBase.GetPrimaryKey Method

Get the primary key of a table

Namespace: ZeraSystems.CodeNanite.Expansion

Assembly:  ZeraSystems.CodeNanite.Expansion (in ZeraSystems.CodeNanite.Expansion.dll)

Syntax


public string GetPrimaryKey(
 string table
)

Parameters

table

Type: String

This is the table we need primary key for

Return Value

Primary Key

Examples

 

   GetPrimaryKey("Customer");

 

  Returns:

 

   CustomerId

 

 

See Customer Table