Skip to content

Commit 9581f81

Browse files
Fix LoadCollection definition
1 parent e37a68b commit 9581f81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRestServices.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ internal void Initialize()
100100
return null;
101101
}
102102
}
103-
protected void LoadCollection<T>(GxGenericCollection<GxGenericCollectionItem<T>> restModel, GXBaseCollection<T> internalModel) where T : GxUserType, new()
103+
protected void LoadCollection<X, T>(GxGenericCollection<X> restModel, GXBaseCollection<T> internalModel) where T : GxUserType, new()
104+
where X : new()
104105
{
105106
if (restModel != null)
106107
{
107108
restModel.LoadCollection(internalModel);
108-
foreach(GxUserType item in internalModel)
109+
foreach (GxUserType item in internalModel)
109110
{
110111
item.Localize(context);
111112
item.context = context;

0 commit comments

Comments
 (0)