Ejemplo n.º 1
0
        public IApiConfig RegisterDataViewBuilder <TDataViewBuilder>(string collectionAlias)
            where TDataViewBuilder : IDataViewBuilder
        {
            if (DataViews.Any(x => x.Alias == collectionAlias))
            {
                throw new NotUniqueException(nameof(collectionAlias));
            }

            DataViews.Add(new ApiDataViewBuilderConfig
            {
                Alias           = collectionAlias,
                DataViewBuilder = typeof(TDataViewBuilder)
            });

            return(this);
        }
Ejemplo n.º 2
0
 internal void Add(SDDDataViewDefinition dataView)
 {
     DataViews.Add(dataView);
 }