update Odbc IInsert

This commit is contained in:
28810 2020-05-19 16:03:44 +08:00
parent 70fd324cf3
commit 4a5942629a
2 changed files with 5 additions and 6 deletions

View File

@ -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&lt;string, object&gt; { ["title"] = "xxx", ["clicks"] = 2 })
设置更新的列<para></para>
SetDto(new { title = "xxx", clicks = 2 })<para></para>
SetDto(new Dictionary&lt;string, object&gt; { ["title"] = "xxx", ["clicks"] = 2 })<para></para>
注意:标记 [Column(CanUpdate = false)] 的属性不会被更新
</summary>
<param name="dto">dto 或 Dictionary&lt;string, object&gt;</param>
<returns></returns>

View File

@ -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");