public DatabaseSectionNode Build()
 {
     DatabaseSectionNode node = new DatabaseSectionNode();
     ProviderMappingsNode mappingsNode = new ProviderMappingsNode();
     foreach (DbProviderMapping mapping in databaseSettings.ProviderMappings)
     {
         mappingsNode.AddNode(new ProviderMappingNode(mapping));
     }
     node.AddNode(mappingsNode);
     return node;
 }
Example #2
0
        public DatabaseSectionNode Build()
        {
            DatabaseSectionNode  node         = new DatabaseSectionNode();
            ProviderMappingsNode mappingsNode = new ProviderMappingsNode();

            foreach (DbProviderMapping mapping in databaseSettings.ProviderMappings)
            {
                mappingsNode.AddNode(new ProviderMappingNode(mapping));
            }
            node.AddNode(mappingsNode);
            return(node);
        }
Example #3
0
        public DatabaseSectionNode Build()
        {
            DatabaseSectionNode  node         = new DatabaseSectionNode();
            ProviderMappingsNode mappingsNode = new ProviderMappingsNode();

            foreach (DbProviderMapping mapping in databaseSettings.ProviderMappings)
            {
                mappingsNode.AddNode(new ProviderMappingNode(mapping));
            }
            node.AddNode(mappingsNode);
            node.RequirePermission = databaseSettings.SectionInformation.RequirePermission;
            return(node);
        }