GenericService(TModel, TEntity).Add Method

Template MVC

GenericServiceTModel, TEntityAdd Method

Add an entity based on the passed model and insert it on database

Namespace:  Template.Service.Core
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual void Add(
	TModel model
)

Parameters

model
Type: TModel
The model to convert in a entity

Implements

IServiceTModelAdd(TModel)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrows when model parameter is null
See Also