共用方式為


DecimalPropertyConfiguration.IsOptional 方法

定義

將屬性設定為選擇性。 用來儲存這個屬性的資料庫資料行將會是 nullable。

public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration IsOptional ();
override this.IsOptional : unit -> System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
Public Function IsOptional () As DecimalPropertyConfiguration

傳回

相同的 DecimalPropertyConfiguration 實例,以便鏈結多個呼叫。

適用於