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