Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit a1b1526

Browse files
committed
Fix to use local TypesMap instance
1 parent 638688e commit a1b1526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite.PostgreSQL/PostgreSQLDialectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public override string GetLastInsertIdSqlSuffix<T>()
652652
public NpgsqlDbType GetDbType<T>() => GetDbType(typeof(T));
653653
public NpgsqlDbType GetDbType(Type type)
654654
{
655-
if (PostgreSqlDialect.Instance.TypesMap.TryGetValue(type, out var paramType))
655+
if (TypesMap.TryGetValue(type, out var paramType))
656656
return paramType;
657657
var genericEnum = type.GetTypeWithGenericTypeDefinitionOf(typeof(IEnumerable<>));
658658
if (genericEnum != null)

0 commit comments

Comments
 (0)