I’m using the SqlServerDateTime2Converter
and when I use a custom Select
that use a DateTime, the string get formatted badly.
db.From<Table>()
.Select(new => { DateField = DateTime.UtcNow });
The format used in this string is not recognized by your DateTimeSerializer:
System.IndexOutOfRangeException: Indice oltre i limiti della matrice.
in ServiceStack.Text.Common.DateTimeSerializer.ParseManual(String dateTimeStr, DateTimeKind dateKind)
in ServiceStack.Text.Common.DateTimeSerializer.ParseManual(String dateTimeStr)
in ServiceStack.Text.Common.DateTimeSerializer.ParseShortestXsdDateTime(String dateTimeStr)
in ServiceStack.OrmLite.Converters.DateTimeConverter.FromDbValue(Type fieldType, Object value)
in ServiceStack.OrmLite.OrmLiteWriteCommandExtensions.PopulateWithSqlReader[T](T objWithProperties, IOrmLiteDialectProvider dialectProvider, IDataReader reader, Tuple`3[] indexCache, Object[] values)
The format string is this one: