Template Documentation
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: TModelThe model object
Implements
IAutoMapperTModel, TEntityToModel(TEntity)See Also