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

ObjectSet<TEntity>.AddObject Method

.NET Framework 4.6 and 4.5

Adds an object to the object context in the current entity set.

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

public void AddObject(
	TEntity entity
)

Parameters

entity
Type: TEntity

The object to add.

Implements

IObjectSet<TEntity>.AddObject(TEntity)

This method is a wrapper around the AddObject method.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft