IMutableEntityType.RemoveKey メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
RemoveKey(IMutableKey) |
このエンティティ型から主キーまたは代替キーを削除します。 |
RemoveKey(IReadOnlyKey) |
このエンティティ型から主キーまたは代替キーを削除します。 |
RemoveKey(IReadOnlyList<IProperty>) |
このエンティティから主キーまたは代替キーを削除します。 |
RemoveKey(IReadOnlyList<IReadOnlyProperty>) |
このエンティティ型から主キーまたは代替キーを削除します。 |
RemoveKey(IMutableKey)
このエンティティ型から主キーまたは代替キーを削除します。
public void RemoveKey (Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey RemoveKey (Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);
abstract member RemoveKey : Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> unit
abstract member RemoveKey : Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Sub RemoveKey (key As IMutableKey)
Public Function RemoveKey (key As IMutableKey) As IMutableKey
パラメーター
- key
- IMutableKey
削除するキー。
戻り値
削除されたキー。
適用対象
RemoveKey(IReadOnlyKey)
このエンティティ型から主キーまたは代替キーを削除します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey? RemoveKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey key);
abstract member RemoveKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function RemoveKey (key As IReadOnlyKey) As IMutableKey
パラメーター
- key
- IReadOnlyKey
削除するキー。
戻り値
削除されたキー。キー null
が見つからなかった場合は 。
適用対象
RemoveKey(IReadOnlyList<IProperty>)
このエンティティから主キーまたは代替キーを削除します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey RemoveKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
abstract member RemoveKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function RemoveKey (properties As IReadOnlyList(Of IProperty)) As IMutableKey
パラメーター
- properties
- IReadOnlyList<IProperty>
キーを構成するプロパティ。
戻り値
削除されたキー。
適用対象
RemoveKey(IReadOnlyList<IReadOnlyProperty>)
このエンティティ型から主キーまたは代替キーを削除します。
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey? RemoveKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member RemoveKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function RemoveKey (properties As IReadOnlyList(Of IReadOnlyProperty)) As IMutableKey
パラメーター
- properties
- IReadOnlyList<IReadOnlyProperty>
キーを構成するプロパティ。
戻り値
削除されたキー。キー null
が見つからなかった場合は 。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework