Skip to content

Commit bd99a48

Browse files
committed
Update Add ServiceStack Reference DTO Options headers
1 parent 65f4948 commit bd99a48

12 files changed

+87
-53
lines changed

MyApp/_pages/csharp-add-servicestack-reference.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,52 +44,64 @@ The header comments in the generated DTOs allows for further customization of ho
4444

4545
```csharp
4646
/* Options:
47-
Date: 2015-10-07 11:01:27
48-
Version: 4.046
47+
Date: 2025-06-04 09:45:54
48+
Version: 8.80
49+
Tip: To override a DTO option, remove "//" prefix before updating
4950
BaseUrl: https://blazor-vue.web-templates.io
5051
5152
//GlobalNamespace:
5253
//MakePartial: True
5354
//MakeVirtual: True
55+
//MakeInternal: False
5456
//MakeDataContractsExtensible: False
57+
//AddNullableAnnotations: False
5558
//AddReturnMarker: True
5659
//AddDescriptionAsComments: True
5760
//AddDataContractAttributes: False
5861
//AddIndexesToDataMembers: False
5962
//AddGeneratedCodeAttributes: False
6063
//AddResponseStatus: False
6164
//AddImplicitVersion:
62-
//InitializeCollections: True
65+
//InitializeCollections: False
66+
//ExportValueTypes: False
6367
//IncludeTypes:
6468
//ExcludeTypes:
69+
//AddNamespaces:
6570
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
6671
*/
6772
```
73+
6874
To override these options on the client, the `//` has to be removed. For example, if we did not want our classes to be partial by default for the C# client, our options would look like below:
6975

7076
```csharp
7177
/* Options:
72-
Date: 2015-10-07 11:01:27
73-
Version: 4.046
78+
Date: 2025-06-04 09:46:15
79+
Version: 8.80
80+
Tip: To override a DTO option, remove "//" prefix before updating
7481
BaseUrl: https://blazor-vue.web-templates.io
7582
7683
//GlobalNamespace:
7784
MakePartial: False
7885
//MakeVirtual: True
86+
//MakeInternal: False
7987
//MakeDataContractsExtensible: False
88+
//AddNullableAnnotations: False
8089
//AddReturnMarker: True
8190
//AddDescriptionAsComments: True
8291
//AddDataContractAttributes: False
8392
//AddIndexesToDataMembers: False
8493
//AddGeneratedCodeAttributes: False
8594
//AddResponseStatus: False
8695
//AddImplicitVersion:
87-
//InitializeCollections: True
96+
//InitializeCollections: False
97+
//ExportValueTypes: False
8898
//IncludeTypes:
8999
//ExcludeTypes:
100+
//AddNamespaces:
90101
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
91102
*/
92103
```
104+
93105
Options that do not start with a `//` are sent to the server to override any defaults set by the server.
94106

95107
### Change Default Server Configuration

MyApp/_pages/dart-add-servicestack-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,10 @@ to override any server defaults.
887887

888888
```dart
889889
/* Options:
890-
Date: 2018-05-01 08:09:24
891-
Version: 5.10
890+
Date: 2025-06-04 09:48:37
891+
Version: 8.80
892892
Tip: To override a DTO option, remove "//" prefix before updating
893-
BaseUrl: https://techstacks.io
893+
BaseUrl: https://blazor-vue.web-templates.io
894894
895895
//GlobalNamespace:
896896
//AddServiceStackTypes: True
@@ -899,7 +899,7 @@ BaseUrl: https://techstacks.io
899899
//AddDescriptionAsComments: True
900900
//IncludeTypes:
901901
//ExcludeTypes:
902-
//DefaultImports: package:servicestack/client.dart
902+
//DefaultImports: package:servicestack/servicestack.dart
903903
*/
904904
```
905905

MyApp/_pages/fsharp-add-servicestack-reference.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ The header comments in the generated DTO's allows for further customization of h
6868

