Question persist object data in C# .net core without static keyword or session

dipak10494

New member
Joined
Oct 15, 2021
Messages
1
Programming Experience
Beginner
I am trying to make a object that would suppose to persist data like Name, Standard etc. Once I get the data from db i want to store it to object and want to use it application wide, i tried with DI, but data is not persist, it becomes null.
 
You mention "session". Does that mean that this is an ASP.NET app? If so then you should have posted in the forum dedicated to that. ALWAYS post in the most appropriate forum for the topic - not just the one that seems easiest - and also provide a FULL and CLEAR explanation of the problem. Please provide the additional information now, which includes the relevant code, and I will move this thread to the appropriate forum and we can then address the issue.
 

Latest posts

Back
Top Bottom