IAutoMapper(TModel, TEntity).ToModel Method

Template MVC

IAutoMapperTModel, TEntityToModel Method

Converts an entity to a model

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

Parameters

entity
Type: TEntity
The entity to be converted

Return Value

Type: TModel
The model object
See Also