6969
```fsharp
7070
(* Options:
71-
Date: 2014-10-21 00:45:38
72-
Version: 1
71+
Date: 2025-06-04 09:53:35
72+
Version: 8.80
73+
Tip: To override a DTO option, remove "//" prefix before updating
7374
BaseUrl: https://blazor-vue.web-templates.io
7475
76+
//GlobalNamespace:
7577
//MakeDataContractsExtensible: False
7678
//AddReturnMarker: True
7779
//AddDescriptionAsComments: True
@@ -80,9 +82,10 @@ BaseUrl: https://blazor-vue.web-templates.io
8082
//AddGeneratedCodeAttributes: False
8183
//AddResponseStatus: False
8284
//AddImplicitVersion:
85+
//ExportValueTypes: False
8386
//IncludeTypes:
8487
//ExcludeTypes:
85-
//InitializeCollections: True
88+
//InitializeCollections: False
8689
//AddNamespaces:
8790
*)
8891
```

MyApp/_pages/java-add-servicestack-reference.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,23 @@ Like other Native Type languages, the generated DTO's can be further customized
8686

8787
```
8888
/* Options:
89-
Date: 2015-04-17 15:16:08
90-
Version: 1
91-
BaseUrl: https://techstacks.io
89+
Date: 2025-06-04 09:52:41
90+
Version: 8.80
91+
Tip: To override a DTO option, remove "//" prefix before updating
92+
BaseUrl: https://blazor-vue.web-templates.io
9293
93-
Package: org.layoric.myapplication
94-
GlobalNamespace: techstackdtos
94+
//Package:
95+
//GlobalNamespace: dtos
9596
//AddPropertyAccessors: True
9697
//SettersReturnThis: True
9798
//AddServiceStackTypes: True
9899
//AddResponseStatus: False
100+
//AddDescriptionAsComments: True
99101
//AddImplicitVersion:
100102
//IncludeTypes:
101103
//ExcludeTypes:
102-
//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*
104+
//TreatTypesAsStrings:
105+
//DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*
103106
*/
104107
...
105108
```

MyApp/_pages/javascript-add-servicestack-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ to override any server defaults.
155155

156156
```js
157157
/* Options:
158-
Date: 2023-02-08 13:13:28
159-
Version: 6.60
158+
Date: 2025-06-04 09:52:13
159+
Version: 8.80
160160
Tip: To override a DTO option, remove "//" prefix before updating
161-
BaseUrl: https://blazor.web-templates.io
161+
BaseUrl: https://blazor-vue.web-templates.io
162162
163163
//AddServiceStackTypes: True
164164
//AddDocAnnotations: True

MyApp/_pages/kotlin-add-servicestack-reference.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,21 @@ Like other Native Type languages, the generated DTO's can be further customized
153153

154154
```
155155
/* Options:
156-
Date: 2015-04-17 15:16:08
157-
Version: 1
158-
BaseUrl: https://techstacks.io
156+
Date: 2025-06-04 09:53:03
157+
Version: 8.80
158+
Tip: To override a DTO option, remove "//" prefix before updating
159+
BaseUrl: https://blazor-vue.web-templates.io
159160
160-
Package: org.layoric.myapplication
161-
GlobalNamespace: techstackdtos
162-
//AddPropertyAccessors: True
163-
//SettersReturnThis: True
161+
//Package:
164162
//AddServiceStackTypes: True
165163
//AddResponseStatus: False
166164
//AddImplicitVersion:
165+
//AddDescriptionAsComments: True
167166
//IncludeTypes:
168167
//ExcludeTypes:
169-
//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*
168+
//InitializeCollections: False
169+
//TreatTypesAsStrings:
170+
//DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*
170171
*/
171172
...
172173
```

MyApp/_pages/php-add-servicestack-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ This will import the remote Services dtos into your local project which looks si
455455
```php
456456
<?php namespace dtos;
457457
/* Options:
458-
Date: 2023-10-14 08:05:09
459-
Version: 6.111
458+
Date: 2025-06-04 09:50:43
459+
Version: 8.71
460460
Tip: To override a DTO option, remove "//" prefix before updating
461461
BaseUrl: https://techstacks.io
462462

MyApp/_pages/python-add-servicestack-reference.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,12 @@ This will import the remote Services dtos into your local project which looks si
364364

365365
```python
366366
""" Options:
367-
Date: 2021-08-14 15:33:39
368-
Version: 5.111
369-
Tip: To override a DTO option, remove "//" prefix before updating
367+
Date: 2025-06-04 09:49:40
368+
Version: 8.71
369+
Tip: To override a DTO option, remove "#" prefix before updating
370370
BaseUrl: https://techstacks.io
371371
372372
#GlobalNamespace:
373-
#MakePropertiesOptional: False
374373
#AddServiceStackTypes: True
375374
#AddResponseStatus: False
376375
#AddImplicitVersion:

MyApp/_pages/swift-add-servicestack-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ The header comments in the generated DTO's allows for further customization of h
162162

163163
```swift
164164
/* Options:
165-
Date: 2024-11-28 10:23:42
165+
Date: 2025-06-04 09:51:09
166166
SwiftVersion: 6.0
167-
Version: 8.51
167+
Version: 8.80
168168
Tip: To override a DTO option, remove "//" prefix before updating
169-
BaseUrl: https://techstacks.io
169+
BaseUrl: https://blazor-vue.web-templates.io
170170
171171
//BaseClass:
172172
//AddModelExtensions: True

MyApp/_pages/typescript-add-servicestack-reference.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ This will import the remote Services dtos into your local project which looks si
273273

274274
```ts
275275
/* Options:
276-
Date: 2016-08-11 22:23:24
277-
Version: 4.061
276+
Date: 2025-06-04 09:47:09
277+
Version: 8.71
278278
Tip: To override a DTO option, remove "//" prefix before updating
279279
BaseUrl: https://techstacks.io
280280
281281
//GlobalNamespace:
282-
//MakePropertiesOptional: True
282+
//MakePropertiesOptional: False
283283
//AddServiceStackTypes: True
284284
//AddResponseStatus: False
285285
//AddImplicitVersion:
@@ -290,19 +290,24 @@ BaseUrl: https://techstacks.io
290290
*/
291291

