共用方式為


DateTimePropertyConfiguration.HasPrecision(Byte) 方法

定義

設定此屬性的有效位數。 如果資料庫提供者不支援資料行資料類型的有效位數,則會忽略該值。

public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration HasPrecision (byte value);
member this.HasPrecision : byte -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function HasPrecision (value As Byte) As DateTimePropertyConfiguration

參數

value
Byte

屬性的有效位數。

傳回

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

適用於