dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.58k stars 4.55k forks source link

DataRows SetModified and SetAdded is not the same between the code and the document #103157

Open ThoaiLeOrangelogic opened 1 month ago

ThoaiLeOrangelogic commented 1 month ago

https://github.com/dotnet/runtime/blame/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Data.Common/src/System/Data/DataRow.cs#L1378C13-L1391C10

The document said that (https://learn.microsoft.com/en-us/dotnet/api/system.data.datarow.setmodified?view=net-8.0) image

But in the code it only available for RowState.Unchanged

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @roji, @ajcvickers See info in area-owners.md if you want to be subscribed.