ObjectSet<TEntity>::AddObject Method (TEntity)

.NET Framework (current version)
 

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:
virtual void AddObject(
	TEntity entity
) sealed

Parameters

entity
Type: TEntity

The object to add.

This method is a wrapper around the AddObject method.

.NET Framework
Available since 4.0
Return to top
Show: