I am working on an MVC5 application where the Entity Framework
data access layer is generated with Entity Developer
.
We keep source in Git (Git flow) and I have merge conflict issues every time the model changes in a feature when I try rebasing with our main branch.
For example, I am working on a feature which is many commits ahead of develop - when I try rebasing the first issue looks like this:
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: App.Models/App.Base.view
both modified: App.Models/App.PregeneratedViews.cs
both modified: App.Models/App.edml
both modified: App.Models/App.ssdl
Can anyone offer a strategy or advice of how to deal with merge conflict issues arising from using model-first generated code as above?
- How can I work with a Git flow process and model-first generated code?
- How do others deal with these types of problems?
- Should I push for us to ditch model-first and go code-first? (This is the only solution I can see at the moment)
(I realise this might be opinion-based but I believe others will have the same types of problems making the question relevant?)