dotnetcore / dotnetcore/FreeSql
希望 Update<T>().SetSource(data) 可以简写为 Update<T>(data)
Open
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 910
- PR merge metrics
- No merged PRs in 30d
Description
代码举例如下
``` java
//现在的方式
freeSql.Update().SetSource(data).UpdateColumns(o => o.Name).ExecuteAffrows();
//希望的方式。希望可以兼容省掉 .SetSource(data) 看起来更简短也更加容易理解
freeSql.Update(data).UpdateColumns(o=>o.Name).ExecuteAffrows();
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the Update() and SetSource(data) entry points to understand how update sources are currently represented and whether an overload can preserve existing behavior. Done means Update(data) supports the shown UpdateColumns(...).ExecuteAffrows() flow while retaining compatibility with the existing SetSource form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend-api-design, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100