Share via


PrimaryKeyAttribute(String, String[]) Constructor

Definition

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