ObjectContext.AddObject Method (String, Object)
Adds an object to the object context.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- entitySetName
-
Type:
System.String
Represents the entity set name, which may optionally be qualified by the entity container name.
- entity
-
Type:
System.Object
The Object to add.
Exception | Condition |
---|---|
ArgumentNullException | The entity parameter is null or the entitySetName does not qualify. |