Beispiel #1
0
        public virtual Schema GetSchema(KeyedCollection <string, ConfigParameter> configParameters)
        {
            //TODO: need to pass configparameters in here
            _objectSources = GetRepositoryContainers(configParameters);
            Schema schema = Schema.Create();

            foreach (var objectSource in _objectSources)
            {
                SchemaType schemaType = AutoMapper.GetSchema(objectSource.Type, objectSource.ObjectTypeName);
                schema.Types.Add(schemaType);
            }

            return(schema);
        }