11#nullable enable
22
3+ using System ;
34using System . Collections . Generic ;
45using System . IO ;
56using ServiceStack ;
67using ServiceStack . DataAnnotations ;
8+ using Test . ServiceModel . Types ;
79
810namespace Test . ServiceModel ;
911
@@ -100,4 +102,28 @@ public class TestFileUploadsResponse
100102 public string ? RefId { get ; set ; }
101103 public List < UploadInfo > Files { get ; set ; } = [ ] ;
102104 public ResponseStatus ? ResponseStatus { get ; set ; }
103- }
105+ }
106+
107+ public class TestUploadWithDto : IPost , IReturn < TestUploadWithDto >
108+ {
109+ public int Int { get ; set ; }
110+ public int ? NullableId { get ; set ; }
111+ public long Long { get ; set ; }
112+ public double Double { get ; set ; }
113+ public string String { get ; set ; }
114+ public DateTime DateTime { get ; set ; }
115+
116+ public int [ ] ? IntArray { get ; set ; }
117+ public List < int > ? IntList { get ; set ; }
118+ public string [ ] ? StringArray { get ; set ; }
119+ public List < string > ? StringList { get ; set ; }
120+ public Poco [ ] ? PocoArray { get ; set ; }
121+ public List < Poco > ? PocoList { get ; set ; }
122+ public byte ? [ ] ? NullableByteArray { get ; set ; }
123+ public List < byte ? > ? NullableByteList { get ; set ; }
124+ public DateTime ? [ ] ? NullableDateTimeArray { get ; set ; }
125+ public List < DateTime ? > ? NullableDateTimeList { get ; set ; }
126+ public Dictionary < string , List < Poco > > ? PocoLookup { get ; set ; }
127+ public Dictionary < string , List < Dictionary < string , Poco > > > ? PocoLookupMap { get ; set ; }
128+ public Dictionary < string , List < string > > ? MapList { get ; set ; }
129+ }
0 commit comments