IndexAttribute Constructors
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
IndexAttribute(String[]) |
Obsolete.
Initializes a new instance of the IndexAttribute class. |
IndexAttribute(String, String[]) |
Initializes a new instance of the IndexAttribute class. |
IndexAttribute(String[])
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
Caution
Use the other constructor
Initializes a new instance of the IndexAttribute class.
public IndexAttribute (params string[] propertyNames);
[System.Obsolete("Use the other constructor")]
public IndexAttribute (params string[] propertyNames);
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
[<System.Obsolete("Use the other constructor")>]
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
Public Sub New (ParamArray propertyNames As String())
Parameters
- propertyNames
- String[]
The properties which constitute the index, in order (there must be at least one).
- Attributes
Applies to
IndexAttribute(String, String[])
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
- Source:
- IndexAttribute.cs
Initializes a new instance of the IndexAttribute class.
public IndexAttribute (string propertyName, params string[] additionalPropertyNames);
new Microsoft.EntityFrameworkCore.IndexAttribute : string * string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
Public Sub New (propertyName As String, ParamArray additionalPropertyNames As String())
Parameters
- propertyName
- String
The first (or only) property in the index.
- additionalPropertyNames
- String[]
The additional properties which constitute the index, if any, in order.
Applies to
Entity Framework