About 38,200 results
Open links in new tab
  1. DbContext Class (System.Data.Entity) | Microsoft Learn

    A DbContext instance represents a combination of the Unit Of Work and Repository patterns such that it can be used to query from a database and group together changes that will then be …

  2. DbContext in Entity Framework Core

    The DbContext class is an integral part of the Entity Framework. An instance of DbContext represents a session with the database which can be used to query and save instances of …

  3. Mastering DbContext in Entity Framework Core: Configuration

    Aug 20, 2024 · At the heart of EF Core is the DbContext, a class that manages database connections and serves as a bridge between your code and the database. Understanding how …

  4. DbContext in Entity Framework Core - Dot Net Tutorials

    What is the DbContext Class in Entity Framework Core? The DbContext class is a core component of Entity Framework Core (EF Core) that acts as a bridge between your …

  5. EF Core dbcontext with examples - dotnetlearning.com

    Learn about Entity Framework's DbContext class with practical examples for setting connection strings and using the OnConfiguring method.

  6. DbContext Class (Microsoft.EntityFrameworkCore)

    A DbContext instance represents a session with the database and can be used to query and save instances of your entities. DbContext is a combination of the Unit Of Work and Repository …

  7. Working with DbContext - EF6 | Microsoft Learn

    Oct 14, 2020 · The recommended way to work with context is to define a class that derives from DbContext and exposes DbSet properties that represent collections of the specified entities in …

  8. DbContext Lifetime, Configuration, and Initialization - EF Core

    Sep 30, 2025 · This article shows basic patterns for initialization and configuration of a DbContext instance. This article uses a local database that doesn't require the user to be authenticated. …

  9. Understanding DbContext and DbSet in EF Core: A Creative Dive

    Sep 21, 2024 · Think of DbContext as the conductor of your database orchestra. It keeps everything in sync — managing your entities, handling the flow of queries, and ensuring that …

  10. DbContext.Database Property (System.Data.Entity)

    Creates a Database instance for this context that allows for creation/deletion/existence checks for the underlying database.