public DateTimeOffset TransformDateTimeOffset(string value) { if (MapDriver.IsNotSet(value)) { throw new NotSupportedException("'Empty' entry to 'DateTimeOffset' transformation is not supported."); } return(DateConverter.GetDateOffset(value).Value); }
public DateTimeOffset?TransformNullableDateTimeOffset(string value) { if (string.IsNullOrWhiteSpace(value)) { throw new NotSupportedException("'Empty' entry to 'DateTimeOffset' transformation is not supported."); } return(DateConverter.GetDateOffset(value)); }
private static DateTimeOffset?GetValue(KeyValuePair <string, string> keyValuePair) { if (string.IsNullOrWhiteSpace(keyValuePair.Value)) { throw new NotSupportedException($"Table row column '{keyValuePair.Key}' does not support empty entries."); } return(DateConverter.GetDateOffset(keyValuePair.Value)); }
private static DateTimeOffset GetValue(KeyValuePair <string, string> keyValuePair) { return(MapDriver.IsNotSet(keyValuePair.Value) ? default : DateConverter.GetDateOffset(keyValuePair.Value).Value); }