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 8560373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:15:42+00:00 2026-06-11T16:15:42+00:00

I am creating graphic application and where the user can import the graphic data

  • 0

I am creating graphic application and where the user can import the graphic data from a SQL Sever database. This application should be capable of handling at least 100,000+ entities. The idea to load the data faster is to load the visual data while opening the database file and non-visual data will be loaded on demand. So, the problem which I am facing is with the data loading from database using Entity Framework.

Each entity has a visual and a non-visual data associated and following is an example of one of the entity:

class Polyline
{
  Guid ID {get; set;}
  PolylineGeometry PGeometry {get; set;}
  PolylineAttribData PAttribData {get; set;}
}
class PolylineGeometry
{
  List<Point3D> PointCollection {get; set;}
}
class PolylineAttribData
{
  Image ImageData {get; set;}
}

My context class is as follows:

class GeometryData : DbContext
{
  DbSet<Polyline> Polylines {get; set;}
}

So, when we create the database context or the geometry data initially only the ID is loaded into polyline and PGeometry & PAttribData is not loaded. So, how do I load this data?

Thank You,

Pankaj

  • 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-06-11T16:15:43+00:00Added an answer on June 11, 2026 at 4:15 pm

    I think you must set Navigation Properties (refering to other entities) as virtual.

    Then, wether you use lazy loading : the related entities will be loaded “on demand”, as far as your context is not disposed.

    Or you can load them explicitely when needed, using Load()

    You can find a good article about lazy, eager, explicit loading, pros and cons here:

    http://msdn.microsoft.com/en-us/magazine/hh205756.aspx

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

Sidebar

Related Questions

I'm creating an owner-drawn control inherited from ListView for a Windows Mobile application. I'm
I'm creating an alert dialog with a spinner graphic. UIAlertView *alert; //(at top of
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a google map with store locations within 50 miles of user entered address.
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
I am making an application in VB.NET that allows a user to highlight some
I'm creating a dashboard application that shows hundreds of items on a FlowLayoutPanel .
I am trying to imitate this tutorial about creating a simple Apple-themed breadcrumb found
I'm creating a web application in which teachers need to be able to easily
we are creating an application with the following GUI outline: The stuff to show

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.