diff --git a/Common/dataobjects/PostLayer.cs b/Common/dataobjects/PostLayer.cs index 8571999..3a38715 100644 --- a/Common/dataobjects/PostLayer.cs +++ b/Common/dataobjects/PostLayer.cs @@ -53,10 +53,10 @@ namespace FLocal.Common.dataobjects { public static IEnumerable allLayers { get { return - from id in Cache>.instance.get( + from id in Cache>.instance.get( allLayers_Locker, () => { - IEnumerable ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions( + List ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions( TableSpec.instance, new FLocal.Core.DB.conditions.EmptyCondition(), Diapasone.unlimited diff --git a/Common/dataobjects/PunishmentType.cs b/Common/dataobjects/PunishmentType.cs index 06f3bdb..0951f31 100644 --- a/Common/dataobjects/PunishmentType.cs +++ b/Common/dataobjects/PunishmentType.cs @@ -78,10 +78,10 @@ namespace FLocal.Common.dataobjects { public static IEnumerable allTypes { get { return - from id in Cache>.instance.get( + from id in Cache>.instance.get( allTypes_Locker, () => { - IEnumerable ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions( + List ids = (from stringId in Config.instance.mainConnection.LoadIdsByConditions( TableSpec.instance, new FLocal.Core.DB.conditions.EmptyCondition(), Diapasone.unlimited diff --git a/Common/dataobjects/Skin.cs b/Common/dataobjects/Skin.cs index 7a6ea07..471295f 100644 --- a/Common/dataobjects/Skin.cs +++ b/Common/dataobjects/Skin.cs @@ -38,14 +38,14 @@ namespace FLocal.Common.dataobjects { public static IEnumerable allSkins { get { return - from id in Cache>.instance.get( + from id in Cache>.instance.get( allSkins_Locker, () => { - IEnumerable ids = from stringId in Config.instance.mainConnection.LoadIdsByConditions( + List 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; }