MetaTable.GetPrimaryKeyString 方法

定义

获取表示指定行的主键的值列表。Gets a list of values that represent the primary key for the specified row.

重载

GetPrimaryKeyString(IList<Object>)

返回一个以逗号分隔的列值列表,这些列值表示指定行的主键。Returns a comma-separated list of column values that represent the primary key for the specified row.

GetPrimaryKeyString(Object)

返回一个以逗号分隔的列值列表,这些列值表示指定行的主键。Returns a comma-separated list of column values that represent the primary key for the specified row.

GetPrimaryKeyString(IList<Object>)

返回一个以逗号分隔的列值列表,这些列值表示指定行的主键。Returns a comma-separated list of column values that represent the primary key for the specified row.

public:
 System::String ^ GetPrimaryKeyString(System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues);
public:
 virtual System::String ^ GetPrimaryKeyString(System::Collections::Generic::IList<System::Object ^> ^ primaryKeyValues);
public string GetPrimaryKeyString (System.Collections.Generic.IList<object> primaryKeyValues);
member this.GetPrimaryKeyString : System.Collections.Generic.IList<obj> -> string
abstract member GetPrimaryKeyString : System.Collections.Generic.IList<obj> -> string
override this.GetPrimaryKeyString : System.Collections.Generic.IList<obj> -> string
Public Function GetPrimaryKeyString (primaryKeyValues As IList(Of Object)) As String

参数

primaryKeyValues
IList<Object>

组成主键的列值的列表。The list of column values that make up the primary key.

返回

String

一个以逗号分隔的列值的列表。A comma-separated list of column values. 如果列表为空,则返回空字符串。If the list is empty, an empty string is returned.

适用于

GetPrimaryKeyString(Object)

返回一个以逗号分隔的列值列表,这些列值表示指定行的主键。Returns a comma-separated list of column values that represent the primary key for the specified row.

public:
 System::String ^ GetPrimaryKeyString(System::Object ^ row);
public:
 virtual System::String ^ GetPrimaryKeyString(System::Object ^ row);
public string GetPrimaryKeyString (object row);
member this.GetPrimaryKeyString : obj -> string
abstract member GetPrimaryKeyString : obj -> string
override this.GetPrimaryKeyString : obj -> string
Public Function GetPrimaryKeyString (row As Object) As String

参数

row
Object

要获取其主键的行。The row to get the primary key for.

返回

String

一个以逗号分隔的列值列表,这些列值表示行的主键。A comma-separated list of column values that represent the primary key for the row.

适用于