Torna al Thread

public IList<PropertyUtente> GetLista() { IList<PropertyUtente> lst = Cache["result"] as IList<PropertyUtente>; while (lst == null) { initLista(); // in questo metodo ci sarà del codice che prende la lista dal db e la inserisce in cache lst = Cache["result"] as IList<PropertyUtente>; } return lst; }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5