generated from Avanade/avanade-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathntangle.json
737 lines (737 loc) · 34.5 KB
/
ntangle.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
{
"title": "NTangle - https://github.com/Avanade/ntangle",
"$schema": "https://json-schema.org/draft-04/schema#",
"definitions": {
"Root": {
"type": "object",
"title": "The \u0060Root\u0060 object (database-driven)",
"description": "The \u0060RootConfig\u0060 object defines the global properties that are used to drive the underlying database-driven CDC-oriented code-generation.",
"properties": {
"schema": {
"type": "string",
"title": "The default \u0060Schema\u0060 name where the existing tables are defined within the database.",
"description": "This is used as the default \u0060Schema\u0060 for all child objects. Defaults to \u0060dbo\u0060 (literal)."
},
"cdcSchema": {
"type": "string",
"title": "The schema name for the _ntangle_ generated \u0060CDC\u0060-related database artefacts.",
"description": "Defaults to \u0060NTangle\u0060 (literal)."
},
"cdcSchemaCreate": {
"type": "boolean",
"title": "Indicates whether to create the \u0060CdcSchema\u0060 within the database.",
"description": "Defaults to \u0060false\u0060."
},
"versionTrackingTable": {
"type": "string",
"title": "The table name for the \u0060Cdc\u0060-VersionTracking.",
"description": "Defaults to \u0060VersionTracking\u0060 (literal)."
},
"cdcEnable": {
"type": "boolean",
"title": "Indicates whether to enable \u0060Cdc\u0060 within the database for the tables that participate.",
"description": "Defaults to \u0060false\u0060. This option can be overridden for each underlying table referenced."
},
"identifierMapping": {
"type": "boolean",
"title": "Indicates whether to include the generation of the generic \u0060CDC\u0060-IdentifierMapping database capabilities.",
"description": "Where set to \u0060true\u0060 each underlying \u0060Table\u0060 and corresponding \u0060Join\u0060 must set \u0060IdentifierMapping\u0060 explicitly."
},
"identifierMappingType": {
"type": "string",
"title": "The type for the identifier mapping value.",
"description": "Defaults to \u0060String\u0060.",
"enum": [
"String",
"Int",
"Long",
"Guid"
]
},
"identifierMappingTable": {
"type": "string",
"title": "The table name for the \u0060Cdc\u0060-IdentifierMapping.",
"description": "Defaults to \u0060IdentifierMapping\u0060 (literal)."
},
"identifierMappingStoredProcedure": {
"type": "string",
"title": "The stored procedure name for the \u0060Cdc\u0060-IdentifierMapping create.",
"description": "Defaults to \u0060spIdentifierMappingCreate\u0060 (literal)."
},
"isDeletedColumn": {
"type": "string",
"title": "The column name for the \u0060IsDeleted\u0060 (logical delete) capability (if any).",
"description": "Defaults to \u0060IsDeleted\u0060."
},
"autoDotNetRename": {
"type": "string",
"title": "The option to automatically rename the SQL Tables and Columns for use in .NET.",
"description": "Defaults to \u0060SnakeKebabToPascalCase\u0060 which will remove any underscores or hyphens separating each word and capitalize the first character of each; e.g. \u0060internal-customer_id\u0060 would be renamed as \u0060InternalCustomerId\u0060. The \u0060PascalCase\u0060 option will capatilize the first character only.",
"enum": [
"None",
"PascalCase",
"SnakeKebabToPascalCase"
]
},
"excludeColumnsFromETag": {
"type": "array",
"title": "The default list of \u0060Column\u0060 names that should be excluded from the generated ETag (used for the likes of duplicate send tracking)",
"items": {
"type": "string"
}
},
"jsonSerializer": {
"type": "string",
"title": "The JSON Serializer to use for JSON property attribution.",
"description": "Defaults to \u0060SystemText\u0060.",
"enum": [
"SystemText",
"Newtonsoft"
]
},
"service": {
"type": "string",
"title": "The type of service that manages the underlying orchestrator.",
"description": "Defaults to \u0060None\u0060. A \u0060HostedService\u0060 is an \u0060IHostedService\u0060 implementation enabling long-running execution; whereas, \u0060Service\u0060 is intended for self-managed execution.",
"enum": [
"None",
"HostedService",
"Service"
]
},
"eventSubjectRoot": {
"type": "string",
"title": "The root for the event name by prepending to all event subject names via CDC.",
"description": "Used to enable the sending of messages to the likes of EventHubs, Service Broker, Kafka, etc."
},
"eventSubjectFormat": {
"type": "string",
"title": "The default formatting for the Subject when an Event is published via CDC.",
"description": "Defaults to \u0060NameOnly\u0060.",
"enum": [
"NameOnly",
"NameAndKey",
"NameAndTableKey"
]
},
"eventActionFormat": {
"type": "string",
"title": "The formatting for the Action when an Event is published via CDC.",
"description": "Defaults to \u0060None\u0060 (no formatting required, i.e. as-is).",
"enum": [
"None",
"PastTense"
]
},
"eventSourceKind": {
"type": "string",
"title": "The URI kind for the event source URIs for CDC.",
"description": "Defaults to \u0060Relative\u0060 (being a relative path).",
"enum": [
"None",
"Absolute",
"Relative",
"RelativeOrAbsolute"
]
},
"eventSourceRoot": {
"type": "string",
"title": "The URI root for the event source by prepending to all event source URIs for CDC.",
"description": "The event source is only updated where an \u0060EventSourceKind\u0060 is not \u0060None\u0060."
},
"eventSourceFormat": {
"type": "string",
"title": "The default formatting for the Source when an Event is published via CDC.",
"description": "Defaults to \u0060NameAndTableKey\u0060 (being the child \u0060Cdc.ModelName\u0060 appended with the corresponding table key).",
"enum": [
"NameOnly",
"NameAndKey",
"NameAndTableKey"
]
},
"eventTypeRoot": {
"type": "string",
"title": "The root for the event type by prepending to all event type names via CDC.",
"description": "Used to enable the sending of messages to the likes of EventHubs, Service Broker, Kafka, etc. Defaults to \u0060EventSubjectRoot\u0060."
},
"outbox": {
"type": "boolean",
"title": "Indicates whether to generate the event outbox SQL and .NET artefacts.",
"description": "Defaults to \u0060false\u0060."
},
"outboxSchema": {
"type": "string",
"title": "The schema name of the event outbox table.",
"description": "Defaults to \u0060Outbox\u0060 (literal)."
},
"outboxSchemaCreate": {
"type": "boolean",
"title": "Indicates whether to create the \u0060OutboxSchema\u0060 within the database.",
"description": "Defaults to \u0060false\u0060."
},
"outboxTable": {
"type": "string",
"title": "The name of the event outbox table.",
"description": "Defaults to \u0060EventOutbox\u0060 (literal)."
},
"outboxEnqueueStoredProcedure": {
"type": "string",
"title": "The stored procedure name for the event outbox enqueue.",
"description": "Defaults to \u0060spEventOutboxEnqueue\u0060 (literal)."
},
"outboxDequeueStoredProcedure": {
"type": "string",
"title": "The stored procedure name for the event outbox dequeue.",
"description": "Defaults to \u0060spEventOutboxDequeue\u0060 (literal)."
},
"pathBase": {
"type": "string",
"title": "The base path (directory) prefix for the Database-related artefacts; other \u0060Path*\u0060 properties append to this value when they are not specifically overridden.",
"description": "Defaults to \u0060AppName\u0060 (runtime parameter). For example \u0060Avanade.Application\u0060."
},
"pathDatabase": {
"type": "string",
"title": "The root path (directory) for the Database-related artefacts.",
"description": "Defaults to \u0060PathBase\u0060 \u002B \u0060.Database\u0060 (literal). For example \u0060Avanade.Application.Database\u0060."
},
"pathDatabaseSchema": {
"type": "string",
"title": "The path (directory) for the Schema Database-related artefacts.",
"description": "Defaults to \u0060PathDatabase\u0060 \u002B \u0060/Schema\u0060 (literal). For example \u0060Avanade.Application.Database/Schema\u0060."
},
"pathDatabaseMigrations": {
"type": "string",
"title": "The path (directory) for the Schema Database-related artefacts.",
"description": "Defaults to \u0060PathDatabase\u0060 \u002B \u0060/Migrations\u0060 (literal). For example \u0060Avanade.Application.Database/Migrations\u0060."
},
"pathDotNetPublisher": {
"type": "string",
"title": "The path (directory) for the CDC-related (.NET) artefacts.",
"description": "Defaults to \u0060PathBase\u0060 \u002B \u0060.Publisher\u0060 (literal). For example \u0060Avanade.Application.Publisher\u0060."
},
"pathSidecarDatabase": {
"type": "string",
"title": "The path (directory) for the Schema Database-related artefacts.",
"description": "Defaults to \u0060PathBase\u0060 \u002B \u0060.SidecarDb\u0060 (literal). For example \u0060Avanade.Application.SidecarDb\u0060."
},
"pathSidecarDatabaseSchema": {
"type": "string",
"title": "The path (directory) for the Schema Database-related artefacts.",
"description": "Defaults to \u0060PathSidecarDatabase\u0060 \u002B \u0060/Schema\u0060 (literal). For example \u0060Avanade.Application.SidecarDb/Schema\u0060."
},
"pathSidecarDatabaseMigrations": {
"type": "string",
"title": "The path (directory) for the Schema Database-related artefacts.",
"description": "Defaults to \u0060PathSidecarDatabase\u0060 \u002B \u0060/Migrations\u0060 (literal). For example \u0060Avanade.Application.SidecarDb/Migrations\u0060."
},
"namespaceBase": {
"type": "string",
"title": "The base Namespace (root) for the .NET artefacts.",
"description": "Defaults to \u0060AppName\u0060 (runtime parameter). For example \u0060Avanade.Application\u0060."
},
"namespacePublisher": {
"type": "string",
"title": "The Namespace (root) for the CDC-related Publisher .NET artefacts.",
"description": "Defaults to \u0060NamespaceBase\u0060 \u002B \u0060.Publisher\u0060 (literal). For example \u0060Avanade.Application.Publisher\u0060."
},
"namespaceOutbox": {
"type": "string",
"title": "The Namespace (root) for the Outbox-related Publisher .NET artefacts.",
"description": "Defaults to \u0060NamespacePublisher\u0060."
},
"tables": {
"type": "array",
"title": "The corresponding \u0060Table\u0060 collection.",
"description": "A \u0060Table\u0060 object provides the primary database table configuration for Change Data Capture (CDC), including multiple child table joins to form a composite entity.",
"items": {
"$ref": "#/definitions/Table"
}
}
}
},
"Table": {
"type": "object",
"title": "\u0027Table\u0027 object (database-driven)",
"description": "The \u0060Table\u0060 object enables the definition of the primary table, one-or-more child tables and their respective join relationships, to enable Change Data Capture (CDC) event publishing. The \u0060IncludeColumns\u0060 and \u0060ExcludeColumns\u0060 provide a shorthand to include or exclude selected columns; with the \u0060AliasColumns\u0060 providing a means to rename where required.",
"properties": {
"name": {
"type": "string",
"title": "The name of the primary table."
},
"schema": {
"type": "string",
"title": "The default schema name used where not otherwise explicitly specified.",
"description": "Defaults to \u0060Root.Schema\u0060."
},
"table": {
"type": "string",
"title": "The name of the primary table.",
"description": "Defaults to \u0060Name\u0060. This is used to specify the actual underlying database table name (required where the \u0060Name\u0060 has been changed to enable uniqueness)."
},
"alias": {
"type": "string",
"title": "The table alias name (must be unique).",
"description": "Will automatically default where not specified; for example a table named \u0060Person\u0060 will default to \u0060p\u0060."
},
"includeColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names to be included in the underlying generated output.",
"description": "Where not specified this indicates that all \u0060Columns\u0060 are to be included.",
"items": {
"type": "string"
}
},
"excludeColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names to be excluded from the underlying generated output.",
"description": "Where not specified this indicates no \u0060Columns\u0060 are to be excluded.",
"items": {
"type": "string"
}
},
"aliasColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 and \u0060Alias\u0060 pairs (split by a \u0060^\u0060 lookup character) to enable column aliasing/renaming.",
"description": "Each alias value should be formatted as \u0060Column\u0060 \u002B \u0060^\u0060 \u002B \u0060Alias\u0060; e.g. \u0060PCODE^ProductCode\u0060.",
"items": {
"type": "string"
}
},
"executeStoredProcedure": {
"type": "string",
"title": "The \u0060CDC\u0060 _execute_ batch stored procedure name.",
"description": "Defaults to \u0060sp\u0060 (literal) \u002B \u0060Name\u0060 \u002B \u0060BatchExecute\u0060 (literal); e.g. \u0060spNameBatchExecute\u0060."
},
"completeStoredProcedure": {
"type": "string",
"title": "The \u0060CDC\u0060 _complete_ batch stored procedure name.",
"description": "Defaults to \u0060sp\u0060 (literal) \u002B \u0060Name\u0060 \u002B \u0060BatchComplete\u0060 (literal); e.g. \u0060spNameBatchComplete\u0060."
},
"resetStoredProcedure": {
"type": "string",
"title": "The \u0060CDC\u0060 _reset_ batch stored procedure name.",
"description": "Defaults to \u0060sp\u0060 (literal) \u002B \u0060Name\u0060 \u002B \u0060BatchReset\u0060 (literal); e.g. \u0060spNameBatchReset\u0060."
},
"trackingStoredProcedure": {
"type": "string",
"title": "The \u0060CDC\u0060 _tracking_ (Sidecar only) batch stored procedure name.",
"description": "Defaults to \u0060sp\u0060 (literal) \u002B \u0060Name\u0060 \u002B \u0060BatchTracking\u0060 (literal); e.g. \u0060spNameBatchTracking\u0060."
},
"cdcSchema": {
"type": "string",
"title": "The schema name for the generated \u0060CDC\u0060-related database artefacts.",
"description": "Defaults to \u0060Root.CdcSchema\u0060."
},
"batchTrackingTable": {
"type": "string",
"title": "The corresponding \u0060CDC\u0060 Batch tracking table name.",
"description": "Defaults to \u0060Name\u0060 \u002B \u0060BatchTracking\u0060 (literal)."
},
"cdcEnable": {
"type": "boolean",
"title": "Indicates whether to enable \u0060Cdc\u0060 within the database for the tables that participate.",
"description": "Defaults to \u0060false\u0060. This option can be overridden for each underlying table referenced."
},
"model": {
"type": "string",
"title": "The .NET model name.",
"description": "Defaults to \u0060Name\u0060."
},
"orchestratorCtorParams": {
"type": "array",
"title": "The list of additional (non-default) Dependency Injection (DI) parameters for the generated CDC \u0060Orchestrator\u0060 constructor.",
"description": "Each constructor parameter should be formatted as \u0060Type\u0060 \u002B \u0060^\u0060 \u002B \u0060Name\u0060; e.g. \u0060IConfiguration^Config\u0060. Where the \u0060Name\u0060 portion is not specified it will be inferred.",
"items": {
"type": "string"
}
},
"database": {
"type": "string",
"title": "The .NET database \u0060IDatabase\u0060 Type name used in the constructor for Dependency Injection (DI).",
"description": "Defaults to \u0060IDatabase\u0060."
},
"includeColumnsOnDelete": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that should be included (in addition to the primary key) for a logical delete.",
"description": "Where a column is not specified in this list its corresponding .NET property will be automatically cleared by the \u0060CdcDataOrchestrator\u0060 as the data is technically considered as non-existing.",
"items": {
"type": "string"
}
},
"service": {
"type": "string",
"title": "The type of service that manages the underlying orchestrator.",
"description": "Defaults to \u0060Root.Service\u0060. A \u0060HostedService\u0060 is an \u0060IHostedService\u0060 implementation enabling long-running execution; whereas, \u0060Service\u0060 is intended for self-managed execution.",
"enum": [
"None",
"HostedService",
"Service"
]
},
"excludeColumnsFromETag": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that should be excluded from the generated ETag (used for the likes of duplicate send tracking).",
"description": "Defaults to \u0060Root.CdcExcludeColumnsFromETag\u0060.",
"items": {
"type": "string"
}
},
"tenantIdColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that represent the tenant identifier.",
"items": {
"type": "string"
}
},
"partitionKey": {
"type": "string",
"title": "The partition key.",
"description": "A partition key can be specified using either \u0060PartitionKey\u0060 or \u0060PartitionKeyColumns\u0060."
},
"partitionKeyColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that represent the partition key.",
"description": "A partition key can be specified using either \u0060PartitionKey\u0060 or \u0060PartitionKeyColumns\u0060.",
"items": {
"type": "string"
}
},
"eventSource": {
"type": "string",
"title": "The Event Source.",
"description": "Defaults to \u0060Schema\u0060 \u002B \u0060/\u0060 (literal) \u002B \u0060Name\u0060 (as lowercase). Note: when used in code-generation the \u0060Root.EventSourceRoot\u0060 will be prepended where specified."
},
"eventSourceFormat": {
"type": "string",
"title": "The default formatting for the Source when an Event is published.",
"description": "Defaults to \u0060Root.EventSourceFormat\u0060.",
"enum": [
"NameOnly",
"NameAndKey",
"NameAndTableKey"
]
},
"eventSubject": {
"type": "string",
"title": "The Event Subject.",
"description": "Defaults to \u0060ModelName\u0060. Note: when used in code-generation the \u0060Root.EventSubjectRoot\u0060 will be prepended where specified."
},
"eventSubjectFormat": {
"type": "string",
"title": "The default formatting for the Subject when an Event is published.",
"description": "Defaults to \u0060Root.EventSubjectFormat\u0060.",
"enum": [
"NameOnly",
"NameAndKey",
"NameAndTableKey"
]
},
"eventType": {
"type": "string",
"title": "The Event Type.",
"description": "Defaults to \u0060ModelName\u0060. Note: when used in code-generation the \u0060Root.EventTypeRoot\u0060 will be prepended where specified."
},
"identifierMapping": {
"type": "boolean",
"title": "Indicates whether to perform Identifier Mapping (mapping to \u0060GlobalId\u0060) for the primary key.",
"description": "This indicates whether to create a new \u0060GlobalId\u0060 property on the _entity_ to house the global mapping identifier to be the reference outside of the specific database realm as a replacement to the existing primary key column(s)."
},
"identifierName": {
"type": "string",
"title": "The JSON name for the \u0060GlobalId\u0060 property where \u0060IdentifierMapping\u0060 is \u0060true\u0060. Defaults to \u0060globalId\u0060.",
"description": "This indicates whether to create a new \u0060GlobalId\u0060 property on the _entity_ to house the global mapping identifier to be the reference outside of the specific database realm as a replacement to the existing primary key column(s)."
},
"isDeletedColumn": {
"type": "string",
"title": "The column name for the \u0060IsDeleted\u0060 (logical delete) capability (if any).",
"description": "Defaults to \u0060Root.ColumnIsDeleted\u0060."
},
"joins": {
"type": "array",
"title": "The corresponding \u0060Join\u0060 collection.",
"description": "A \u0060Join\u0060 object provides the configuration for a table join.",
"items": {
"$ref": "#/definitions/Join"
}
},
"where": {
"type": "array",
"title": "The corresponding \u0060Where\u0060 collection.",
"description": "A \u0060Where\u0060 object provides the configuration for a table where clause.",
"items": {
"$ref": "#/definitions/Where"
}
},
"mappings": {
"type": "array",
"title": "The corresponding \u0060TableMapping\u0060 collection.",
"items": {
"$ref": "#/definitions/TableMapping"
}
}
},
"required": [
"name"
]
},
"Join": {
"type": "object",
"title": "\u0027Join\u0027 object (database-driven)",
"description": "The \u0060Join\u0060 object defines a join to another (or same) table within the logical CDC entity. The \u0060IncludeColumns\u0060 and \u0060ExcludeColumns\u0060 provide a shorthand to include or exclude selected columns; with the \u0060AliasColumns\u0060 providing a means to rename where required.",
"properties": {
"name": {
"type": "string",
"title": "The unique name.",
"description": "A unique name is required where the same \u0060Table\u0060 is referenced more than once within a logical CDC entity. However, generally, this will represent the unique name of the table within the database."
},
"schema": {
"type": "string",
"title": "The schema name of the table to join.",
"description": "Defaults to \u0060Cdc.Schema\u0060; i.e. same schema."
},
"table": {
"type": "string",
"title": "The name of the table to join.",
"description": "Defaults to \u0060Name\u0060. This is used to specify the actual underlying database table name (required where the \u0060Name\u0060 has been changed to enable uniqueness)."
},
"alias": {
"type": "string",
"title": "The \u0060Schema\u0060 and \u0060Table\u0060 alias name.",
"description": "Will automatically default where not specified."
},
"type": {
"type": "string",
"title": "The SQL join type.",
"description": "Defaults to \u0060Cdc\u0060. The \u0060Cdc\u0060 value indicates this is a related secondary table (within a logical CDC entity) that also has Change Data Capture turned on and equally needs to be monitored for changes.",
"enum": [
"Cdc",
"Inner",
"Left",
"Right",
"Full"
]
},
"joinTo": {
"type": "string",
"title": "The name of the table to join to (must be previously specified).",
"description": "Defaults to parent \u0060Table.Name\u0060."
},
"joinCardinality": {
"type": "string",
"title": "The join cardinality being whether there is a One-to-Many or One-to-One relationship.",
"description": "Defaults to \u0060OneToMany\u0060. This represents the Parent (\u0060JoinTo\u0060) to child (_this_) relationship.",
"enum": [
"OneToMany",
"OneToOne"
]
},
"cdcEnable": {
"type": "boolean",
"title": "Indicates whether to enable \u0060Cdc\u0060 within the database for the tables that participate.",
"description": "Defaults to \u0060false\u0060. This option can be overridden for each underlying table referenced."
},
"querySizeMultiplier": {
"type": "number",
"title": "The query size multiplier for the CDC-Join.",
"description": "Defaults to \u00601.0\u0060. This is applied to the execute stored procedure \u0060@MaxQuerySize\u0060 parameter to allow tailoring on the join query (\u0060TOP\u0060) sizes to optimize selection. Must be greater than zero and less than or equal to 100."
},
"includeColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names to be included in the underlying generated output.",
"description": "Where not specified this indicates that all \u0060Columns\u0060 are to be included.",
"items": {
"type": "string"
}
},
"excludeColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 names to be excluded from the underlying generated output.",
"description": "Where not specified this indicates no \u0060Columns\u0060 are to be excluded.",
"items": {
"type": "string"
}
},
"aliasColumns": {
"type": "array",
"title": "The list of \u0060Column\u0060 and \u0060Alias\u0060 pairs (split by a \u0060^\u0060 lookup character) to enable column renaming.",
"description": "Each alias value should be formatted as \u0060Column\u0060 \u002B \u0060^\u0060 \u002B \u0060Alias\u0060; e.g. \u0060PCODE^ProductCode\u0060",
"items": {
"type": "string"
}
},
"model": {
"type": "string",
"title": "The .NET model name.",
"description": "Defaults to \u0060Name\u0060."
},
"property": {
"type": "string",
"title": "The .NET property name.",
"description": "Defaults to \u0060Model\u0060 where \u0060JoinCardinality\u0060 is \u0060OneToOne\u0060; otherwise, it will be the \u0060Model\u0060 pluralized."
},
"includeColumnsOnDelete": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that should be included (in addition to the primary key) for a logical delete.",
"description": "Where a column is not specified in this list its corresponding .NET property will be automatically cleared by the \u0060CdcDataOrchestrator\u0060 as the data is technically considered as non-existing.",
"items": {
"type": "string"
}
},
"excludeColumnsFromETag": {
"type": "array",
"title": "The list of \u0060Column\u0060 names that should be excluded from the generated ETag (used for the likes of duplicate send tracking).",
"description": "Defaults to \u0060CodeGeneration.CdcExcludeColumnsFromETag\u0060.",
"items": {
"type": "string"
}
},
"identifierMapping": {
"type": "boolean",
"title": "Indicates whether to perform Identifier Mapping (mapping to \u0060GlobalId\u0060) for the primary key.",
"description": "This indicates whether to create a new \u0060GlobalId\u0060 property on the _entity_ to house the global mapping identifier to be the reference outside of the specific database realm as a replacement to the existing primary key column(s)."
},
"identifierName": {
"type": "string",
"title": "The JSON name for the \u0060GlobalId\u0060 property where \u0060IdentifierMapping\u0060 is \u0060true\u0060. Defaults to \u0060globalId\u0060.",
"description": "This indicates whether to create a new \u0060GlobalId\u0060 property on the _entity_ to house the global mapping identifier to be the reference outside of the specific database realm as a replacement to the existing primary key column(s)."
},
"on": {
"type": "array",
"title": "The corresponding \u0060JoinOn\u0060 collection.",
"items": {
"$ref": "#/definitions/JoinOn"
}
},
"mappings": {
"type": "array",
"title": "The corresponding \u0060JoinMapping\u0060 collection.",
"items": {
"$ref": "#/definitions/JoinMapping"
}
}
},
"required": [
"name"
]
},
"JoinOn": {
"type": "object",
"title": "\u0027JoinOn\u0027 object (database-driven)",
"description": "The \u0060JoinOn\u0060 object defines the join on characteristics for a \u0060Join\u0060 object.",
"properties": {
"name": {
"type": "string",
"title": "The name of the join column (from the \u0060Join\u0060 table)."
},
"toColumn": {
"type": "string",
"title": "The name of the join to column.",
"description": "Defaults to \u0060Name\u0060; i.e. assumes same name."
},
"toStatement": {
"type": "string",
"title": "The SQL statement for the join on bypassing the corresponding \u0060ToColumn\u0060 specification."
}
},
"required": [
"name"
]
},
"JoinMapping": {
"type": "object",
"title": "\u0027JoinMapping\u0027 object (database-driven)",
"description": "The \u0060JoinMapping\u0060 object defines one or more related table identifier mappings.",
"properties": {
"name": {
"type": "string",
"title": "The name of of the existing column that requires identifier mapping."
},
"schema": {
"type": "string",
"title": "The schema name of the related table.",
"description": "Defaults to the owning (parent) table schema."
},
"table": {
"type": "string",
"title": "The name of the related table."
}
},
"required": [
"name",
"table"
]
},
"Where": {
"type": "object",
"title": "\u0027Where\u0027 object (database-driven)",
"description": "This should only be used where the column value is largely immutable; otherwise, unintended side-effects may occur. _NTangle_ uses the condition explictily and does not attempt to handle value change to infer creation or deletion of data as a result of the underlying change; as such, this should be used cautiously. Note that the \u0060where\u0060 is applied when querying the \u0060cdc.fn_cdc_get_all_changes_...\u0060 function, not the underlying table itself.",
"properties": {
"name": {
"type": "string",
"title": "The column name.",
"description": "The column name."
},
"nullable": {
"type": "string",
"title": "The where nullability clause operator",
"description": "This enables statements such as \u0060WHERE (COL IS NULL)\u0060 or \u0060WHERE (COL IS NULL OR COL = VALUE)\u0060 (where .",
"enum": [
"ISNULL",
"ISNOTNULL"
]
},
"operator": {
"type": "string",
"title": "The where clause equality operator",
"description": "Defaults to \u0060EQ\u0060 where \u0060Value\u0060 is specified.",
"enum": [
"EQ",
"NE",
"LT",
"LE",
"GT",
"GE",
"LIKE"
]
},
"value": {
"type": "string",
"title": "The comparison value",
"description": "This must be valid formatted/escaped SQL."
}
},
"required": [
"name"
]
},
"TableMapping": {
"type": "object",
"title": "\u0027TableMapping\u0027 object (database-driven)",
"description": "The \u0060TableMapping\u0060 object defines one or more related table identifier mappings.",
"properties": {
"name": {
"type": "string",
"title": "The name of of the existing column that requires identifier mapping."
},
"schema": {
"type": "string",
"title": "The schema name of the related table.",
"description": "Defaults to the owning (parent) table schema."
},
"table": {
"type": "string",
"title": "The name of the related table."
}
},
"required": [
"name",
"table"
]
}
},
"allOf": [
{
"$ref": "#/definitions/Root"
}
]
}