Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema to namespace #99

Closed
wants to merge 3 commits into from
Closed

Add schema to namespace #99

wants to merge 3 commits into from

Conversation

BartBr
Copy link

@BartBr BartBr commented Mar 2, 2020

Support multiple database schemas without a number added to the model name or prefix the schema to the model (example: Person1 & Person2 or SchemaOnePerson & SchemaTwoPerson)

Instead, add the database schema to the namespace. (example: SchemaOne.Person & SchemaTwo.Person)

In the DbContext, the schema name is prefixed in the variable name.

Original feature request: #29

@pwelter34
Copy link
Member

This PR is no longer need. Thank you for your contribution.

To use the schema in a namespace, directory or class name use the new {Table.Schema} variable in the configuration file.

Documentation: https://efg.loresoft.com/en/latest/variables/\
Sample: https://github.com/loresoft/EntityFrameworkCore.Generator/tree/master/sample/TrackerSchema/TrackerSchema.Core

@pwelter34 pwelter34 closed this Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants