title: Whats the Good Practice of Possible Linq Result Data Storage to be used Globally within Solution
body: <p>How do i do this the proper way legit code. like if it do a linq query within using and the result is i want it to use on another different bracket of using another call of linq query</p>
  <p>if i store it i could declare a pre define var neither can i use a class constructor method.
  what is the proper way to do this that i may able to use it on maybe different modules or different function / method without again doing the same call over in every method.</p>
  <p>Hope i made it clear what i want.</p>
  <pre><code>var globalstorage;
  
  using (Si360DbContext _si360DbContext = new Si360DbContext())
              {
                  var selectedItems = _si360DbContext.SaleDumpDetails
                  .Where(sd =&gt; sd.SaleID == saleid)
                  .Select(i =&gt; i.SaleItemID).ToList();
  
                  //Store data..
                  globalstorage = selectedItems;
              }
  
  // able to reuse it else where having the same data stored on it.
  globalstorage 
  
  </code></pre>