sqlite3 codefirst 适配完成,待测试

This commit is contained in:
28810
2019-01-08 22:19:40 +08:00
parent b339f60777
commit 3d132e4f52
31 changed files with 4596 additions and 45 deletions

View File

@ -32,6 +32,14 @@
/// <returns></returns>
public static string FormatOracleSQL(this string that, params object[] args) => _oracleAdo.Addslashes(that, args);
static FreeSql.Oracle.OracleAdo _oracleAdo = new FreeSql.Oracle.OracleAdo();
/// <summary>
/// 特殊处理类似 string.Format 的使用方法,防止注入,以及 IS NULL 转换
/// </summary>
/// <param name="that"></param>
/// <param name="args"></param>
/// <returns></returns>
public static string FormatSqlite (this string that, params object[] args) => _sqliteAdo.Addslashes(that, args);
static FreeSql.Sqlite3.SqliteAdo _sqliteAdo = new FreeSql.Sqlite3.SqliteAdo();
}
namespace System.Runtime.CompilerServices {