I have a custom entity data model extension that implements IModelGenerationExtension. Without getting into specific code, I have come across a situation where I get the "A model generation extension made changes to the model generated from the database that were not valid." when updating my model from the database. I am able to completely step through my extension using the Visual Studio experimental instance. The xml document representing the EDMX file modified by extension is valid xml. The error occurs after the scope leaves my OnAfterModelGenerated method. I'm assuming I did something the EF entity data model wizard doesn't like. How can I determine what the actual error is? I find that info for this sort of thing is not readily available. Any help would be appreciated. Thanks in advance.
EF6 Entity Data Model Wizard extension gets error after Update Model From Database
322 Views Asked by SteveB At
2
There are 2 best solutions below
Related Questions in ENTITY-FRAMEWORK
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- How to get primary key value with Entity Framework Core
- How do you add extra property using join
- Is there anyway to set the relationship of many tables from Model?
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Cannot insert a null into column MVC ASP.NET
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- EF 6 interceptor to set connectionstring
- IQueryable<T> OrderBy<T> Extension Fails with Foreign Key Property
- Linq to Entities filter navigation collection properties
- How to generate entity framework code-first migrations without using the package manager console?
- Entity Framework and abstract class
- Validation DataGridView Windows Forms
- Require tool to trace the LInq Queries in Oracle
Related Questions in ENTITY-FRAMEWORK-6
- EF 6 interceptor to set connectionstring
- Updating Entity Framework 6 Database C#
- ObjectContext is disposed, can not longer used
- EF6 model first - The entity type is not part of the model for the current context
- Integration testing the entity framework - separate the seed method call only for PROD -
- Entity framework conditional entity relation
- Entity Framework Decimal Truncation Issue
- Auto Increment ID in Composite key Entity Framework
- Using an 'if statement' correctly in a variable
- Updating entity with many to many relationship
- Entity Framework: Lazyloading appears to be off despite explicitly turning it on?
- Combining results from two classes
- EF Code First - Multiple Application Versions Sharing A Database
- Elegant way to model multiple reviewers for a form in MVC with Entity First
- After changing the table Entity Name in EF edmx designer then Not able to Create controller with Scaffolding options?
Related Questions in EDMX
- Dynamically load asp.net Content from database
- The difference between EF6 and EF4.1 in files hierarchy
- Unknown Exception During Build
- EF6 Call stored procedure with parameters
- LINQ takes 40s to end query - Performance
- SQL Server and performance for dynamic searches
- Now I'm using EF 6 database first and i need to add new table
- Can I generate a .sql update script from an edmx file?
- Entity Framework TT template -> Navigation Property name based on foreign key ID
- singularize table name when create EDMX file
- How to take input from SQL stored procedure to a return statement
- EDMX generated with ODT/ODAC, context class not showing in Domain Service Class
- Error 175: The specified store provider cannot be found in the configuration, or is not valid. SQLlite
- Cannot process 'StudentGrantsWF.xaml' because it is not an EDMX file
- How to get the maximum length of a string from an EDMX model in code?
Related Questions in ENTITY-MODEL
- Exclude or Ignore Property of an Entity model if column is not exist in database table
- Could not find the conceptual model type
- Is it possible to have two Entity Models from two databases in one project?
- Disconnected DataSet
- Do I need to regenerate entity model if I change databases?
- WCF Data Service - Save Nested/Related Entities
- Is there a mySQL connector for Visual Studio 2012?
- SQL - Make an id start with a number depending on the entity type
- Deserialize JSON file that has blocks in just one Model (class)
- Can't find ADO.NET Entity Model Browser Window in vs2010
- EF6 Entity Data Model Wizard extension gets error after Update Model From Database
- How to update correctly an Entity Model after changes of database structure?
- Field 'record_id' doesn't have a default value - Spring JPA Error
- Return Linq result to a dataset - GetCommand Is Not a Property
- Unable to find the sql server in dropdown list of server names
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)
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?
You can save the resulting .edmx as a new file and open it in Visual Studio. It will show the errors it has.