292292
// @Route("/technology/{Slug}")
293-
export class GetTechnology implements IReturn<GetTechnologyResponse>
293+
export class GetTechnology implements IReturn<GetTechnologyResponse>, IRegisterStats, IGet
294294
{
295-
Slug: string;
296-
createResponse() { return new GetTechnologyResponse(); }
297-
getTypeName() { return "GetTechnology"; }
295+
public slug: string;
296+
297+
public constructor(init?: Partial<GetTechnology>) { (Object as any).assign(this, init); }
298+
public getTypeName() { return 'GetTechnology'; }
299+
public getMethod() { return 'GET'; }
300+
public createResponse() { return new GetTechnologyResponse(); }
298301
}
299302

300303
export class GetTechnologyResponse
301304
{
302-
Created: string;
303-
Technology: Technology;
304-
TechnologyStacks: TechnologyStack[];
305-
ResponseStatus: ResponseStatus;
305+
public created: string;
306+
public technology: Technology;
307+
public technologyStacks: TechnologyStack[];
308+
public responseStatus: ResponseStatus;
309+
310+
public constructor(init?: Partial<GetTechnologyResponse>) { (Object as any).assign(this, init); }
306311
}
307312
```
308313

MyApp/_pages/v10-upgrade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Breaking Changes
2+
3+
- Enable C# AddNullableAnnotations by default
4+
- Switch OrmLite with new configuration
5+
- Always use JSON Serializer, consider STJ?

MyApp/_pages/vbnet-add-servicestack-reference.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ The header comments in the generated DTO's allows for further customization of h
5454

5555
```vb
5656
' Options:
57-
'Date: 2014-10-21 00:45:05
58-
'Version: 1
57+
'Date: 2025-06-04 09:53:47
58+
'Version: 8.80
59+
'Tip: To override a DTO option, remove "''" prefix before updating
5960
'BaseUrl: https://blazor-vue.web-templates.io
6061
'
62+
'''GlobalNamespace:
6163
'''MakePartial: True
6264
'''MakeVirtual: True
6365
'''MakeDataContractsExtensible: False
@@ -68,7 +70,11 @@ The header comments in the generated DTO's allows for further customization of h
6870
'''AddGeneratedCodeAttributes: False
6971
'''AddResponseStatus: False
7072
'''AddImplicitVersion:
71-
'''InitializeCollections: True
73+
'''InitializeCollections: False
74+
'''ExportValueTypes: False
75+
'''IncludeTypes:
76+
'''ExcludeTypes:
77+
'''AddNamespaces:
7278
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
7379
```
7480

0 commit comments

Comments
 (0)