System.Data.SQLite.Core support in GetSqlType()
GetSqlType() does not recognise System.Data.SQLite.Core because the type of the SQL connection class has been renamed to `SQLiteConnection` from `SqliteConnection`. This commit adds support for both, so that the DB manager classes can operate with plugins which reference the new SQLite ADO.net providers from NuGet.
This commit is contained in:
parent
5183190745
commit
a102551588
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ namespace TShockAPI.DB
|
|||
public static SqlType GetSqlType(this IDbConnection conn)
|
||||
{
|
||||
var name = conn.GetType().Name;
|
||||
if (name == "SqliteConnection")
|
||||
if (name == "SqliteConnection" || name == "SQLiteConnection")
|
||||
return SqlType.Sqlite;
|
||||
if (name == "MySqlConnection")
|
||||
return SqlType.Mysql;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue