Adds the given entity to the context the Added state. When the changes are being saved, the entities in the Added states are inserted into the database. After the changes are saved, the object state changes to Unchanged.
Namespace:System.Data.Entity Assembly:EntityFramework (in EntityFramework.dll)
Entities that are already in the context in some other state will have their state set to Added. Add is a no-op if the entity is already in the context in the Added state.