Comments (7)
This is a good idea. I'll work to get support for a {Schema}
variable added
from entityframeworkcore.generator.
Hi, I tried using schema as a variable as you suggested.
I found this to be very difficult to get right.
The naming should only be a unique per namespace. example: Shema1.Person should not conflict with Schema2.Person, which I think is the whole point of this feature.
Instead of using a variable I set added an option: "AddSchemaToNamespace"
You can check my changes here:
BartBr@7a9cc2f
from entityframeworkcore.generator.
Looking through the changes you suggested that is exactly what I was looking for, we have a number of tables that are identical in name but differ only by schema and keeping them in separate folders and namespaces would allow for us to use this generator, without resorting to separate contexts or using the prefix schema option, I really hope this is accepted.
from entityframeworkcore.generator.
I created the PR #99
from entityframeworkcore.generator.
@pwelter34 Hi Paul, could you take a look at my pull request #99?
By any means this feature meant to be nonintrusive, if you don't enable this feature, it has no effect on the rest of the program.
Thanks
from entityframeworkcore.generator.
thanks for reminder. i'll take a look this weekend.
from entityframeworkcore.generator.
This is implemented in v3
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
from entityframeworkcore.generator.
Related Issues (20)
- Table in two schemas error HOT 2
- Sqlite Error due to schema null HOT 1
- Add support for table prefix HOT 1
- Config Documentation: Model Views and Joined Tables
- create/update models for many-to-many relationships do not happen if either side is read-only
- Not compatible con .NET Core 3.1 HOT 3
- Remove Column Property to support for changing Database Type
- How to use efg nuget package?
- Disable relationship autogeneration HOT 1
- How do you utilize the entity scripts?
- exclude regex not working?
- support views? HOT 1
- what was last 3.x commit?
- Feature: Create Entities as nullable reference types HOT 1
- Table renaming HOT 2
- Type conversion - bigint to timespan HOT 1
- It seems that the entity in uppercase cannot be generated. Can you update it?
- Does efg support property naming convention?
- Typo on navigation comments
- Self-referencing navigation property renames not retained HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entityframeworkcore.generator.