상속: System.Configuration.ConfigurationSection
 public void SchemaProviderIsReturnedIfFound()
 {
     var sdo = new SdoConfigSection();
     var testManager = new TestConfigurationManager(new NameValueCollection(), sdo);
     var candidate = new ConfigurationProvider(testManager).SchemaProvider;
     Assert.That(candidate, Is.TypeOf<ConfigSchemaProvider>());
 }
 public ConfigReflector(SdoConfigSection configSection)
 {
     Tables             = new List <Table>();
     Columns            = new List <Tuple <string, string, DbType, int> >();
     PrimaryKeys        = new List <Tuple <string, string> >();
     ForeignKeys        = new List <ForeignKey>();
     Procedures         = new List <Procedure>();
     ProcedureArguments = new List <Tuple <string, string, Type, ParameterDirection, string> >();
     LoadConfigData(configSection);
 }
        private void LoadConfigData(SdoConfigSection configSection)
        {
            if (configSection == null)
                return;

            foreach(var schema in configSection.Schemas)
            {
                LoadSchema(schema as SchemaElement);
            }
        }
 public ConfigReflector(SdoConfigSection configSection)
 {
     Tables = new List<Table>();
     Columns = new List<Tuple<string, string, DbType, int>>();
     PrimaryKeys = new List<Tuple<string, string>>();
     ForeignKeys = new List<ForeignKey>();
     Procedures = new List<Procedure>();
     ProcedureArguments = new List<Tuple<string, string, Type, ParameterDirection, string>>();
     LoadConfigData(configSection);
 }
        private void LoadConfigData(SdoConfigSection configSection)
        {
            if (configSection == null)
            {
                return;
            }

            foreach (var schema in configSection.Schemas)
            {
                LoadSchema(schema as SchemaElement);
            }
        }
예제 #6
0
 public ConfigSchemaProvider(SdoConfigSection configSection)
 {
     _reflector = new ConfigReflector(configSection);
 }
 public ConfigSchemaProvider(SdoConfigSection configSection)
 {
     _reflector = new ConfigReflector(configSection);
 }