I've seen this post, my problem is quite the opposite, EF is treating the entities as two separate 1 to many relation, so the User have many UserInRole, and the Role also have many UserInRole entities, shouldn't EF automatically hide the UserInRole table and give a navigation property Roles for User and Users for Role. What I want is actually this:
Entity framework many to many relationship association not automatically generated
73 views Asked by Omar Mneimneh At
1
There are 1 answers
Related Questions in ENTITY-FRAMEWORK-6
- EF6 Find function always go to the DB
- Using EF (not EF Core) with .NET 6 or above
- EF generates query with not supported minus sign in MS SQL (f.e. norvegian culture)
- Why ConfigurationManager.ConnectionStrings returns only a default LocalDb ASP.Net Cnx?
- HasComputedColumnSql() method not working as Expected
- How to establish 1:1 relationship with 2 composite keys in EF6 (not core)
- Error adding an owned entity to the parent entity using ASP.NET Core 6 Web API
- Injecting UserStore and UserManager into Controller throws exception
- What is difference between ComplexType and OwnsOne in Entity Framework Core?
- Entity Framework 6 - modify nested collection by using DbCommandInterceptor
- Entity Framework 6 - update entity value during loading
- How to generate Concurrency exceptions in Entity Framework?
- How is the DeleteStatus in associated tables updated when DeleteStatus is true in a table?
- Update modified date when referenced entities are edited
- Disable only Inserts and Updates for one entity in EF 6
Related Questions in MANY-TO-MANY
- SQLAlchemy Many-to-Many Relationship: UNIQUE constraint failed
- Spring does not map set of roles
- Laravel Eloquent Relationships with Many to Many
- Trying to understand many-to-many relationship in flask
- Many to many relationship with the same table
- Simultaneously add and remove multiple many-to-many relation entries using TypeORM
- How to get data from many-to-many relationship in SQLModel
- Doctrine - delete self-many-to-many
- Pytest --no-migrations throws "relation already exists"
- Tableau - join and compare 3 tables many to many
- Can I fetch the corresponding value of an aggregate from another table in a many to many database using group by in MySQL?
- Nestjs: module structure and many-to-many relationships
- Finding items that match multiple LIKE keywords
- How to define many-to-many relationship using Entity Framework for MongoDB
- LINQ: Select values from two columns based on one of the column value
Related Questions in EDMX
- Problems getting Oracle MDA Client to work with Entity Framework 6.0
- Recreating an existing edmx in Visual Studio Code for Azure Function
- Error code stating "The ObjectContext might be in an inconsistent state."
- Unable to add stored procedures to EDMX file in VS 2022
- How to set up SDK-style C# project to automatically generate classes when EDMX file is saved
- Visual Studio 2015 is crashing after modify and save EDMX changes on the development system
- Cannot update Entity Framework Edmx from Database in Visual Studio 2022 17.7.4
- Entity Framework 6.4.4 is unable to generate Entity Classes from EDMX through 'Run Custom Tool' option. Visual Studio 2022
- Visual Studio 2022 Entity Framework Designer not loading correctly
- Entity Framework Extension Mismatch Error with Oracle DB (EDMX model)
- How edit EDMX file (EF6) on .NET 7.0
- Cannot import anymore tables into edmx. "Running transformation: System.NullReferenceException: Object reference not set to an instance of an object."
- Net Framework 4.8 EF6 EDMX T4 Error _generationEnvironment is NULL
- Visual Studio 2022 Cannot Update EDMX Entity Model from Database
- Perfomance issues in MVC applciation with Sql Server
Related Questions in EDMX-DESIGNER
- Visual Studio 2017 opening edmx file cause HRESULT: 0x80029C4A error
- Visual Studio 2022 Entity Framework Designer not loading correctly
- Net Framework 4.8 EF6 EDMX T4 Error _generationEnvironment is NULL
- Changing default T4 template for new EDMX files
- Entity Framework: how to add an association, based on an existing property
- Alternate way to get to "Update model from Database" and Model Browser without opening up edmx file using ADO.NET Entity Model Designer?
- Entity Framework won't detect foreign key from database
- I can update database table from edmx model?
- Visual Studio 2019 EDMX Missing ADO.NET Entity Data Model Item Template
- EDMX canvas and generating a database from Model question
- Exporting edmx diagram from edmx designer cut off tables using PDFCreator
- Cannot add junction tables (as a result of many to many relationship) to entity data model designer (edmx)
- Table not being displayed in Entity Framework Diagram (edmx)
- Error while trying to exec stored procedure parameters Entity Framework EDMX model in C#
- Is there a way to sort my entire EDMX designer automatically?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Deleting the entity from the edmx and updating changes fixed it, apparently when I updated the model from the database in the edmx designer it kept columns that I removed from the database maybe because it was referenced somewhere else in the project, anyway I deleted the entire entity manually and updated the changes / re-added the missing tables and it did the trick.