What is dbcontext and dbset in entity framework?
Answer / Pappu Kumar
dbContext represents the primary unit of work, encapsulating the database connection, database queries, change tracking, concurrency management, and other services. It acts as a factory for DbSet instances, where each DbSet instance represents a different type of entities managed by Entity Framework. For example, in C#, a typical dbContext might look like this: public class MyDbContext : DbContext {n public virtual DbSet<MyEntity> MyEntities {n get; set;n }n}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of SqlCommandBuilder?
feature of ADO.Net
What are the major difference between classic ADO and ADO.NET?
What is difference between entity framework and ado.net?
What is difference between connected and disconnected architecture in ado.net?
What provider ADO.net use by default ?
5 Answers Accenture, BirlaSoft, Wipro,
What are the different ado.net namespaces are available in .net?
Explain sqlconnection object?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
Does sqlclient and oledb class share the same functionality?
What is the use of Dataview?
What is aggregate root?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)