- 优化 IUpdateJoin AsTable 同时对多表名设置;

This commit is contained in:
2881099
2023-10-24 12:52:09 +08:00
parent 632c5cabf4
commit 09225ffd12
5 changed files with 18 additions and 18 deletions

View File

@ -98,9 +98,15 @@ namespace FreeSql.Internal.CommonProvider
}
#region proxy IUpdate
public IUpdateJoin<T1, T2> AsTable(string tableName)
public IUpdateJoin<T1, T2> AsTable(string tableName, string joinTableName)
{
_update.AsTable(tableName);
_query2Provider._tableRules.Clear();
_query2Provider._tableRules.Add((t, old) =>
{
if (t == typeof(T2)) return joinTableName;
return old;
});
return this;
}
public IUpdateJoin<T1, T2> WithConnection(DbConnection connection)