You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Entities/Annotations/DateAttribute.cs

19 lines
360 B

2 years ago
namespace Connected.Entities.Annotations
{
public enum DateKind
{
NotSet = 0,
Date = 1,
DateTime = 2,
DateTime2 = 3,
SmallDateTime = 4,
Time = 5
}
[AttributeUsage(AttributeTargets.Property)]
public sealed class DateAttribute : Attribute
{
public DateKind Kind { get; set; } = DateKind.DateTime;
public int Precision { get; set; }
}
}