Added Ignore extension to abp.automapper (AutoMapperExpressionExtensions)

pull/301/head
yekalkan 8 years ago
parent 36cb5b4a65
commit 87f721d980

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using AutoMapper;
namespace Volo.Abp.AutoMapper
{
public static class AutoMapperExpressionExtensions
{
public static void Ignore<TDestination, TMember, TResult>(this IMappingExpression<TDestination, TMember> mappingExpression, Expression<Func<TMember, TResult>> destinationMember)
{
mappingExpression.ForMember(destinationMember, opts => opts.Ignore());
}
}
}
Loading…
Cancel
Save