IndexAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定在資料庫中產生的索引。
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class IndexAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class IndexAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type IndexAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type IndexAttribute = class
inherit Attribute
Public NotInheritable Class IndexAttribute
Inherits Attribute
- 繼承
-
IndexAttribute
- 屬性
備註
更多資訊與範例請參閱 建模實體類型與關係 。
建構函式
| 名稱 | Description |
|---|---|
| IndexAttribute(String, String[]) |
初始化 IndexAttribute 類別的新執行個體。 |
| IndexAttribute(String[]) |
已淘汰.
初始化 IndexAttribute 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| AllDescending |
所有索引欄位是否採用遞減排序順序。 |
| IsDescending |
一組值,指示每個對應的索引欄是否採用遞減排序順序。 |
| IsUnique |
指數是否唯一。 |
| IsUniqueHasValue |
檢查是否 IsUnique 已被明確設定為某個值。 |
| Name |
索引的名稱。 |
| PropertyNames |
構成指標的屬性,依序排列。 |