Skip to content

Commit

Permalink
db provider 忽略大小写
Browse files Browse the repository at this point in the history
  • Loading branch information
kklldog committed Jan 3, 2022
1 parent 45f1042 commit dd58dc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AgileConfig.Server.Data.Freesql/FreeSQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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:
Expand Down

0 comments on commit dd58dc2

Please sign in to comment.