商信互联
下面的示例说明了如何在Entity Framework Code-First类中实现日期和时间属性。
public DateTime DateTimeProperty { get; set; }
public DateTime? DateTimeNullableProperty { get; set; }
public TimeSpan TimeSpanProperty { get; set; }
Public Property DateTimeProperty() As Date
Public Property DateTimeNullableProperty() As Date?
Public Property TimeSpanProperty() As TimeSpan