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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:25:09+00:00 2026-06-19T00:25:09+00:00

I am reading in the book where author create custom context class ( not

  • 0

I am reading in the book where author create custom context class (not using edmx file) for data access.
I wonder now.
In real world scenario what is most used method custom DbContext class or .edmx file(s).

I know that I should have different .edmx files if I use them but do I need to have the same if I use custom DbContext class.

  • 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-19T00:25:10+00:00Added an answer on June 19, 2026 at 12:25 am

    If you’re using database or model first you have to have the edmx file – it is embedded in the dll, and the connection string references it. It contains the mapping information.

    If using code first you never need an edmx file – the mapping information is derived by convention and/or by code (i.e. attributes etc). (Creating a custom DbContext is the code first approach)

    The code first approach hasn’t been around as long as the database first approach, and therefore I would guess is more prevalent in real world scenarios. It is also more likely that a database first approach would be used when an existing database structure exists. However, the code first approach is rapidly gaining popularity.

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

Sidebar

Related Questions

I am reading a book in which author used a code like this public
I'm reading a PHP book where the author says that symbols should be avoided
I'm reading a book on Objective-C and the author said that if local variables
I'm reading a book about GWT (Google Web Toolkit) where the author quote the
I'm currently reading the book Pro Asp.Net MVC Framework. In the book, the author
I'm reading Programming for Java Virtual Machine by Joshua Engel book where the author
I am working in LaTeX, and when I create a pdf file (using LaTeX
I am reading this book called Java Concurrency in Practice and the author gives
I'm reading a book, where the author talks about fetching an row + all
Currently I'm reading a book (Pro ASP.Net Framework). In this book, the author suggests

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.