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)
public string GetPrimaryKey(
string table
)
table
Type: String
This is the table we need primary key for
Primary Key
GetPrimaryKey("Customer");
Returns:
CustomerId
See Customer Table