Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IObjectSet<TEntity>.AddObject Method

.NET Framework 4.6 and 4.5

Notifies the set that an object that represents a new entity must be added to the set.

Namespace:  System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

void AddObject(
	TEntity entity
)

Parameters

entity
Type: TEntity

The new object to add to the set.

Changes to the set may not be visible in an enumeration of the set until changes to that set have been persisted in some manner. This behavior depends on the specific implementation of the IObjectSet<TEntity>.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft