Browse Source

Merge branch 'master' of https://github.com/aspnetzero/abp

pull/301/head
Halil İbrahim Kalkan 8 years ago
parent
commit
6c276c381e
  1. 16
      src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AutoMapperExpressionExtensions.cs

16
src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AutoMapperExpressionExtensions.cs

@ -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