LocalView<TEntity>.Add(TEntity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public virtual void Add (TEntity item);
abstract member Add : 'Entity -> unit
override this.Add : 'Entity -> unit
Public Overridable Sub Add (item As TEntity)
Parameters
- item
- TEntity
The item to start tracking.
Implements
Remarks
Note that only the given entity is tracked. Any related entities discoverable from the given entity are not automatically tracked.
See Local views of tracked entities in EF Core for more information and examples.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework