Added timespan to type mapping

This commit is contained in:
2024-07-23 14:43:48 +02:00
parent 827b1c4a65
commit 0a54a3e7e4
4 changed files with 7 additions and 3 deletions

View File

@@ -3857,6 +3857,7 @@ namespace DynamORM
{ typeof(char), DbType.StringFixedLength },
{ typeof(Guid), DbType.Guid },
{ typeof(DateTime), DbType.DateTime },
{ typeof(TimeSpan), DbType.Time },
{ typeof(DateTimeOffset), DbType.DateTimeOffset },
{ typeof(byte[]), DbType.Binary },
{ typeof(byte?), DbType.Byte },
@@ -3874,6 +3875,7 @@ namespace DynamORM
{ typeof(char?), DbType.StringFixedLength },
{ typeof(Guid?), DbType.Guid },
{ typeof(DateTime?), DbType.DateTime },
{ typeof(TimeSpan?), DbType.Time },
{ typeof(DateTimeOffset?), DbType.DateTimeOffset }
};