MapperAttribute
using System;
using System.Diagnostics;
namespace Riok.Mapperly.Abstractions
{
[AttributeUsage(AttributeTargets.Class)]
[Conditional("MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME")]
public class MapperAttribute : Attribute
{
public PropertyNameMappingStrategy PropertyNameMappingStrategy { get; set; }
public EnumMappingStrategy EnumMappingStrategy { get; set; }
public bool EnumMappingIgnoreCase { get; set; }
public bool ThrowOnMappingNullMismatch { get; set; } = true;
public bool ThrowOnPropertyMappingNullMismatch { get; set; }
public bool AllowNullPropertyAssignment { get; set; } = true;
public bool UseDeepCloning { get; set; }
public MappingConversionType EnabledConversions { get; set; } = MappingConversionType.All;
public bool UseReferenceHandling { get; set; }
public IgnoreObsoleteMembersStrategy IgnoreObsoleteMembersStrategy { get; set; }
public RequiredMappingStrategy RequiredMappingStrategy { get; set; } = RequiredMappingStrategy.Both;
public MemberVisibility IncludedMembers { get; set; } = MemberVisibility.AllAccessible;
public bool PreferParameterlessConstructors { get; set; } = true;
public bool AutoUserMappings { get; set; } = true;
}
}