|
|
|
@ -38,14 +38,14 @@ namespace FLocal.Common.dataobjects { |
|
|
|
|
public static IEnumerable<Skin> allSkins { |
|
|
|
|
get { |
|
|
|
|
return |
|
|
|
|
from id in Cache<IEnumerable<int>>.instance.get( |
|
|
|
|
from id in Cache<List<int>>.instance.get( |
|
|
|
|
allSkins_Locker, |
|
|
|
|
() => { |
|
|
|
|
IEnumerable<int> ids = from stringId in Config.instance.mainConnection.LoadIdsByConditions( |
|
|
|
|
List<int> ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions( |
|
|
|
|
TableSpec.instance, |
|
|
|
|
new FLocal.Core.DB.conditions.EmptyCondition(), |
|
|
|
|
Diapasone.unlimited |
|
|
|
|
) select int.Parse(stringId); |
|
|
|
|
) select int.Parse(stringId)).ToList(); |
|
|
|
|
Skin.LoadByIds(ids); |
|
|
|
|
return ids; |
|
|
|
|
} |
|
|
|
|