While using EF to create a new solution/database, I am trying to set composite keys on the OnModelCreating method since its not possible to do this from the designer in a ModelFirst approach.
The thing is, after I make changes to the OnModelCreating(DbModelBuilder modelBuilder) method, if I have to make a change in my database and hit "generate database from model" it overrides anything I placed there, how can I avoid this?
Thank you