PrimaryKeyAttribute(String, String[]) Constructor
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.
Initializes a new instance of the PrimaryKeyAttribute class.
public PrimaryKeyAttribute (string propertyName, params string[] additionalPropertyNames);
new Microsoft.EntityFrameworkCore.PrimaryKeyAttribute : string * string[] -> Microsoft.EntityFrameworkCore.PrimaryKeyAttribute
Public Sub New (propertyName As String, ParamArray additionalPropertyNames As String())
Parameters
- propertyName
- String
The first (or only) property in the primary key.
- additionalPropertyNames
- String[]
The additional properties which constitute the primary key, if any, in order.
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