diff --git a/AgileConfig.Server.Data.Freesql/FreeSQL.cs b/AgileConfig.Server.Data.Freesql/FreeSQL.cs index 550d9248..dabdd610 100644 --- a/AgileConfig.Server.Data.Freesql/FreeSQL.cs +++ b/AgileConfig.Server.Data.Freesql/FreeSQL.cs @@ -68,7 +68,7 @@ public static IFreeSql GetInstance(string env) private static FreeSql.DataType ProviderToFreesqlDbType(string provider) { - switch (provider) + switch (provider.ToLower()) { case "sqlite": return FreeSql.DataType.Sqlite; @@ -78,6 +78,8 @@ private static FreeSql.DataType ProviderToFreesqlDbType(string provider) return FreeSql.DataType.SqlServer; case "npgsql": return FreeSql.DataType.PostgreSQL; + case "postgresql": + return FreeSql.DataType.PostgreSQL; case "oracle": return FreeSql.DataType.Oracle; default: