GenericService(TModel, TEntity) Constructor

Template MVC

GenericServiceTModel, TEntity Constructor

Add an instance of GenericService, also configures the mapping

Namespace:  Template.Service.Core
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public GenericService(
	IGenericRepository<TEntity> repository
)

Parameters

repository
Type: Template.Core.InterfaceIGenericRepositoryTEntity
The repository of the Service
See Also