mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-11 16:40:57 +08:00
Updated Update Data (markdown)
@@ -29,6 +29,12 @@ fsql.Update<Topic>(object dywhere)
|
|||||||
* `new[] { TopicObject1, TopicObject2 }`
|
* `new[] { TopicObject1, TopicObject2 }`
|
||||||
* `new { id = 1 }`
|
* `new { id = 1 }`
|
||||||
|
|
||||||
|
## Dynamic tablename
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
fsql.Update<Topic>(1).AsTable("Topic_201903").ExecuteAffrows();
|
||||||
|
```
|
||||||
|
|
||||||
## 1. Update the specified column
|
## 1. Update the specified column
|
||||||
```csharp
|
```csharp
|
||||||
fsql.Update<Topic>(1)
|
fsql.Update<Topic>(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user