mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-20 07:10:56 +08:00
- 修改方法名,避免与其他 Provider 命名冲突;#1975
This commit is contained in:
@@ -16,7 +16,8 @@ public static partial class FreeSqlSqliteGlobalExtensions
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string FormatSqlite(this string that, params object[] args) => _sqliteAdo.Addslashes(that, args);
|
public static string FormatSqlite(this string that, params object[] args) => _sqliteAdo.Addslashes(that, args);
|
||||||
static FreeSql.Sqlite.SqliteAdo _sqliteAdo = new FreeSql.Sqlite.SqliteAdo();
|
static FreeSql.Sqlite.SqliteAdo _sqliteAdo = new FreeSql.Sqlite.SqliteAdo();
|
||||||
public static void BulkInsert<T>(this IInsert<T> that) where T : class
|
|
||||||
|
public static void ExecuteSqliteBulkInsert<T>(this IInsert<T> that) where T : class
|
||||||
{
|
{
|
||||||
var insert = that as FreeSql.Sqlite.Curd.SqliteInsert<T>;
|
var insert = that as FreeSql.Sqlite.Curd.SqliteInsert<T>;
|
||||||
if (insert == null) throw new Exception(CoreErrorStrings.S_Features_Unique("BulkInsert", "Sqlite"));
|
if (insert == null) throw new Exception(CoreErrorStrings.S_Features_Unique("BulkInsert", "Sqlite"));
|
||||||
@@ -112,7 +113,7 @@ public static partial class FreeSqlSqliteGlobalExtensions
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new NotImplementedException($"ExecuteSqlBulkCopy {CoreErrorStrings.S_Not_Implemented_FeedBack}");
|
throw new NotImplementedException($"ExecuteSqliteBulkInsert {CoreErrorStrings.S_Not_Implemented_FeedBack}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user