Template Documentation
GenericServiceTModel, TEntityToEntityFunctionTResult Method |
Convert a function of a model to a function of a TEntity, be careful to make an function with entities properties
Namespace: Template.Service.Core
Assembly: Template.Service (in Template.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Func<TEntity, TResult> ToEntityFunction<TResult>( Func<TModel, TResult> selector )
Parameters
- selector
- Type: SystemFuncTModel, TResult
The selector to convert
Type Parameters
- TResult
- The result type
Return Value
Type: FuncTEntity, TResultThe TEntity selector
Implements
IAutoMapperTModel, TEntityToEntityFunctionTResult(FuncTModel, TResult)See Also