- fix: CustomAdapter

This commit is contained in:
2881099
2021-11-03 16:20:02 +08:00
parent f6e1c60e83
commit 30b20c39f9
3 changed files with 19 additions and 19 deletions

View File

@ -40,7 +40,7 @@ namespace FreeSql.Custom
});
static FreeSql.Custom.CustomAdo _customAdo = new FreeSql.Custom.CustomAdo();
public override string FormatSql(string sql, params object[] args) => _customAdo.Addslashes(sql, args);
public override string FormatSql(string sql, params object[] args) => (_orm?.Ado as CustomAdo)?.Addslashes(sql, args) ?? _customAdo.Addslashes(sql, args);
public override string QuoteSqlName(params string[] name)
{
if (name.Length == 1)