TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
About DbContext
Share
facebook
twitter
linkedIn
Reddit
Topics
No topic found
Content Filter
Articles
Videos
Blogs
News
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Abhishek Yadav (7)
Jignesh Trivedi (6)
Vijay Prativadi (4)
Sardar Mudassar Ali Khan (3)
Abhimanyu K Vatsa (3)
Vitalii Honcharuk (3)
Sandeep Singh Shekhawat (2)
George (1)
Omar Rodriguez (1)
Mayooran Navamany (1)
Arpit Shrivastava (1)
Mukesh Kumar (1)
Tural Suleymani (1)
Darshan Adakane (1)
Hari Lakkakula (1)
Ehsan Sajjad (1)
Munesh Sharma (1)
Chethan N (1)
Guest User (1)
Avnish Kumar (1)
Ajay Kumar (1)
Ganesh Shevate (1)
Dinesh Gabhane (1)
Sachin Kalia (1)
Abhishek Arora (1)
Dipak Talaviya (1)
Related resources for DbContext
No resource found
DbContext Register and Lifetime
12/5/2024 6:22:08 PM.
This article discusses DbContext and its lifetime
Creating a CQRS Architecture in .NET Core 8
11/4/2024 7:29:08 AM.
This guide outlines a practical implementation of the CQRS (Command Query Responsibility Segregation) architecture using C# and MediatR, emphasizing the separation of read and write operations for bet
Dependency Injection & EF Migrations in ASP.NET MVC with Autofac
10/30/2024 8:29:43 AM.
This article demonstrates how to implement Dependency Injection (DI) using Autofac in an ASP.NET MVC application and integrate Entity Framework for database operations, including migrations.
Create a Model with Database Table in .NET 8 using EF Core
10/28/2024 7:16:12 AM.
This article guides you through creating a data-driven application using .NET 8 and Entity Framework Core. You'll learn to define a model, configure a DbContext, set up a SQL Server connection str
Nested Collection Models in MVC to Add Multiple Phone Numbers - Part 1
9/27/2024 10:08:34 AM.
This article explains how to create an MVC application using the Nested Model concept, allowing users to add or remove multiple phone numbers for an employee. It covers database setup, model creation,
In-Memory Databases- Unit Testing With C#, EFCore and XUnit
9/18/2024 12:13:03 PM.
Learn to unit test EF Core repositories using an in-memory database with C# and xUnit. This approach simulates database operations without overhead, ensuring fast and isolated tests. Set up involves i
Entity Framework Core Feature - Global Query Filters
9/12/2024 5:59:39 AM.
Learn how to implement Global Query Filters in Entity Framework to apply automatic filters at the model level. This feature is commonly used for scenarios like soft delete and multi-tenancy, ensuring
CRUD Operations Unit Testing In ASP.NET Core Web API With xUnit
7/30/2024 5:54:17 AM.
This article will demonstrate how to write Unit Test Cases for CRUD operations in Asp.Net Core Web API with the xUnit project. In this demonstration, we will write the Unit Test Cases for CRUD (CREATE
Practical approach to EF Core with Scalar functions
7/21/2024 6:32:25 PM.
Learn how to implement and migrate scalar SQL functions in an ASP.NET Core application using Entity Framework Core. This guide covers creating a scalar function to calculate total unit prices, integra
Using EF Core to Scaffold DbContext and Models from Existing Database Tables
7/12/2024 8:14:08 PM.
In this article, we will see how using Scaffolding we can generate database context (DbContext) class for database and model of entities in that database's table. We will be using MS SQL Server as
Understanding CQRS Design Pattern
6/27/2024 5:05:00 AM.
The CQRS (Command Query Responsibility Segregation) pattern separates the operations for reading and writing data in software architecture. It enhances scalability by segregating commands (writes) and
Implementing Repository Pattern And Dependency Injection In ADO.NET Using Generics In C#
6/4/2024 9:49:21 AM.
Learn how to implement design patterns in an object-oriented paradigm to create generic solutions. This guide covers a practical example where a web application interacts with a database using the rep
Working With Change Tracking Proxy in Entity Framework 6.0
5/17/2024 10:21:30 AM.
In this article, you will learn about Proxy Objects, ObjectStateManager, and EntityState to leverage advanced tracking features for data manipulation and performance optimization in your .NET applicat
CRUD Operations Using Entity Framework 5.0 Code First Approach in MVC
5/9/2024 11:56:39 AM.
Perform CRUD operations in MVC using Entity Framework 5.0's Code First approach. Define entity classes, utilize DbContext and LINQ for data access, and generate views and controllers with scaffold
Stored Procedures With Entity Framework
5/8/2024 9:54:50 AM.
Stored procedures in Entity Framework offer a way to execute database logic from within your .NET application. Utilize EF's capabilities to map and execute stored procedures efficiently, enhancing
Inject a DbContext Instance Into BackgroundService in .NET Core
5/5/2024 8:28:55 AM.
In this article, Learn how to inject and use a DbContext instance within a BackgroundService in .NET Core. Utilize dependency injection to access database operations from a background task, ensuring p
Code First Migrations With Entity Framework
4/30/2024 9:39:59 AM.
This article will provide answers to the following questions relevant to relationships in Entity Framework: whether or not to create a database, how to add / remove a field from an existing table, how
Shadow Properties In Entity Framework Core
3/7/2024 11:32:17 AM.
Entity framework core added many new features that are already present in older entity framework versions. One of the features of the Entity framework core is "Shadow Properties". The featur
Code First Approach in Entity Framework
3/7/2024 11:28:21 AM.
This content provides a comprehensive guide on implementing Entity Framework's code-first approach in ASP.NET MVC applications. It begins with an introduction to Entity Framework, highlighting its
Creating A CRUD With ASP.NET Core And EF Core
2/28/2024 11:41:41 AM.
Entity Framework Core (EF) is an ORM that makes it simpler to work with database by using POCO classes that map to database entities and DbContext to interact with them.
Build ASP.NET Core API Using Existing Database
2/28/2024 10:16:53 AM.
I’m sharing a short overview of Asp.NET Core. The journey of .NET Core started with the purpose of Microsoft to build a common .NET base library that provides a common foundation to all its platforms.
Common Implementation Mistakes of Work Pattern in C#
2/7/2024 9:15:44 AM.
Exploring common mistakes in implementing the Unit of Work pattern in C# development. Examples include overcomplicating the class, incorrect transaction management, and lacking exception handling.
Lazy Loading In ASP.NET Core 7 Web API
1/22/2024 9:09:14 AM.
ASP.NET Core 7 Web API. Lazy loading is a technique where related data is only loaded from the database when it is explicitly requested. In Entity Framework Core, lazy loading can be achieved by marki
Eager Loading In ASP.NET Core Web API Complete Example
1/22/2024 8:52:34 AM.
In ASP.NET Core, eager loading is a technique used to load related data along with the main entity in a single database query. This helps to optimize performance by reducing the number of database cal
ObjectContext VS DBContext
12/23/2022 5:46:54 AM.
ObjectContext and DbContext has capability to querying and working with data as objects.
How To Use Stored Procedure By Getting Database Connection Using DbContext In Repository
7/9/2022 9:30:13 AM.
Sometimes we need to create API/s and perform custom operation with database where we can perform create, insert, update and delete on entity/ties or table/s according to our requirement. Then we can
Entity Framework - DbContext
3/26/2022 3:51:51 AM.
DbContext is the most important part in Entity Framework. There are many articles on Entity Framework and very small information on DbContext at a single place. In this article I am trying to explain
Advanced Entity Framework Core: Extract data access layer with migrations to the library project and Execute migrations from the command line
1/11/2022 3:14:14 AM.
See code examples in this article: Let's imagine you have a solution with many projects including a web application with the name "MiniService", which contains appsettings.json and
Advanced Entity Framework Core - Output EF SQL Queries To The Console And Tips To Setup Dbcontext With The Development In Mind
1/11/2022 3:12:51 AM.
When you work with abstractions over SQL Database you may be wondering what does Entity Framework constructs from your Linq queries. To get a clue on it here are 3 options. Tips to setup DbContext wit
Advanced Entity Framework Core Tips In Practice: DbContext separation, Fluent API and Entities configuration
1/11/2022 3:12:18 AM.
I am describing the practical aspects of working with Entity Framework Core. In this part, I am touching DbContext separation, Fluent API and Entities configuration.
Dependency Injection in MVC 3 Using Constructor Injection in Unity
5/25/2021 11:22:28 AM.
This article which is about dependency injection after initializing the DBContext object.
Introduction to ASP.Net Identity 2.0
4/12/2021 5:48:53 AM.
ASP.NET Identity is the membership system for authentication and authorization of the users by building an ASP.NET application.
Spatial Data Type Support in Entity Framework 5
1/1/2021 9:59:28 AM.
Entity Framework 5 brings many improvements and Spatial Data Type Support in Code First and Model Designer is one of them.
Entity Framework and AsNoTracking
11/9/2020 5:37:16 AM.
This article explains Entity Framework based applications and DbContext / Object Context that are responsible for tracking the changes done in the objects,
Binding Data To Dropdown List In ASP.NET Core MVC Web Application
5/14/2020 8:47:58 AM.
In this article I will explain how to populate dropdown list from database values
Creating User Registration Form In ASP.NET Core MVC Web Application
5/13/2020 8:30:29 AM.
In this article I will explain how to create a user registration form in ASP.NET Core MVC application
Displaying a Customers List Inside an ASP.NET Core 3.0 Razor Pages Web Application
4/4/2020 2:49:42 PM.
In this article, we will be displaying a list of all of the customers from the database.
Adding Roles to Registration Razor Page in ASP.NET Core
3/28/2020 9:08:26 AM.
In this article, we will be creating different roles for our application.
Registration Razor Page in ASP.NET Core Razor Pages Web Application
3/26/2020 9:05:02 PM.
In this article, we will be working on registration page of the ASP.NET Core razor page web application.
Creating Page Model And Performing CRUD Operations In ASP.NET Core 3 Razor Pages
3/16/2020 9:31:24 AM.
In this article, you will learn how to create Page Model and Performing CRUD Operations in ASP.NET Core 3 Razor Pages.
Creating a Model and Database in ASP.NET Core Razor Pages Using Entity Framework Core
3/12/2020 5:31:57 PM.
In this article, you will learn how to create model and DbContext objects in ASP.Net Core razor pages using entity framework along with migrations.
Call Stored Procedure From ASP.NET MVC Controller
3/12/2018 4:42:44 AM.
7 steps easy video tutorial for calling stored procedure in MVC.
Discard Changes Without Disposing DbContext/ObjectContext in Entity Framework 6
7/11/2014 4:32:13 PM.
This article helps you to understand how to discard the changes from DbContext or ObjectContext.
Insert Data - DbContext Generator Template
2/13/2013 12:24:17 PM.
This article demonstrates an interesting and very useful concept in Entity Framework.
Select Data - DbContext Generator Template
2/13/2013 12:20:25 PM.
This article demonstrates an interesting and very useful concept in Entity Framework.
Update Data - DbContext Generator Template
2/13/2013 12:19:24 PM.
This article demonstrates an interesting and very useful concept in Entity Framework.
Delete Data - DbContext Generator Template
2/12/2013 1:06:13 PM.
This article demonstrates one of the interesting and very useful concepts in Entity Framework.