语言

IndexAttribute 构造函数

定义

重载

名称 说明
IndexAttribute(String[])
已过时.

初始化 IndexAttribute 类的新实例。

IndexAttribute(String, String[])

初始化 IndexAttribute 类的新实例。

IndexAttribute(String[])

Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs

注意

Use the other constructor

初始化 IndexAttribute 类的新实例。

[System.Obsolete("Use the other constructor")]
public IndexAttribute(params string[] propertyNames);
public IndexAttribute(params string[] propertyNames);
[<System.Obsolete("Use the other constructor")>]
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
Public Sub New (ParamArray propertyNames As String())

参数

propertyNames
String[]

构成索引的属性(必须至少有一个)。

特性

适用于

IndexAttribute(String, String[])

Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs
Source:
IndexAttribute.cs

初始化 IndexAttribute 类的新实例。

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())

参数

propertyName
String

索引中的第一个(或仅)属性。

additionalPropertyNames
String[]

构成索引的其他属性(如果有)按顺序排列。

适用于