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.
I am new to c# and I need to store many custom values maybe as an object? I am used to JavaScript, the following code does that what I want in JS, but I dont know how to do the same in c#:
var exampleObject = {
"playerScored":true,
"goalCount": 5,
"playerInfo": {
"name": "Manuel...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.