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