Search | View Active Threads | View New Posts
Current Time: 06:00 PM

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2016
    Location
    Delhi
    Posts
    38

    Thumbs up What is data context class? Explain its role?

    Data context class is a LINQ to SQL class that acts as a medium between a SQL server database and LINQ to SQL entities classes mapped to that database. It has following responsibilities:

    1. Contains the connection string information, methods to connect to the database and manipulating the data in the database.
    2. Contains several methods that send updated data from LINQ to SQL entity classes to the database.
    3. Methods can also be mapped to stored procedures and functions.
    4. With data context, we can perform select, insert, update and delete operations over the data in the database.

  2. #2
    Join Date
    Mar 2019
    Posts
    36
    The context class in Entity Framework is a class which derives from DbContext in EF 6 and EF Core both. It is an important class in Entity Framework, which represents a session with the underlying database. ... The context class is used to query or save data to the database.

  3. #3

    seo

    The Data Context class is the top level EF object, the one that contains all your collections of entities that map to tables in the database. The controller needs to be able to access this so that it can perform CRUD operations

  4. #4
    Join Date
    Apr 2019
    Posts
    93
    The DataContext is the source of all entities mapped over a database connection.
    A typical LINQ to SQL application creates DataContext instances at method scope or as a member of short-lived classes that represent a logical set of related database operations.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  

Sponsors

Trellian Direct Search Network
Above.com Domain Registrar, Marketplace and Revenue Optimizer
Domain Escrow Services

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
LeadsCon
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL

Poll

How do you invest in domains?
to see the Poll results!
DomainState.com
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services:
Above.com Registrar  |  Above.com Marketplace  |  Above.com Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 DomainState.com a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association