mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
update Odbc IInsert
This commit is contained in:
parent
70fd324cf3
commit
4a5942629a
@ -2064,11 +2064,10 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:FreeSql.IUpdate`1.SetDto(System.Object)">
|
<member name="M:FreeSql.IUpdate`1.SetDto(System.Object)">
|
||||||
<summary>
|
<summary>
|
||||||
设置更新的列
|
设置更新的列<para></para>
|
||||||
<para></para>
|
SetDto(new { title = "xxx", clicks = 2 })<para></para>
|
||||||
SetDto(new { title = "xxx", clicks = 2 })
|
SetDto(new Dictionary<string, object> { ["title"] = "xxx", ["clicks"] = 2 })<para></para>
|
||||||
<para></para>
|
注意:标记 [Column(CanUpdate = false)] 的属性不会被更新
|
||||||
SetDto(new Dictionary<string, object> { ["title"] = "xxx", ["clicks"] = 2 })
|
|
||||||
</summary>
|
</summary>
|
||||||
<param name="dto">dto 或 Dictionary<string, object></param>
|
<param name="dto">dto 或 Dictionary<string, object></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
|
@ -151,7 +151,7 @@ namespace FreeSql.Odbc.SqlServer
|
|||||||
++colidx;
|
++colidx;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((_commonUtils as SqlServerUtils).ServerVersion > 10)
|
if ((_commonUtils as OdbcSqlServerUtils).ServerVersion > 10)
|
||||||
{
|
{
|
||||||
var validx = sql.IndexOf(") VALUES");
|
var validx = sql.IndexOf(") VALUES");
|
||||||
if (validx == -1) throw new ArgumentException("找不到 VALUES");
|
if (validx == -1) throw new ArgumentException("找不到 VALUES");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user