Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1001011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:36:09+00:00 2026-05-16T07:36:09+00:00

After deploying a complete application using Entity Framework (EF) and LINQ, the next things

  • 0

After deploying a complete application using Entity Framework (EF) and LINQ, the next things can happen then with the data in a “database which previously was included/mapped to EF in the aplication”:

  1. Create new tables and include into EF
  2. Delete existing tables from the database that were previously included in EF
  3. Include new fields to tables and include in EF also.
  4. Delete fields from existing tables which were previously included in EF
  5. Modify a field from the database (new type or length) and apply the changes in EF.

The question is: can all these changes be easily/automatically modified in the application that uses EF?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:36:09+00:00Added an answer on May 16, 2026 at 7:36 am

    The modifications you describe and easily be accommodated for or consumed by the EF designer. Go ahead and make the changes in your database. Once that’s finished, you can simply right click on the EF designer surface and choose to refresh your EF model from database.

    The more difficult part will be re-aligning your business logic to conform to the new data model. Those entities/tables and properties/attributes that were deleted/changed will be highlighted in Visual Studio, and you’ll have to visit each of those lines of code to correct them. This could be in your DAL/Repository, and up into any assemblies that reference your EF model.

    For those new tables/entities and attributes or datatypes, you can simply incorporate and start using them right away in your code.

    To get a feel for how this will work, try changing one thing (deleting an entity/table or changing datatype), and go though the steps I’ve described. Depending on your tolerance for multiple changes, consider taking a longer amount of time to manage the datamodel changes one-by-one.

    Does EF have mechanisms or “best practices” that let us align the BL with the new model?

    I’m not sure I understand your intent of ‘align the BL with the new model’. There aren’t any automated ways to ‘fix the code to accommodate the entities new look’. You’ll simply see compiler errors.

    If you’re asking about how to protect against DB changes, I’d say that this is an architecture decision that you make in the application, and there aren’t any BP. Given that EF is an ORM, some devs would suggest using/consuming the entities that EF creates for you. Some devs suggest using them, and create partial class to extend their behavior (new methods or properties separate from the database). Some devs want to create a whole new set of classes and object model to represent or make the classes look more like the real-world, rather than how a database wants to structure the data model. They then go on to create mapping code between the EF entities and their own POCO classes — translating between each version.

    My suggestion on this is: use the ORM’s classes for your tables/entities, and extend their behavior and data with partials if/when needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I make an application for querying from and inserting data to the database using
After deploying my application into android mobile,at starting the database is getting created. I
After deploying to Azure, I kept getting server errors -- the application would not
I am trying to deploy a playframework application to Heroku. After deploying, I trying
I am new to iphone stuff. After deploying an application in iTunes is there
This is the bane of my programming existence. After deploying an application, when this
I just started using the new project type SQL Server 2008 Database. I can
After deploying an app of Heroku I am having trouble getting the database populated
after deploying my web app to a new server using the add web setup
We have a WSP package for deploying an application into MOSS 2007. After deploying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.