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