IMutableEntityType.FindKey 方法

定義

多載

FindKey(IReadOnlyProperty)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

FindKey(IReadOnlyList<IProperty>)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

FindKey(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

FindKey(IReadOnlyProperty)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey? FindKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.FindKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function FindKey (property As IReadOnlyProperty) As IMutableKey

參數

property
IReadOnlyProperty

索引鍵定義所在的屬性。

傳回

如果未定義索引鍵,則為 null。

適用於

FindKey(IReadOnlyList<IProperty>)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function FindKey (properties As IReadOnlyList(Of IProperty)) As IMutableKey

參數

properties
IReadOnlyList<IProperty>

組成索引鍵的屬性。

傳回

索引鍵,如果 null 未定義則為 。

適用於

FindKey(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的主要或替代索引鍵。 null如果未為指定的屬性定義任何索引鍵,則傳回 。

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey? FindKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function FindKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IMutableKey

參數

properties
IReadOnlyList<IReadOnlyProperty>

組成索引鍵的屬性。

傳回

索引鍵,如果 null 未定義則為 。

適用於