Skip to content

EnableSchemaFolders should apply different namespace  #119

@audacity76

Description

@audacity76

Hi,

putting the entities into folders is great but the namespace should follow. If so, you can have the same table (name) in different schemas.

By the way the Docs example notes EnableSchemaFolders two times:

            // Put Models into folders by DB Schema
            //options.EnableSchemaFolders = true; <------------------------------------------

            // Exclude some tables
            options.ExcludedTables = new List<string> { "Territory", "EmployeeTerritories" };

            // Add custom template data
            options.TemplateData = new Dictionary<string, object>
            {
                { "models-namespace", "ScaffoldingSample.Models" },
                { "base-class", "EntityBase" }
            };

            // Place models in folders by schema
            //options.EnableSchemaFolders = true; <---------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions