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;
 }
示例#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);
        }
示例#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);
        }