Template Documentation
GenericRepositoryTEntityAdd Method |
Add a new entity to the context, it will be added to the database on Save
Namespace: Template.Repository.Core
Assembly: Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual TEntity Add( TEntity entity )
Parameters
- entity
- Type: TEntity
The entity to be added
Return Value
Type: TEntityThe entity after being added
Implements
IGenericRepositoryTEntityAdd(TEntity)See Also