示例#1
0
        public ConfigBuilder RegisterMappings <TContext>(
            [NotNull] Func <Mappings.Mappings, MappingSource <TContext> > action)
            where TContext : ISpContext
        {
            Guard.CheckNotNull(nameof(action), action);

            _mappingSourceBuilders.Register(typeof(TContext), action);
            return(this);
        }
示例#2
0
 private void Register(Type converterType, Func <IFieldConverter> converterBuilder)
 {
     _fieldConvertersBuilders.Register(converterType, converterBuilder);
 }