Skip to content

Commit 111b79f

Browse files
committed
Creates WellKnownTypes for PostgreSql provider
1 parent b90e97d commit 111b79f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (C) 2020 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
4+
5+
using System;
6+
using System.Collections.Generic;
7+
using System.Text;
8+
using NpgsqlTypes;
9+
10+
namespace Xtensive.Reflection.PostgreSql
11+
{
12+
internal static class WellKnownTypes
13+
{
14+
public static readonly Type DateTimeOffsetType = typeof(DateTimeOffset);
15+
public static readonly Type TimeSpanType = typeof(TimeSpan);
16+
public static readonly Type GuidType = typeof(Guid);
17+
public static readonly Type ByteArrayType = typeof(byte[]);
18+
public static readonly Type StringType = typeof(string);
19+
20+
public static readonly Type NpgsqlPointType = typeof(NpgsqlPoint);
21+
public static readonly Type NpgsqlLSegType = typeof(NpgsqlLSeg);
22+
public static readonly Type NpgsqlBoxType = typeof(NpgsqlBox);
23+
public static readonly Type NpgsqlPathType = typeof(NpgsqlPath);
24+
public static readonly Type NpgsqlPolygonType = typeof(NpgsqlPolygon);
25+
public static readonly Type NpgsqlCircleType = typeof(NpgsqlCircle);
26+
}
27+
}

0 commit comments

Comments
 (0)