- 增加 FreeSql.Provider.Sqlite 对 Xamarin 环境下的适配;

This commit is contained in:
28810
2019-11-07 02:33:27 +08:00
parent 13810c4422
commit 8ec8daa6be
5 changed files with 215 additions and 9 deletions

View File

@ -3,7 +3,6 @@ using SafeObjectPool;
using System;
using System.Collections;
using System.Data.Common;
using System.Data.SQLite;
using System.Text;
using System.Threading;
@ -56,7 +55,7 @@ namespace FreeSql.Sqlite
protected override DbCommand CreateCommand()
{
return new SQLiteCommand();
return MonoAdapter.GetSqliteCommand();
}
protected override void ReturnConnection(ObjectPool<DbConnection> pool, Object<DbConnection> conn, Exception ex)