dotnetcore / dotnetcore/FreeSql

希望 Update<T>().SetSource(data) 可以简写为 Update<T>(data)

Open
#2,271 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.