RuntimeEntityType.AddKey(IReadOnlyList<RuntimeProperty>) 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.
Adds a new alternate key to this entity type.
public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Public Overridable Function AddKey (properties As IReadOnlyList(Of RuntimeProperty)) As RuntimeKey
Parameters
- properties
- IReadOnlyList<RuntimeProperty>
The properties that make up the alternate key.
Returns
The newly created key.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework