增加Microsoft.Data.Sqlite.Core的实现

This commit is contained in:
luoyunchong
2021-12-24 20:56:37 +08:00
parent a979f96bff
commit e6e0a1275c
10 changed files with 159 additions and 1 deletions

View File

@ -5,7 +5,11 @@ using System;
using System.Collections;
using System.Data;
using System.Data.Common;
#if MicrosoftData
using Microsoft.Data.Sqlite;
#else
using System.Data.SQLite;
#endif
using System.Text;
using System.Threading;
@ -72,7 +76,12 @@ namespace FreeSql.Sqlite
cmd.Connection = null;
return cmd;
}
return new SQLiteCommand();
#if MicrosoftData
return new SqliteCommand();
#else
return new SQLiteCommand();
#endif
}
public override void ReturnConnection(IObjectPool<DbConnection> pool, Object<DbConnection> conn, Exception ex)