diff --git a/test/EFCore.PG.Tests/Storage/NpgsqlTypeMappingSourceTest.cs b/test/EFCore.PG.Tests/Storage/NpgsqlTypeMappingSourceTest.cs index 3809227de..bf6fbdb93 100644 --- a/test/EFCore.PG.Tests/Storage/NpgsqlTypeMappingSourceTest.cs +++ b/test/EFCore.PG.Tests/Storage/NpgsqlTypeMappingSourceTest.cs @@ -28,6 +28,11 @@ public class NpgsqlTypeMappingSourceTest [InlineData("varchar(8)", typeof(string), 8, null, null, false)] [InlineData("varchar", typeof(string), null, null, null, false)] [InlineData("timestamp with time zone", typeof(DateTime), null, null, null, false)] + [InlineData("timestamp without time zone", typeof(DateTime), null, null, null, false)] + [InlineData("date", typeof(DateOnly), null, null, null, false)] + [InlineData("time", typeof(TimeOnly), null, null, null, false)] + [InlineData("time without time zone", typeof(TimeOnly), null, null, null, false)] + [InlineData("interval", typeof(TimeSpan), null, null, null, false)] [InlineData("dummy", typeof(DummyType), null, null, null, false)] [InlineData("int4range", typeof(NpgsqlRange), null, null, null, false)] [InlineData("floatrange", typeof(NpgsqlRange), null, null, null, false)] @@ -107,6 +112,10 @@ public void Timestamp_without_time_zone_Array_5() [InlineData(typeof(int), "integer")] [InlineData(typeof(int[]), "integer[]")] [InlineData(typeof(byte[]), "bytea")] + [InlineData(typeof(DateTime), "timestamp with time zone")] + [InlineData(typeof(DateOnly), "date")] + [InlineData(typeof(TimeOnly), "time without time zone")] + [InlineData(typeof(TimeSpan), "interval")] [InlineData(typeof(DummyType), "dummy")] [InlineData(typeof(NpgsqlRange), "int4range")] [InlineData(typeof(NpgsqlRange), "floatrange")] @@ -160,6 +169,10 @@ public void By_ClrType_and_element_precision(Type clrType, string expectedStoreT [InlineData("integer", typeof(int))] [InlineData("numeric", typeof(float))] [InlineData("numeric", typeof(double))] + [InlineData("date", typeof(DateOnly))] + [InlineData("date", typeof(DateTime))] + [InlineData("time", typeof(TimeOnly))] + [InlineData("time", typeof(TimeSpan))] [InlineData("integer[]", typeof(int[]))] [InlineData("integer[]", typeof(List))] [InlineData("smallint[]", typeof(byte[]))]