Link to home
Start Free TrialLog in
Avatar of B_Pati
B_Pati

asked on

Asp.Net Store Application Data temporarily before sending to Database.

Hi Experts,
I have 4 Web forms in my Application
Ex: Patients Object
4 form display info like patientsInfo,Insurance Details,Billing Details etc which are editable.

My requirement is to collect information from each page ,save temporarily in the application
and in the final page save all the cached data to the Database.

This way we wanted to  avoid doing a save to database in each page & instead do it all at once in the final step to reduce Database hits.

Do i need to use any state management techniques like caching or session state , save the object in session state and finally collect all the data and save it to database.
 
Are  there any better techniques. to  this .Please advice.
 

Thanks.
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

You can store this data in session state but it will be lost if the user remains inactive for session to timeout or if user logs out etc. If the requirement is to save this data temporarily across sessions, then you would need to use database.
Avatar of B_Pati
B_Pati

ASKER

Hi Crusier,
Thanks for the reply ,  We don't want to hit database regularly for each page,  what are the other options you recomend to save data temporarily.
Will any of Linq to Entities or Linq to data Set help me achieve this task.
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial