Exemple #1
0
        public EntityProperty Convert(DateTime?input)
        {
            if (input.HasValue)
            {
                DateTimeToEntityPropertyConverter.ThrowIfUnsupportedValue(input.Value);
            }

            return(new EntityProperty(input));
        }
 public EntityProperty Convert(DateTimeOffset input)
 {
     DateTimeToEntityPropertyConverter.ThrowIfUnsupportedValue(input.UtcDateTime);
     return(new EntityProperty(input));
 }