Skip to content

Commit 9f29009

Browse files
claudiamurialdoBeta Bot
authored and
Beta Bot
committed
Cherry pick branch 'genexuslabs:fix/rest-context-timezone' into beta
1 parent 7bcdfea commit 9f29009

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ internal void Initialize()
9999
return null;
100100
}
101101
}
102+
protected void LoadCollection<T>(GxGenericCollection<GxGenericCollectionItem<T>> restModel, GXBaseCollection<T> internalModel) where T : GxUserType, new()
103+
{
104+
if (restModel != null)
105+
{
106+
restModel.LoadCollection(internalModel);
107+
foreach(var item in internalModel)
108+
{
109+
item.Localize(context);
110+
}
111+
}
112+
}
102113
protected void Cleanup()
103114
{
104115
if (runAsMain)

dotnet/src/dotnetframework/GxClasses/Model/GXSilentTrn.cs

+3
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,14 @@ public GxUserType Sdt
731731
get { return sdt1; }
732732
set { sdt1 = (T)value; }
733733
}
734+
#if NETCORE
735+
[JsonIgnore]
734736
public T InternalSdt
735737
{
736738
get { return sdt1; }
737739
set { sdt1 = value; }
738740
}
741+
#endif
739742

740743
#if NETCORE
741744
[JsonIgnore]

0 commit comments

Comments
 (0)