Class UpdateJoinProvider<T1, T2>
Inheritance
System.Object
UpdateJoinProvider<T1, T2>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FreeSql.dll
Syntax
public class UpdateJoinProvider<T1, T2> : IUpdateJoin<T1, T2> where T1 : class where T2 : class
Type Parameters
Constructors
|
Improve this Doc
View Source
UpdateJoinProvider(IUpdate<T1>, ISelect<T2>, Expression<Func<T1, T2, Boolean>>)
Declaration
public UpdateJoinProvider(IUpdate<T1> update, ISelect<T2> query, Expression<Func<T1, T2, bool>> on)
Parameters
| Type |
Name |
Description |
| IUpdate<T1> |
update |
|
| ISelect<T2> |
query |
|
| System.Linq.Expressions.Expression<System.Func<T1, T2, System.Boolean>> |
on |
|
Fields
|
Improve this Doc
View Source
_commonExpression
Declaration
public CommonExpression _commonExpression
Field Value
|
Improve this Doc
View Source
_commonUtils
Declaration
public CommonUtils _commonUtils
Field Value
|
Improve this Doc
View Source
_joinOn
Declaration
Field Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
_orm
Declaration
Field Value
| Type |
Description |
| IFreeSql |
|
|
Improve this Doc
View Source
_query
Declaration
public ISelect<T2> _query
Field Value
|
Improve this Doc
View Source
_query2
Declaration
public ISelect<T1, T2> _query2
Field Value
|
Improve this Doc
View Source
_query2Provider
Declaration
public Select2Provider<T1, T2> _query2Provider
Field Value
|
Improve this Doc
View Source
_queryProvider
Declaration
public Select0Provider _queryProvider
Field Value
|
Improve this Doc
View Source
_tableName
Declaration
Field Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
_update
Declaration
public IUpdate<T1> _update
Field Value
|
Improve this Doc
View Source
_updateProvider
Declaration
public UpdateProvider<T1> _updateProvider
Field Value
Methods
|
Improve this Doc
View Source
AsTable(String)
Declaration
public IUpdateJoin<T1, T2> AsTable(string tableName)
Parameters
| Type |
Name |
Description |
| System.String |
tableName |
|
Returns
|
Improve this Doc
View Source
CommandTimeout(Int32)
Declaration
public IUpdateJoin<T1, T2> CommandTimeout(int timeout)
Parameters
| Type |
Name |
Description |
| System.Int32 |
timeout |
|
Returns
|
Improve this Doc
View Source
DisableGlobalFilter(String[])
Declaration
public IUpdateJoin<T1, T2> DisableGlobalFilter(params string[] name)
Parameters
| Type |
Name |
Description |
| System.String[] |
name |
|
Returns
|
Improve this Doc
View Source
ExecuteAffrows()
Declaration
public int ExecuteAffrows()
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
ExecuteAffrowsAsync(CancellationToken)
Declaration
public async Task<int> ExecuteAffrowsAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Int32> |
|
|
Improve this Doc
View Source
Set(Expression<Func<T1, T2, Boolean>>)
Declaration
public IUpdateJoin<T1, T2> Set(Expression<Func<T1, T2, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T1, T2, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
Set<TMember>(Expression<Func<T1, TMember>>, TMember)
Declaration
public IUpdateJoin<T1, T2> Set<TMember>(Expression<Func<T1, TMember>> column, TMember value)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T1, TMember>> |
column |
|
| TMember |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SetIf(Boolean, Expression<Func<T1, T2, Boolean>>)
Declaration
public IUpdateJoin<T1, T2> SetIf(bool condition, Expression<Func<T1, T2, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Boolean |
condition |
|
| System.Linq.Expressions.Expression<System.Func<T1, T2, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
SetIf<TMember>(Boolean, Expression<Func<T1, TMember>>, TMember)
Declaration
public IUpdateJoin<T1, T2> SetIf<TMember>(bool condition, Expression<Func<T1, TMember>> column, TMember value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
condition |
|
| System.Linq.Expressions.Expression<System.Func<T1, TMember>> |
column |
|
| TMember |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SetRaw(String, Object)
Declaration
public IUpdateJoin<T1, T2> SetRaw(string sql, object parms = null)
Parameters
| Type |
Name |
Description |
| System.String |
sql |
|
| System.Object |
parms |
|
Returns
|
Improve this Doc
View Source
ToSql()
Declaration
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ValidateDataType(Action, Action, Action, Action, Action)
Declaration
public void ValidateDataType(Action InterceptSqlServer, Action InterceptMySql, Action InterceptPostgreSQL, Action InterceptMergeInto, Action InterceptGBase)
Parameters
| Type |
Name |
Description |
| System.Action |
InterceptSqlServer |
|
| System.Action |
InterceptMySql |
|
| System.Action |
InterceptPostgreSQL |
|
| System.Action |
InterceptMergeInto |
|
| System.Action |
InterceptGBase |
|
|
Improve this Doc
View Source
Where(Expression<Func<T1, T2, Boolean>>)
Declaration
public IUpdateJoin<T1, T2> Where(Expression<Func<T1, T2, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T1, T2, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
Where(String, Object)
Declaration
public IUpdateJoin<T1, T2> Where(string sql, object parms = null)
Parameters
| Type |
Name |
Description |
| System.String |
sql |
|
| System.Object |
parms |
|
Returns
|
Improve this Doc
View Source
WhereIf(Boolean, Expression<Func<T1, T2, Boolean>>)
Declaration
public IUpdateJoin<T1, T2> WhereIf(bool condition, Expression<Func<T1, T2, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Boolean |
condition |
|
| System.Linq.Expressions.Expression<System.Func<T1, T2, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
WithConnection(DbConnection)
Declaration
public IUpdateJoin<T1, T2> WithConnection(DbConnection connection)
Parameters
| Type |
Name |
Description |
| System.Data.Common.DbConnection |
connection |
|
Returns
|
Improve this Doc
View Source
WithTransaction(DbTransaction)
Declaration
public IUpdateJoin<T1, T2> WithTransaction(DbTransaction transaction)
Parameters
| Type |
Name |
Description |
| System.Data.Common.DbTransaction |
transaction |
|
Returns
Implements