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

  • Home
  • SEARCH
  • 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 4079212
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:46:22+00:00 2026-05-20T17:46:22+00:00

I use auto generated Entity-Framework Data Model for a Database that has 100+ tables.

  • 0

I use auto generated Entity-Framework Data Model for a Database that has 100+ tables. Though I use only 5 tables I select all tables to be mapped onto c# classes.

Every time I start dekstop application that creates DataContext instance in FormLoad event it takes 3-4 seconds for some inner EF initialization. This startup time strongly depends on number of autogenerated classes. When I decided to generate mapping only for 5 tables – start up time decreased dramatically.

I wonder what is going on behind the scenes and can I change standard behavior keeping all unused table mappings in a program? I don’t want to care what tables do I need to be mapped. I guess EF does some reflection work, may it be done in lazy-load style or some of a kind?

Thank you in advance!

  • 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-20T17:46:23+00:00Added an answer on May 20, 2026 at 5:46 pm

    I recommend reading these two articles Part 1 and Part 2. They explain what happens when you start the application and how to reduce startup time by pregenerating Views for entity framework. Anyway including tables which you don’t need is bad approach and nothing will reduce your startup time more then simply removing them from entity model.

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

Sidebar

Related Questions

I acquired a database from another developer. He didn't use auto_incrementers on any tables.
Reporting services use format strings to auto format cell data. For example c2 formats
I have a number of tables that use the trigger/sequence column to simulate auto_increment
For technical reasons, I can't use ClickOnce to auto-update my .NET application and its
Can I use the ClickOnce deployment method to deploy and auto update applications targeted
What are the other ways of achieving auto-increment in oracle other than use of
How do you give a C# auto-property an initial value? I either use the
Why is it wrong to use std::auto_ptr<> with standard containers?
std::auto_ptr is broken in VC++ 8 (which is what we use at work). My
Simple question really - how do I use text_field_with_auto_complete inside a form_for block? I've

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.