コード例 #1
0
 public static IMappingExpression <TSource, TDestination> IgnoreExtraProperties <TSource, TDestination>(
     this IMappingExpression <TSource, TDestination> mappingExpression)
     where TDestination : IHasExtraProperties
     where TSource : IHasExtraProperties
 {
     return(mappingExpression.Ignore(x => x.ExtraProperties));
 }
コード例 #2
0
 public static IMappingExpression <TSource, TDestination> IgnoreMayHaveCreatorProperties <TSource, TDestination, TUser>(
     this IMappingExpression <TSource, TDestination> mappingExpression)
     where TDestination : IMayHaveCreator <TUser>
 {
     return(mappingExpression
            .Ignore(x => x.Creator));
 }
コード例 #3
0
 public static IMappingExpression <TSource, TDest> IgnoreChangeStamp <TSource, TDest>(
     this IMappingExpression <TSource, TDest> expression) where TDest : IHaveChangeStamp
 {
     return(expression
            .Ignore(d => d.ChangeStamp));
 }
コード例 #4
0
 public static IMappingExpression <TSource, TDest> IgnoreOrderDbObjectProperties <TSource, TDest>(
     this IMappingExpression <TSource, TDest> expression) where TDest : OrderDbObjectWithChangeStamp
 {
     return(expression.Ignore(d => d.Id).Ignore(d => d.ChangeStamp));
 }
コード例 #5
0
 public static IMappingExpression <TSource, TDestination> IgnoreSoftDeleteProperties <TSource, TDestination>(
     this IMappingExpression <TSource, TDestination> mappingExpression)
     where TDestination : ISoftDelete
 {
     return(mappingExpression.Ignore(x => x.IsDeleted));
 }
コード例 #6
0
 public static IMappingExpression <TSource, TDestination> IgnoreHasModificationTimeProperties <TSource, TDestination>(
     this IMappingExpression <TSource, TDestination> mappingExpression)
     where TDestination : IHasModificationTime
 {
     return(mappingExpression.Ignore(x => x.LastModificationTime));
 }