mirror of https://github.com/abpframework/abp.git
1 changed files with 16 additions and 0 deletions
@ -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…
Reference in new issue