Entity Framework - would this break?

Camillia
Camillia used Ask the Experts™
on
I wonder if code would work if I do this:

1. I added a column to a database table in our Dev database

2. I updated the EDMX in the code

3. Production/another database enviroment doesn't have the new column.

4. Now, I move the code to Production. EDMX has the extra column. Database doesn't have it. I'm NOT using the extra column in the code yet.

Would the code break? I don't think so because I'm not using the extra column. It's just in the EDMX.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018
Commented:
1 -> 2 -> 3 (it won't be broken)

3 -> 4 it will break because the database schema is different from the one you have in production, so yeah it will break, even if you're not using the DB yet
Good to know. Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial