IAutoMapper(TModel, TEntity) Interface

Template MVC

IAutoMapperTModel, TEntity Interface

Defines the basic automapper methods

Namespace:  Template.Service.Core.Interface
Assembly:  Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
internal interface IAutoMapper<TModel, TEntity>
where TModel : BaseModel
where TEntity : BaseEntity

Type Parameters

TModel
The TModel DTO type
TEntity
The Entity Framework entity type

The IAutoMapperTModel, TEntity type exposes the following members.

Methods
  NameDescription
Public methodToEntity
Converts a model to an entity
Public methodToEntityEnumerable
Converts an IEnumerable of Models to an IEnumerable of entities
Public methodToEntityExpression
Convert an expression of a model to an expression to an Entity, be careful to make an expression of with entities properties
Public methodToEntityFunctionTResult
Convert a function of a model to a function of a TEntity, be careful to make an function with entities properties
Public methodToModel
Converts an entity to a model
Public methodToModelEnumerable
Convert an IEnumerable of entities to an IEnumerable of models
Top
See Also