Is it possible to define DateTime properties in entity objects that are of Kind == DateTimeKind.Utc
by using either the .edmx file, or a t4 template?
When possible using t4, please describe how to change the property. Currently the property gets generated as:
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.DateTime Created
{
get
{
return _created;
}
internal set
{
OnCreatedChanging(value);
ReportPropertyChanging("Created");
_created = StructuralObject.SetValidValue(value);
ReportPropertyChanged("Created");
OnCreatedChanged();
}
}
private global::System.DateTime _created;
partial void OnCreatedChanging(global::System.DateTime value);
partial void OnCreatedChanged();