Well, things have probably changed at the Database itself. You need to update the Entity Framework .edmx whenever the database changes for new tables to be accessible at your DbContext. Open up the goofy GUI interface for the .edmx by just double-clicking the .edmx in Visual Studio 2015 and then right-click in some of the dead white space and pick "Update Model from Database..." from the options that appear. You may find that the .edmx and supporting files have all of their tables updated when you only wanted to loop a new table in. If you want you may cherry pick what is to be kept from a greater looping in by selecting the files in Atlassian SourceTree (at staged and unstaged files) and then picking "Discard hunk" here and there to toss away unwanted sections of green. (additions)
No comments:
Post a Comment