public static EntityMapperCollection Add <TEntity, TEntityMapper>(this EntityMapperCollection collection)
            where TEntityMapper : EntityMapper <TEntity>, new()
        {
            if (collection == null)
            {
                throw new NullReferenceException();
            }

            collection.AddMapper <TEntity, TEntityMapper>();
            return(collection);
        }
 /// <summary>
 /// Register EntityMapper for reading entity of T1 type to global EntityAccessor scope
 /// </summary>
 /// <typeparam name="T1">Entity type</typeparam>
 /// <typeparam name="T2">EntityMapper type</typeparam>
 protected void UsingMapper <T1, T2>()
     where T2 : EntityMapper <T1>, new()
 {
     _mappers.AddMapper <T1, T2>();
 }