DecimalPropertyConfiguration 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。
public class DecimalPropertyConfiguration : System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
type DecimalPropertyConfiguration = class
inherit PrimitivePropertyConfiguration
Public Class DecimalPropertyConfiguration
Inherits PrimitivePropertyConfiguration
- 繼承
方法
Equals(Object) |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 |
Equals(Object) |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 (繼承來源 PrimitivePropertyConfiguration) |
GetHashCode() |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 |
GetHashCode() |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 (繼承來源 PrimitivePropertyConfiguration) |
GetType() |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 |
GetType() |
取得目前執行個體的 Type。 (繼承來源 PrimitivePropertyConfiguration) |
HasColumnAnnotation(String, Object) |
針對用來儲存屬性的資料庫資料行,在模型中設定批註。 稍後可以在處理資料行時使用批註值,例如建立移轉時。 |
HasColumnAnnotation(String, Object) |
針對用來儲存屬性的資料庫資料行,在模型中設定批註。 稍後可以在處理資料行時使用批註值,例如建立移轉時。 (繼承來源 PrimitivePropertyConfiguration) |
HasColumnName(String) |
設定用來儲存此屬性的資料庫資料行名稱。 |
HasColumnOrder(Nullable<Int32>) |
設定用來儲存此屬性之資料庫資料行的順序。 當實體型別有複合索引鍵時,這個方法也會用來指定索引鍵排序。 |
HasColumnType(String) |
設定用來儲存此屬性之資料庫資料行的資料型別。 |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
設定資料庫如何產生此屬性的值。 |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
設定資料庫如何產生此屬性的值。 |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
設定資料庫如何產生此屬性的值。 (繼承來源 PrimitivePropertyConfiguration) |
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>) |
設定資料庫如何產生此屬性的值。 (繼承來源 PrimitivePropertyConfiguration) |
HasParameterName(String) |
設定這個屬性預存程式中所使用的參數名稱。 (繼承來源 PrimitivePropertyConfiguration) |
HasPrecision(Byte, Byte) |
設定此屬性的有效位數和小數位數。 |
IsConcurrencyToken() |
設定此屬性當做開放式並行存取 Token 使用。 |
IsConcurrencyToken(Nullable<Boolean>) |
設定此屬性是否當做開放式並行存取 Token 使用。 |
IsOptional() |
將屬性設定為選擇性。 用來儲存這個屬性的資料庫資料行將會是 nullable。 |
IsRequired() |
將屬性設定為必要的。 用來儲存這個屬性的資料庫資料行將不會是 nullable。 System.decimal 屬性預設為必要專案。 |
ToString() |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 |
ToString() |
用來設定 System.decimal 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。 (繼承來源 PrimitivePropertyConfiguration) |