Multiple EF6 DB Models with same Entity names conflicting and getting overwritten, How to set model output directory in EF6?

c# ef-database-first entity-framework entity-framework-6 t4

Question

Working together withEF6 & (database-first) producing models from various databases. Some databases have identical table names, which causes conflicts when a model is constructed. the issuenamespace problem I visited aModel.tt modified file attributes in Solution ExplorerCustom Tool Namespace enter image description here

However, this only partially resolved my issue because when creating new Models, duplicating (same table name).cs The same table name entities get rewritten while files are still being added to the project directory.

In EF6, how do I set the model output directory? Or take another approach to this?

EDIT: Having moved.edmx I am currently getting it into its own folder.{"Unable to load the specified metadata resource."} while utilizing online metadatavar objectContext = ((IObjectContextAdapter)this.Ecom).ObjectContext;

1
0
5/25/2016 11:09:40 AM

Accepted Answer

ZZZ_tmp
1
5/25/2016 11:04:36 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow