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