Template Documentation
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
Name | Description | |
---|---|---|
ToEntity |
Converts a model to an entity
| |
ToEntityEnumerable |
Converts an IEnumerable of Models to an IEnumerable of entities
| |
ToEntityExpression |
Convert an expression of a model to an expression to an Entity, be careful to make an expression of with entities properties
| |
ToEntityFunctionTResult |
Convert a function of a model to a function of a TEntity, be careful to make an function with entities properties
| |
ToModel |
Converts an entity to a model
| |
ToModelEnumerable |
Convert an IEnumerable of entities to an IEnumerable of models
|
See Also