共用方式為


RelationalKeyAnnotations.GetDefaultKeyName 方法

定義

public static string GetDefaultKeyName (string tableName, bool primaryKey, System.Collections.Generic.IEnumerable<string> propertyNames);
static member GetDefaultKeyName : string * bool * seq<string> -> string
Public Shared Function GetDefaultKeyName (tableName As String, primaryKey As Boolean, propertyNames As IEnumerable(Of String)) As String

參數

tableName
String
primaryKey
Boolean
propertyNames
IEnumerable<String>

傳回

適用於