IMutableEntityType.RemoveKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoveKey(IMutableKey) |
Removes a primary or alternate key from this entity type. |
RemoveKey(IReadOnlyKey) |
Removes a primary or alternate key from this entity type. |
RemoveKey(IReadOnlyList<IProperty>) |
Removes a primary or alternate key from this entity. |
RemoveKey(IReadOnlyList<IReadOnlyProperty>) |
Removes a primary or alternate key from this entity type. |
RemoveKey(IMutableKey)
Removes a primary or alternate key from this entity type.
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
Parameters
- key
- IMutableKey
The key to be removed.
Returns
The removed key.
Applies to
RemoveKey(IReadOnlyKey)
Removes a primary or alternate key from this entity type.
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
Parameters
- key
- IReadOnlyKey
The key to be removed.
Returns
The removed key, or null
if the key was not found.
Applies to
RemoveKey(IReadOnlyList<IProperty>)
Removes a primary or alternate key from this entity.
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
Parameters
- properties
- IReadOnlyList<IProperty>
The properties that make up the key.
Returns
The key that was removed.
Applies to
RemoveKey(IReadOnlyList<IReadOnlyProperty>)
Removes a primary or alternate key from this entity type.
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
Parameters
- properties
- IReadOnlyList<IReadOnlyProperty>
The properties that make up the key.
Returns
The removed key, or null
if the key was not found.
Applies to
Entity Framework