mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
v3.2.802-preview20231024
This commit is contained in:
@ -100,13 +100,17 @@ namespace FreeSql.Internal.CommonProvider
|
||||
#region proxy IUpdate
|
||||
public IUpdateJoin<T1, T2> AsTable(string tableName, string joinTableName)
|
||||
{
|
||||
_update.AsTable(tableName);
|
||||
_query2Provider._tableRules.Clear();
|
||||
_query2Provider._tableRules.Add((t, old) =>
|
||||
if (string.IsNullOrWhiteSpace(tableName) == false)
|
||||
_update.AsTable(tableName);
|
||||
if (string.IsNullOrWhiteSpace(joinTableName) == false)
|
||||
{
|
||||
if (t == typeof(T2)) return joinTableName;
|
||||
return old;
|
||||
});
|
||||
_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)
|
||||
|
Reference in New Issue
Block a user