-1

Generating POCO from db works like a charm, however what if further tables / columns are added into DB.

How to perform incremental updates of POCO in case of EF DB first?

Here are two alternatives I could think of:

  1. Or shall we fall back to code-first style from there onwards?
  2. or just keep adding incremental columns / tables manually into respectively into POCO?
Abhijeet
  • 13,562
  • 26
  • 94
  • 175

1 Answers1

1

The generated classes are partial, so you can just overwrite them with any schema changes in the database.

ErikEJ
  • 40,951
  • 5
  • 75
  • 115