Files
FreeSql/api/FreeSql.IUpdateJoin-2.html
2023-07-07 17:27:43 +00:00

977 lines
43 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Interface IUpdateJoin&lt;T1, T2&gt;
| FreeSql API Docs </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Interface IUpdateJoin&lt;T1, T2&gt;
| FreeSql API Docs ">
<meta name="generator" content="docfx 2.59.4.0">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src=".././images/logo.svg" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list">Search Results for <span></span></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="FreeSql.IUpdateJoin`2">
<h1 id="FreeSql_IUpdateJoin_2" data-uid="FreeSql.IUpdateJoin`2" class="text-break">Interface IUpdateJoin&lt;T1, T2&gt;
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="FreeSql.html">FreeSql</a></h6>
<h6><strong>Assembly</strong>: FreeSql.dll</h6>
<h5 id="FreeSql_IUpdateJoin_2_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public interface IUpdateJoin&lt;T1, T2&gt;</code></pre>
</div>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T1</span></td>
<td></td>
</tr>
<tr>
<td><span class="parametername">T2</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_AsTable_System_String_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.AsTable(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L110">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_AsTable_" data-uid="FreeSql.IUpdateJoin`2.AsTable*"></a>
<h4 id="FreeSql_IUpdateJoin_2_AsTable_System_String_" data-uid="FreeSql.IUpdateJoin`2.AsTable(System.String)">AsTable(String)</h4>
<div class="markdown level1 summary"><p>设置表名</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; AsTable(string tableName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">tableName</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_CommandTimeout_System_Int32_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.CommandTimeout(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L30">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_CommandTimeout_" data-uid="FreeSql.IUpdateJoin`2.CommandTimeout*"></a>
<h4 id="FreeSql_IUpdateJoin_2_CommandTimeout_System_Int32_" data-uid="FreeSql.IUpdateJoin`2.CommandTimeout(System.Int32)">CommandTimeout(Int32)</h4>
<div class="markdown level1 summary"><p>命令超时设置(秒)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; CommandTimeout(int timeout)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">timeout</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_DisableGlobalFilter_System_String___.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.DisableGlobalFilter(System.String%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L103">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_DisableGlobalFilter_" data-uid="FreeSql.IUpdateJoin`2.DisableGlobalFilter*"></a>
<h4 id="FreeSql_IUpdateJoin_2_DisableGlobalFilter_System_String___" data-uid="FreeSql.IUpdateJoin`2.DisableGlobalFilter(System.String[])">DisableGlobalFilter(String[])</h4>
<div class="markdown level1 summary"><p>禁用全局过滤功能,不传参数时将禁用所有</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; DisableGlobalFilter(params string[] name)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span>[]</td>
<td><span class="parametername">name</span></td>
<td><p>零个或多个过滤器名字</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_ExecuteAffrows.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.ExecuteAffrows%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L120">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_ExecuteAffrows_" data-uid="FreeSql.IUpdateJoin`2.ExecuteAffrows*"></a>
<h4 id="FreeSql_IUpdateJoin_2_ExecuteAffrows" data-uid="FreeSql.IUpdateJoin`2.ExecuteAffrows">ExecuteAffrows()</h4>
<div class="markdown level1 summary"><p>执行SQL语句返回影响的行数</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">int ExecuteAffrows()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_ExecuteAffrowsAsync_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.ExecuteAffrowsAsync(System.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L124">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_ExecuteAffrowsAsync_" data-uid="FreeSql.IUpdateJoin`2.ExecuteAffrowsAsync*"></a>
<h4 id="FreeSql_IUpdateJoin_2_ExecuteAffrowsAsync_System_Threading_CancellationToken_" data-uid="FreeSql.IUpdateJoin`2.ExecuteAffrowsAsync(System.Threading.CancellationToken)">ExecuteAffrowsAsync(CancellationToken)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">Task&lt;int&gt; ExecuteAffrowsAsync(CancellationToken cancellationToken = default(CancellationToken))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.CancellationToken</span></td>
<td><span class="parametername">cancellationToken</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Threading.Tasks.Task</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_Set_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.Set(System.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%601%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L56">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_Set_" data-uid="FreeSql.IUpdateJoin`2.Set*"></a>
<h4 id="FreeSql_IUpdateJoin_2_Set_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___" data-uid="FreeSql.IUpdateJoin`2.Set(System.Linq.Expressions.Expression{System.Func{`0,`1,System.Boolean}})">Set(Expression&lt;Func&lt;T1, T2, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>设置列的联表值,格式:<p>
Set((a, b) =&gt; a.Clicks == b.xxx)<p>
Set((a, b) =&gt; a.Clicks == a.Clicks + 1)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; Set(Expression&lt;Func&lt;T1, T2, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, T2, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_Set__1_System_Linq_Expressions_Expression_System_Func__0___0_____0_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.Set%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%60%600%7D%7D%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L39">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_Set_" data-uid="FreeSql.IUpdateJoin`2.Set*"></a>
<h4 id="FreeSql_IUpdateJoin_2_Set__1_System_Linq_Expressions_Expression_System_Func__0___0_____0_" data-uid="FreeSql.IUpdateJoin`2.Set``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">Set&lt;TMember&gt;(Expression&lt;Func&lt;T1, TMember&gt;&gt;, TMember)</h4>
<div class="markdown level1 summary"><p>设置列的固定新值Set(a =&gt; a.Name, &quot;newvalue&quot;)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; Set&lt;TMember&gt;(Expression&lt;Func&lt;T1, TMember&gt;&gt; column, TMember value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, TMember&gt;&gt;</td>
<td><span class="parametername">column</span></td>
<td><p>lambda选择列</p>
</td>
</tr>
<tr>
<td><span class="xref">TMember</span></td>
<td><span class="parametername">value</span></td>
<td><p>新值</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TMember</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_SetIf_System_Boolean_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.SetIf(System.Boolean%2CSystem.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%601%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L66">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_SetIf_" data-uid="FreeSql.IUpdateJoin`2.SetIf*"></a>
<h4 id="FreeSql_IUpdateJoin_2_SetIf_System_Boolean_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___" data-uid="FreeSql.IUpdateJoin`2.SetIf(System.Boolean,System.Linq.Expressions.Expression{System.Func{`0,`1,System.Boolean}})">SetIf(Boolean, Expression&lt;Func&lt;T1, T2, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>设置列的联表值,格式:<p>
Set((a, b) =&gt; a.Clicks == b.xxx)<p>
Set((a, b) =&gt; a.Clicks == a.Clicks + 1)</p>
<p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; SetIf(bool condition, Expression&lt;Func&lt;T1, T2, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">condition</span></td>
<td><p>true 时生效</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, T2, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_SetIf__1_System_Boolean_System_Linq_Expressions_Expression_System_Func__0___0_____0_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.SetIf%60%601(System.Boolean%2CSystem.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%60%600%7D%7D%2C%60%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L48">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_SetIf_" data-uid="FreeSql.IUpdateJoin`2.SetIf*"></a>
<h4 id="FreeSql_IUpdateJoin_2_SetIf__1_System_Boolean_System_Linq_Expressions_Expression_System_Func__0___0_____0_" data-uid="FreeSql.IUpdateJoin`2.SetIf``1(System.Boolean,System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">SetIf&lt;TMember&gt;(Boolean, Expression&lt;Func&lt;T1, TMember&gt;&gt;, TMember)</h4>
<div class="markdown level1 summary"><p>设置列的固定新值Set(a =&gt; a.Name, &quot;newvalue&quot;)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; SetIf&lt;TMember&gt;(bool condition, Expression&lt;Func&lt;T1, TMember&gt;&gt; column, TMember value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">condition</span></td>
<td><p>true 时生效</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, TMember&gt;&gt;</td>
<td><span class="parametername">column</span></td>
<td><p>lambda选择列</p>
</td>
</tr>
<tr>
<td><span class="xref">TMember</span></td>
<td><span class="parametername">value</span></td>
<td><p>新值</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">TMember</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_SetRaw_System_String_System_Object_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.SetRaw(System.String%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L74">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_SetRaw_" data-uid="FreeSql.IUpdateJoin`2.SetRaw*"></a>
<h4 id="FreeSql_IUpdateJoin_2_SetRaw_System_String_System_Object_" data-uid="FreeSql.IUpdateJoin`2.SetRaw(System.String,System.Object)">SetRaw(String, Object)</h4>
<div class="markdown level1 summary"><p>设置值自定义SQL语法SetRaw(&quot;title = @title&amp;quot;, new { title = &quot;newtitle&quot; })<p>
提示parms 参数还可以传 Dictionary&lt;string, object&gt;</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; SetRaw(string sql, object parms = null)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">sql</span></td>
<td><p>sql语法</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">parms</span></td>
<td><p>参数</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_ToSql.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.ToSql%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L115">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_ToSql_" data-uid="FreeSql.IUpdateJoin`2.ToSql*"></a>
<h4 id="FreeSql_IUpdateJoin_2_ToSql" data-uid="FreeSql.IUpdateJoin`2.ToSql">ToSql()</h4>
<div class="markdown level1 summary"><p>返回即将执行的SQL语句</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">string ToSql()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_Where_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.Where(System.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%601%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L81">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_Where_" data-uid="FreeSql.IUpdateJoin`2.Where*"></a>
<h4 id="FreeSql_IUpdateJoin_2_Where_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___" data-uid="FreeSql.IUpdateJoin`2.Where(System.Linq.Expressions.Expression{System.Func{`0,`1,System.Boolean}})">Where(Expression&lt;Func&lt;T1, T2, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>lambda表达式条件仅支持实体基础成员不包含导航对象</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; Where(Expression&lt;Func&lt;T1, T2, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, T2, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td><p>lambda表达式条件</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_Where_System_String_System_Object_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.Where(System.String%2CSystem.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L96">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_Where_" data-uid="FreeSql.IUpdateJoin`2.Where*"></a>
<h4 id="FreeSql_IUpdateJoin_2_Where_System_String_System_Object_" data-uid="FreeSql.IUpdateJoin`2.Where(System.String,System.Object)">Where(String, Object)</h4>
<div class="markdown level1 summary"><p>原生sql语法条件Where(&quot;id = @id&amp;quot;, new { id = 1 })<p>
提示parms 参数还可以传 Dictionary&lt;string, object&gt;</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; Where(string sql, object parms = null)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">sql</span></td>
<td><p>sql语法条件</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Object</span></td>
<td><span class="parametername">parms</span></td>
<td><p>参数</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_WhereIf_System_Boolean_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.WhereIf(System.Boolean%2CSystem.Linq.Expressions.Expression%7BSystem.Func%7B%600%2C%601%2CSystem.Boolean%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L88">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_WhereIf_" data-uid="FreeSql.IUpdateJoin`2.WhereIf*"></a>
<h4 id="FreeSql_IUpdateJoin_2_WhereIf_System_Boolean_System_Linq_Expressions_Expression_System_Func__0__1_System_Boolean___" data-uid="FreeSql.IUpdateJoin`2.WhereIf(System.Boolean,System.Linq.Expressions.Expression{System.Func{`0,`1,System.Boolean}})">WhereIf(Boolean, Expression&lt;Func&lt;T1, T2, Boolean&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>lambda表达式条件仅支持实体基础成员不包含导航对象</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; WhereIf(bool condition, Expression&lt;Func&lt;T1, T2, bool&gt;&gt; exp)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">condition</span></td>
<td><p>true 时生效</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;T1, T2, <span class="xref">System.Boolean</span>&gt;&gt;</td>
<td><span class="parametername">exp</span></td>
<td><p>lambda表达式条件</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_WithConnection_System_Data_Common_DbConnection_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.WithConnection(System.Data.Common.DbConnection)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L24">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_WithConnection_" data-uid="FreeSql.IUpdateJoin`2.WithConnection*"></a>
<h4 id="FreeSql_IUpdateJoin_2_WithConnection_System_Data_Common_DbConnection_" data-uid="FreeSql.IUpdateJoin`2.WithConnection(System.Data.Common.DbConnection)">WithConnection(DbConnection)</h4>
<div class="markdown level1 summary"><p>指定事务对象</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; WithConnection(DbConnection connection)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Data.Common.DbConnection</span></td>
<td><span class="parametername">connection</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2_WithTransaction_System_Data_Common_DbTransaction_.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602.WithTransaction(System.Data.Common.DbTransaction)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L18">View Source</a>
</span>
<a id="FreeSql_IUpdateJoin_2_WithTransaction_" data-uid="FreeSql.IUpdateJoin`2.WithTransaction*"></a>
<h4 id="FreeSql_IUpdateJoin_2_WithTransaction_System_Data_Common_DbTransaction_" data-uid="FreeSql.IUpdateJoin`2.WithTransaction(System.Data.Common.DbTransaction)">WithTransaction(DbTransaction)</h4>
<div class="markdown level1 summary"><p>指定事务对象</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IUpdateJoin&lt;T1, T2&gt; WithTransaction(DbTransaction transaction)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Data.Common.DbTransaction</span></td>
<td><span class="parametername">transaction</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="FreeSql.IUpdateJoin-2.html">IUpdateJoin</a>&lt;T1, T2&gt;</td>
<td></td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/dotnetcore/freesql/new/master/apiSpec/new?filename=FreeSql_IUpdateJoin_2.md&amp;value=---%0Auid%3A%20FreeSql.IUpdateJoin%602%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/dotnetcore/FreeSql/blob/master/FreeSql/Interface/Curd/IUpdateJoin.cs/#L11" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<h5>In This Article</h5>
<div></div>
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
<span>Generated by <strong>DocFX</strong></span>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
</body>
</html>