I have an existing sql server database and want to add a new Entity Data Model which i want to point to that existing database.I want to use reverse engineer to make it 'code first' style. what is the advantage and disadvantage of this? What is the advantage and disadvantage of Database first approach on reverse engineering. I have stored pocedure in my database.
EF power tools reverse engineer from database vs EF Database first. What is difference?
552 Views Asked by user1740857 At
1
There are 1 best solutions below
Related Questions in ENTITY-FRAMEWORK-6.1
- MVC / Entity Code-First Multiple Contexts with Referential Integrity between them
- Persisting and retrieving serialized entity property with Entity Framework 6.1 code first
- Entity Framework's code First Database.Initialize call starts creating a new database when the database is already present
- store only date in database not time portion C#
- DbContext Log is not intercepting SaveChanges() Generated SQL
- The number of properties in the Dependent and Principal Roles in a relationship constraint must be identical?
- Entity framework condidional query building
- Can't refresh database model
- Code first Entity Framework 6.1 Custom Aggregate Function
- Selecting Columns: The Include path expression must refer to a navigation property defined on the type
- Entity Framework code first causes exception on database access
- The right way to add indexes for Entity Framework code-first applications?
- How to call store procedures with async and await in C#
- NUnit test not working with Entity Framework ToListAsync()
- Accidentally underlying NullReferenceException issue in EntityFramework in ASP.NET MVC 5
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 # Hahtags
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?
The database first approach is appealing but not sustainable in its current form. EF 7 will get rid of the EDMX file which stands in the middle. Code first will be used, event for existing database.
It seems that your intuition to go to CodeFirst and reverse engineer it is the right one. Tools have been created for such purpose. A good start is this SO question.
But to answer to your question: the main advantages for the code first (1) approach are:
(1) Side Note: in EF 7, it is still "database first" per say, meaning, the database already exists. It is just that the EDMX layer is not used anymore. There will be some language misunderstandings I think in the first months of EF 7.