Date and Time Properties in XPO

The example below illustrates how to implement Date and Time Properties in an XPO persistent class.

private DateTime dateTimeProperty;
public DateTime DateTimeProperty {
    get { return dateTimeProperty; }
    set { SetPropertyValue("DateTimeProperty", ref dateTimeProperty, value); }
}
private DateTime? dateTimeNullableProperty;
public DateTime? DateTimeNullableProperty {
    get { return dateTimeNullableProperty; }
    set { SetPropertyValue("DateTimeNullableProperty", ref dateTimeNullableProperty, value); }
}
private TimeSpan timeSpanProperty;
public TimeSpan TimeSpanProperty {
    get { return timeSpanProperty; }
    set { SetPropertyValue("TimeSpanProperty", ref timeSpanProperty, value); }
}