Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using LINQ to SQL to get data from database. I am storing LINQ object in Session to use it later in the process. Get the object during Page_Load event and store it in Session variable and reuse it during other processing. I am resetting Session variable to null after processing finish. I am not actually updating this object.

C#
DAL.BuilderMaster objBM = (DAL.BuilderMaster)Session["selectedPOBM"];


Is it a good idea to keep LINQ object in Session to reuse ?
Should I create separate DTO class with same properties as LINQ class to hold values of LINQ object and store that in Session ?
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900