using Abp.Dependency; namespace Abp.ObjectMapping { public sealed class NullObjectMapper : IObjectMapper, ISingletonDependency { /// /// Singleton instance. /// public static NullObjectMapper Instance { get; } = new NullObjectMapper(); public TDestination Map(object source) { throw new AbpException("Abp.ObjectMapping.IObjectMapper should be implemented in order to map objects."); } public TDestination Map(TSource source, TDestination destination) { throw new AbpException("Abp.ObjectMapping.IObjectMapper should be implemented in order to map objects."); } } }