IndexAttribute コンストラクター (String, Int32)
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
指定された名前および列の順序であるが、指定されたクラスタリングまたは一意性がないインデックスの新しい IndexAttribute インスタンスを初期化します。
名前空間: System.ComponentModel.DataAnnotations.Schema
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public Sub New ( _
name As String, _
order As Integer _
)
'使用
Dim name As String
Dim order As Integer
Dim instance As New IndexAttribute(name, order)
public IndexAttribute(
string name,
int order
)
public:
IndexAttribute(
String^ name,
int order
)
new :
name:string *
order:int -> IndexAttribute
public function IndexAttribute(
name : String,
order : int
)
パラメーター
- name
型 : System.String
インデックス名。
- order
型 : System.Int32
複数列インデックスの列の順序付けを決定するために使用する数。
解説
複数列のインデックスは、複数の属性で同じインデックス名を使用して作成されます。 その後、これらの属性の情報は実際のデータベース インデックスを指定するためにマージされます。