update

28810
2020-02-27 18:49:10 +08:00
parent d34b90b4b8
commit 58c88fb5a1
3 changed files with 3 additions and 3 deletions

@@ -20,7 +20,7 @@ FreeSql是一个功能强大的NETStandard库用于对象关系映射程序(O
* [批量添加](https://github.com/2881099/FreeSql/wiki/%e6%b7%bb%e5%8a%a0#2%E6%89%B9%E9%87%8F%E6%8F%92%E5%85%A5)
* [删除](https://github.com/2881099/FreeSql/wiki/%e5%88%a0%e9%99%a4)
* [修改](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9)
* [保存实体](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#2%E4%BF%9D%E5%AD%98%E5%AE%9E%E4%BD%93)
* [更新实体](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#2%E4%BF%9D%E5%AD%98%E5%AE%9E%E4%BD%93)
* [指定列更新](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#1%E6%9B%B4%E6%96%B0%E6%8C%87%E5%AE%9A%E5%88%97)
* [添加或修改](https://github.com/2881099/FreeSql/wiki/%e6%b7%bb%e5%8a%a0%e6%88%96%e4%bf%ae%e6%94%b9)
* [查询](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2)

@@ -8,7 +8,7 @@
* [批量添加](https://github.com/2881099/FreeSql/wiki/%e6%b7%bb%e5%8a%a0#2%E6%89%B9%E9%87%8F%E6%8F%92%E5%85%A5)
* [删除](https://github.com/2881099/FreeSql/wiki/%e5%88%a0%e9%99%a4)
* [修改](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9)
* [保存实体](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#2%E4%BF%9D%E5%AD%98%E5%AE%9E%E4%BD%93)
* [更新实体](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#2%E4%BF%9D%E5%AD%98%E5%AE%9E%E4%BD%93)
* [指定列更新](https://github.com/2881099/FreeSql/wiki/%e4%bf%ae%e6%94%b9#1%E6%9B%B4%E6%96%B0%E6%8C%87%E5%AE%9A%E5%88%97)
* [添加或修改](https://github.com/2881099/FreeSql/wiki/%e6%b7%bb%e5%8a%a0%e6%88%96%e4%bf%ae%e6%94%b9)
* [查询](https://github.com/2881099/FreeSql/wiki/%e6%9f%a5%e8%af%a2)

@@ -53,7 +53,7 @@ var t2 = fsql.Update<Topic>(1).Set(a => new Topic {
//WHERE (`Id` = 1)
```
## 2、保存实体
## 2、更新实体
```csharp
var item = new Topic { Id = 1, Title = "newtitle" };
var t3 = fsql.Update<Topic>().SetSource(item).ExecuteAffrows();