/// <summary> /// Add the profile of type <typeparamref name="TProfile"/> to the configuration /// </summary> /// <typeparam name="TProfile">The type of the profile.</typeparam> /// <returns> /// A fluent builder to configure comparison. /// </returns> public ConfigurationBuilder Profile <TProfile>() where TProfile : IEntityProfile, new() { var profile = new TProfile(); var type = profile.EntityType; var classMapping = GetClassMap(type); profile.Register(classMapping); return(this); }