What is context
Loading
What is context
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mariusz PostolPosted Jul 24, 2024, 8:47 AM
@Jaimin Shethiya DbContext is tightly coupled with the session established with the database. For me, there are two important points "Connect" and "Disconnect". You haven't mentioned it. The context for interoperability with the database is session as @Sam Hobbs said: "The surroundings, circumstances, environment, background or settings ...". In this case communication parameters (location, protocols, timing details, etc) and credentials (to name only associated with the ConnectionString). I believe that this topic needs independent publication.
Sam HobbsPosted Apr 10, 2024, 7:44 PM
@Jaimin I am hoping that members will learn how to help us to help them. Quite often in these forums questions are very vague. When the person asking for help spends very little time asking the question it uses up more of the time of those trying to help.
Jaimin ShethiyaPosted Apr 9, 2024, 5:58 AM
@Sam that is not mention here,
So you have added general context so I am adding here DbCOntext
Sam HobbsPosted Apr 9, 2024, 5:56 AM
Are you asking about the
DbContextclass?DbContextis highly specific. The word context is general. If you were to have asked about theDbContextclass then I would have provided my understanding of theDbContextclass that does not sound like documentation.Jaimin ShethiyaPosted Apr 9, 2024, 5:49 AM
Hello Srilekha,
DbContext is a crucial class in Entity Framework (EF), acting as a bridge between your domain or entity classes and the database. Let’s delve into its purpose and functionality:
public class YourDbContext : DbContext
{
}
In summary, DbContext facilitates seamless interaction between your application and the database, making it a fundamental component when working with Entity Framework.
Sam HobbsPosted Apr 9, 2024, 2:57 AM