GenericService(TModel, TEntity).ToModel Method

Template MVC

GenericServiceTModel, TEntityToModel Method

Converts an entity to a model

Namespace:  Template.Service.Core
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual TModel ToModel(
	TEntity entity
)

Parameters

entity
Type: TEntity
The entity to be converted

Return Value

Type: TModel
The model object

Implements

IAutoMapperTModel, TEntityToModel(TEntity)
See Also