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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:09:40+00:00 2026-05-22T01:09:40+00:00

I am using Tracing and Caching for Entity Framework in my asp.net 4 application.

  • 0

I am using Tracing and Caching for Entity Framework in my asp.net 4 application. It works great when I work on my entities manually, but in master-detail pages that have a gridview and an entitydatasource, I cannot make entitydatasource use the global cache because I have no control over creating objectcontext and entitydatasource does all the work by itself.

My question is: is there a way to customize entitydatasource for initializing the object context and things like that and if not how can i use and objectdatasource with entity faramework.

  • 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-22T01:09:41+00:00Added an answer on May 22, 2026 at 1:09 am

    Yes there is a way. EntityDataSource offers event ContextCreating. If you handle this event you will be able to initialize context yourselves and pass it to data source via event’s arguments.

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

Sidebar

Related Questions

I'm using an Ajax update panel and have recently added ASP.NET tracing code to
I'm using System.Net tracing as described here: http://ferozedaud.blogspot.com/2009/08/tracing-with-systemnet.html But that traces every request made
Working on a tracking application using GPS. It is all fine, but sometimes because
I want to check render time of each page in asp.net mvc application. i
I'm using .NET's built-in Tracing mechanism to trace program execution. The problem is the
ASP.NET tracing seems very erratic. Sometimes it traces and sometimes it doesn't. I trace
We're using Entity Framework 4.0. When we encounter a problem in production, we'd like
I've implemented a specialised tree data structure for a ray tracing application. I'm using
I am using Entity Framework 4.1 for database access and would like to Unit
An answer to this question has led me to look into using Event Tracing

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.