Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbCommandBuilder::SetAllValues Property

 

Specifies whether all column values in an update statement are included or only changed ones.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public:
property bool SetAllValues {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the UPDATE statement generated by the DbCommandBuilder includes all columns; false if it includes only changed columns.

The UPDATE statement generated by a DbCommandBuilder can include update information about all the columns, or it can include information only about those columns whose values have changed. Setting the SetAllValues property to true causes the generated UPDATE statement to include all the columns, whether their values have changed or not.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft