Пример #1
0
        /// <summary>
        /// Add automapper mappings
        /// </summary>
        /// <param name="assembliesWithProfile"></param>
        /// <returns></returns>
        public IServiceCollection AddDMAutomapper(Assembly[] assembliesWithProfile)
        {
            var builder = new DataMappingAutomapperModuleBuilder(_collection, assembliesWithProfile);

            return(builder.AddServices());
        }
Пример #2
0
        /// <summary>
        /// Add automapper mappings
        /// </summary>
        /// <returns></returns>
        public static IServiceCollection AddDMAutomapper(this IServiceCollection services)
        {
            var builder = new DataMappingAutomapperModuleBuilder(services);

            return(builder.AddServices());
        }