Upgrading SqlSugarCore 4 to 5
Breaking4.9.9.10 → 5.1.4.222Breaking1Security1New136Changed73Fixed177Other3
Fetching 1995 releases from GitHub…1994 / 1995
BreakingUpgrade verdict
1 breaking change and a security fix.
In plain terms
- If you use the week option of DateValue, the returned number now matches the standard DayOfWeek numbering, so results may differ from before.
- Hardening changes make MySql usage safer.
Must act 2 items need code or config changes
Target frameworks requirement changed in 5.0.3.5: .NETStandard2.0 → .NETStandard2.1.
Adds microsoft.data.sqlclient 5.2.2, mysqlconnector 2.6.2, oscar.data.sqlclient 4.0.4, sqlsugarcore.dm 8.8.1, sqlsugarcore.kdbndp 9.3.8.413, system.text.regularexpressions 4.3.1.
Drops mysql.data, system.data.sqlclient.
Moves microsoft.data.sqlite 2.2.1 → 10.0.11, newtonsoft.json 10.0.3 → 13.0.2, npgsql 3.2.7 → 5.0.18, oracle.manageddataaccess.core 2.18.3 → 23.26.401. Your build may pick other versions.
What you must change
Breaking1
SqlFunc.DateValue(time, time, week) now returns values consistent with the DayOfWeek enum for unified behavior across databases.
SqlFunc.DateValueDayOfWeekSecurity1
Improves MySql security.