This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
/
EFModelSchema.xsd
2243 lines (2178 loc) · 100 KB
/
EFModelSchema.xsd
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
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema id="EFModelSchema" targetNamespace="http://schemas.microsoft.com/dsltools/EFModel" elementFormDefault="qualified" xmlns="http://schemas.microsoft.com/dsltools/EFModel" xmlns:core="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import id="CoreSchema" namespace="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" />
<!-- ModelRoot -->
<xsd:element name="modelRoot" type="ModelRoot" substitutionGroup="core:modelElement" />
<xsd:complexType name="ModelRoot">
<xsd:complexContent>
<xsd:extension base="core:ModelElement">
<xsd:sequence minOccurs="0" maxOccurs="1">
<!-- Relationship: ModelRootHasComments -->
<xsd:element name="comments" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ModelRootHasComments</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded" >
<xsd:element ref="modelRootHasComments">
<xsd:annotation>
<xsd:documentation>[Relationship deriving from ModelRootHasComments needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="comment" >
<xsd:annotation>
<xsd:documentation>[Target role-player]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: ModelRootHasEnums -->
<xsd:element name="enums" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ModelRootHasEnums</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="modelRootHasEnums" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of ModelRootHasEnums needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: ModelRootHasClasses -->
<xsd:element name="classes" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ModelRootHasClasses</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="modelRootHasClasses" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of ModelRootHasClasses needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: ModelRootHasModelDiagrams -->
<xsd:element name="diagrams" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ModelRootHasModelDiagrams</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="modelRootHasModelDiagrams" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of ModelRootHasModelDiagrams needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- dslVersion -->
<xsd:attribute name="dslVersion" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Version of the model serialized in this file.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: LazyLoadingEnabled -->
<xsd:attribute name="lazyLoadingEnabled" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, entity container will use lazy loading</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityContainerAccess -->
<xsd:attribute name="entityContainerAccess" type="ContainerAccess" >
<xsd:annotation>
<xsd:documentation>Code visibility for entity container</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityContainerName -->
<xsd:attribute name="entityContainerName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Name of entity container class</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Namespace -->
<xsd:attribute name="namespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Namespace for DBContext and, unless otherwise specified, all other generated code</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DatabaseInitializerType -->
<xsd:attribute name="databaseInitializerType" type="DatabaseInitializerKind" >
<xsd:annotation>
<xsd:documentation>Initialization strategy to synchronize the underlying database when an instance of this context is used for the first time</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ConnectionString -->
<xsd:attribute name="connectionString" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Connection string to use. Mutually exclusive with ConnectionStringName</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: AutomaticMigrationsEnabled -->
<xsd:attribute name="automaticMigrationsEnabled" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, automatic database migrations will be run when changes are detected.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityOutputDirectory -->
<xsd:attribute name="entityOutputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Output directory for entities</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ContextOutputDirectory -->
<xsd:attribute name="contextOutputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Project directory for DbContext-related files</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EnumOutputDirectory -->
<xsd:attribute name="enumOutputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Project directory for enums</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DatabaseSchema -->
<xsd:attribute name="databaseSchema" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The schema to use for table creation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ConcurrencyDefault -->
<xsd:attribute name="concurrencyDefault" type="Concurrency" >
<xsd:annotation>
<xsd:documentation>Default concurrency handling strategy</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: FileNameMarker -->
<xsd:attribute name="fileNameMarker" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>File name suffix for generated files (e.g., foo.generated.cs)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityFrameworkVersion -->
<xsd:attribute name="entityFrameworkVersion" type="EFVersion" >
<xsd:annotation>
<xsd:documentation>Version of Entity Framework for validation and generated code</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ConnectionStringName -->
<xsd:attribute name="connectionStringName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Name of connection string in config file. Mutually exclusive with ConnectionString</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ChopMethodChains -->
<xsd:attribute name="chopMethodChains" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Will chop generated code method chains</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: InheritanceStrategy -->
<xsd:attribute name="inheritanceStrategy" type="CodeStrategy" >
<xsd:annotation>
<xsd:documentation>How tables will be created/used to handle inheritance</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DefaultCollectionClass -->
<xsd:attribute name="defaultCollectionClass" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The type of container generated to represent associations if not overridden. Must implement ICollection<T>.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ProxyGenerationEnabled -->
<xsd:attribute name="proxyGenerationEnabled" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, context will generate proxies for POCO entities</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: TransformOnSave -->
<xsd:attribute name="transformOnSave" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will trigger code generation when the file is saved. If false, code generation will have to be triggered manually.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DefaultIdentityType -->
<xsd:attribute name="defaultIdentityType" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Default type for ID properties in new classes</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ShowCascadeDeletes -->
<xsd:attribute name="showCascadeDeletes" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will display cascade deleted associations as dashed red lines</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DatabaseType -->
<xsd:attribute name="databaseType" type="DatabaseKind" >
<xsd:annotation>
<xsd:documentation>Database manifest token. Optimization if runtime database type is known and unchanging, and only valid for SqlServer.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: WarnOnMissingDocumentation -->
<xsd:attribute name="warnOnMissingDocumentation" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will generate warnings when summary documentation is missing</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityFrameworkPackageVersion -->
<xsd:attribute name="entityFrameworkPackageVersion" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Version of Entity Framework code for validation and generated code</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: StructOutputDirectory -->
<xsd:attribute name="structOutputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Project directory for generated structures (owned/complex types)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DbSetAccess -->
<xsd:attribute name="dbSetAccess" type="ContainerAccess" >
<xsd:annotation>
<xsd:documentation>Code visibility for DbSets</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Description -->
<xsd:attribute name="description" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Detailed code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Summary -->
<xsd:attribute name="summary" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Brief code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ShowWarningsInDesigner -->
<xsd:attribute name="showWarningsInDesigner" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will display warning glyphs with tooltips when model elements have non-fatal issues detected</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EntityNamespace -->
<xsd:attribute name="entityNamespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Namespace for entities</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: EnumNamespace -->
<xsd:attribute name="enumNamespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Namespace for enumerations</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: StructNamespace -->
<xsd:attribute name="structNamespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Namespace for owned entities</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ExposeForeignKeys -->
<xsd:attribute name="exposeForeignKeys" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Allow foreign key properties to be available in the POCO entities (recommended: false)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: BaseClass -->
<xsd:attribute name="baseClass" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Base class for DbContext in generated code. Should be fully qualified if not in a standard namespace.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ShowGrid -->
<xsd:attribute name="showGrid" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, displays a grid for aligning shapes</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: SnapToGrid -->
<xsd:attribute name="snapToGrid" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, shapes snap to the designer's grid</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: GridColor -->
<xsd:attribute name="gridColor" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Color for designer grid</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ShowForeignKeyPropertyNames -->
<xsd:attribute name="showForeignKeyPropertyNames" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will show declared foreign key property names (if any) on the association ends</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: UseTabs -->
<xsd:attribute name="useTabs" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, will generate code with tabs instead of spaces for indentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelRoot Moniker -->
<xsd:element name="modelRootMoniker" type="ModelRootMoniker" substitutionGroup="core:modelElementMoniker" />
<xsd:complexType name="ModelRootMoniker">
<xsd:annotation>
<xsd:documentation>Moniker for ModelRoot instance.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="core:ModelElementMoniker">
<xsd:attribute name="Id" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Attribute to store the moniker string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelClass -->
<xsd:element name="modelClass" type="ModelClass" substitutionGroup="designElement" />
<xsd:complexType name="ModelClass">
<xsd:complexContent>
<xsd:extension base="DesignElement">
<xsd:sequence minOccurs="0" maxOccurs="1">
<!-- Relationship: UnidirectionalAssociation -->
<xsd:element name="unidirectionalTargets" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of UnidirectionalAssociation</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="unidirectionalAssociation" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of UnidirectionalAssociation needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: ClassHasAttributes -->
<xsd:element name="attributes" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ClassHasAttributes</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded" >
<xsd:element ref="classHasAttributes">
<xsd:annotation>
<xsd:documentation>[Relationship deriving from ClassHasAttributes needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="modelAttribute" >
<xsd:annotation>
<xsd:documentation>[Target role-player]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: Generalization -->
<xsd:element name="subclasses" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of Generalization</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="generalization" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of Generalization needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: BidirectionalAssociation -->
<xsd:element name="bidirectionalTargets" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of BidirectionalAssociation</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="bidirectionalAssociation" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of BidirectionalAssociation needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsAbstract -->
<xsd:attribute name="isAbstract" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, this will be generated as an abstract class</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: TableName -->
<xsd:attribute name="tableName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Name of the database table storing data for this class</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DatabaseSchema -->
<xsd:attribute name="databaseSchema" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The schema to use for table creation. Overrides default schema for model if present.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Concurrency -->
<xsd:attribute name="concurrency" type="ConcurrencyOverride" >
<xsd:annotation>
<xsd:documentation>Overridden concurrency handling strategy.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsDatabaseSchemaTracking -->
<xsd:attribute name="isDatabaseSchemaTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelClass.DatabaseSchema tracks ModelRoot.DatabaseSchema</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Namespace -->
<xsd:attribute name="namespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Overrides default namespace</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsNamespaceTracking -->
<xsd:attribute name="isNamespaceTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelClass.Namespace tracks ModelRoot.Namespace</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DbSetName -->
<xsd:attribute name="dbSetName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Name of this class's container variable in the generated context</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Name -->
<xsd:attribute name="name" type="xsd:string" />
<!-- Property: ImplementNotify -->
<xsd:attribute name="implementNotify" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Should this class's properties implement INotifyPropertyChanged by default?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: CustomInterfaces -->
<xsd:attribute name="customInterfaces" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Optional comma-separated list of interfaces that will be added to the class definition</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsDependentType -->
<xsd:attribute name="isDependentType" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Is this a completely dependent type that will only exist associated to another object?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: OutputDirectory -->
<xsd:attribute name="outputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Overrides default output directory</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsOutputDirectoryTracking -->
<xsd:attribute name="isOutputDirectoryTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelClass.OutputDirectory tracks ModelRoot.EntityOutputDirectory</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Description -->
<xsd:attribute name="description" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Detailed code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Summary -->
<xsd:attribute name="summary" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Brief code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: CustomAttributes -->
<xsd:attribute name="customAttributes" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Any custom attributes to be generated for this element. Will be passed through as entered.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: AutoPropertyDefault -->
<xsd:attribute name="autoPropertyDefault" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Default value for this class's attribute AutoProperty setting</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: GenerateCode -->
<xsd:attribute name="generateCode" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true (the default), code will be generated for this class. If false, it is assumed to be referenced from another assembly.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelClass Moniker -->
<xsd:element name="modelClassMoniker" type="ModelClassMoniker" substitutionGroup="designElementMoniker" />
<xsd:complexType name="ModelClassMoniker">
<xsd:annotation>
<xsd:documentation>Moniker for ModelClass instance.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="DesignElementMoniker">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelAttribute -->
<xsd:element name="modelAttribute" type="ModelAttribute" substitutionGroup="core:modelElement" />
<xsd:complexType name="ModelAttribute">
<xsd:annotation>
<xsd:documentation>An attribute of a class.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="core:ModelElement">
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Type -->
<xsd:attribute name="type" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Type of this attribute</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: InitialValue -->
<xsd:attribute name="initialValue" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Value for attribute when first created</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsIdentity -->
<xsd:attribute name="isIdentity" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Does this attribute represent the identity of the object?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Required -->
<xsd:attribute name="required" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, cannot be null (or the default value for the property type, if not nullable)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Persistent -->
<xsd:attribute name="persistent" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Attribute will be stored in persistent storage</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: MaxLength -->
<xsd:attribute name="maxLength" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Maximum length of the string, A positive number will generate a length constraint, negative number means the database maximum (approx. 2GB), and null or 0 for no max length entry (migration traditionally will set the database column to 2000 characters).</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Indexed -->
<xsd:attribute name="indexed" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Should this attribute create an index in the database?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IndexedUnique -->
<xsd:attribute name="indexedUnique" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If indexed, is the index a unique index?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: StringType -->
<xsd:attribute name="stringType" type="HTML5Type" >
<xsd:annotation>
<xsd:documentation>If not empty, will create a standard validation annotation for this attribute.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: TableOverride -->
<xsd:attribute name="tableOverride" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Unused - Alternate table to store this attribute. If empty, the class's table is used.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsConcurrencyToken -->
<xsd:attribute name="isConcurrencyToken" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, this property serves as the concurrency value for the class</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IdentityType -->
<xsd:attribute name="identityType" type="IdentityType" >
<xsd:annotation>
<xsd:documentation>If this property is an identity, how the value is generated</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Description -->
<xsd:attribute name="description" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Detailed code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Summary -->
<xsd:attribute name="summary" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Brief code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Name -->
<xsd:attribute name="name" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The name of the property. Must be a valid C# symbol.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: SetterVisibility -->
<xsd:attribute name="setterVisibility" type="SetterAccessModifier" >
<xsd:annotation>
<xsd:documentation>Visibility for property setter; getter is public</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Virtual -->
<xsd:attribute name="virtual" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, property will be generated with the 'virtual' keyword</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ReadOnly -->
<xsd:attribute name="readOnly" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, no setter will be generated. Only valid for transient public properties.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: AutoProperty -->
<xsd:attribute name="autoProperty" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If false, generates a backing field and a partial method to hook getting and setting the property. If true, generates a simple auto property.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: MinLength -->
<xsd:attribute name="minLength" type="xsd:integer" >
<xsd:annotation>
<xsd:documentation>Minimum length of the string, 0 for no minimum length</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ColumnName -->
<xsd:attribute name="columnName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The name for the table column backing this property</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsColumnNameTracking -->
<xsd:attribute name="isColumnNameTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelAttribute.ColumnName tracks ModelAttribute.Name</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ColumnType -->
<xsd:attribute name="columnType" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The data type for the table column backing this property</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsColumnTypeTracking -->
<xsd:attribute name="isColumnTypeTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelAttribute.ColumnType tracks ModelAttribute.Type</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: CustomAttributes -->
<xsd:attribute name="customAttributes" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Any custom attributes to be generated for this element. Will be passed through as entered.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: DisplayText -->
<xsd:attribute name="displayText" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Text for [Display(Name="<text>")] attribute</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: PersistencePoint -->
<xsd:attribute name="persistencePoint" type="PersistencePointType" >
<xsd:annotation>
<xsd:documentation>The element that will be persisted for this attribute, either the property or the backing field</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ImplementNotify -->
<xsd:attribute name="implementNotify" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>Should this class implement INotifyPropertyChanged?</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsImplementNotifyTracking -->
<xsd:attribute name="isImplementNotifyTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelAttribute.IsImplementNotify tracks ModelClass.ImplementNotify</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsAutoPropertyTracking -->
<xsd:attribute name="isAutoPropertyTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelAttribute.AutoProperty tracks ModelClass.AutoPropertyDefault</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsForeignKeyFor -->
<xsd:attribute name="isForeignKeyFor" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>If present, this attribute is a foreign key for the association named by this Guid</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: BackingFieldName -->
<xsd:attribute name="backingFieldName" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>The name of the backing field for this property</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelAttribute Moniker -->
<xsd:element name="modelAttributeMoniker" type="ModelAttributeMoniker" substitutionGroup="core:modelElementMoniker" />
<xsd:complexType name="ModelAttributeMoniker">
<xsd:annotation>
<xsd:documentation>Moniker for ModelAttribute instance.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="core:ModelElementMoniker">
<xsd:attribute name="Id" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Attribute to store the moniker string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- Comment -->
<xsd:element name="comment" type="Comment" substitutionGroup="core:modelElement" />
<xsd:complexType name="Comment">
<xsd:complexContent>
<xsd:extension base="core:ModelElement">
<xsd:sequence minOccurs="0" maxOccurs="1">
<!-- Relationship: CommentReferencesClasses -->
<xsd:element name="classes" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of CommentReferencesClasses</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="commentReferencesClasses" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of CommentReferencesClasses needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Relationship: CommentReferencesEnums -->
<xsd:element name="enums" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of CommentReferencesEnums</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="commentReferencesEnums" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of CommentReferencesEnums needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Text -->
<xsd:attribute name="text" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Comment text</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- Comment Moniker -->
<xsd:element name="commentMoniker" type="CommentMoniker" substitutionGroup="core:modelElementMoniker" />
<xsd:complexType name="CommentMoniker">
<xsd:annotation>
<xsd:documentation>Moniker for Comment instance.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="core:ModelElementMoniker">
<xsd:attribute name="Id" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Attribute to store the moniker string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelEnum -->
<xsd:element name="modelEnum" type="ModelEnum" substitutionGroup="designElement" />
<xsd:complexType name="ModelEnum">
<xsd:annotation>
<xsd:documentation>Represents an enumeration in C#</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="DesignElement">
<xsd:sequence minOccurs="0" maxOccurs="1">
<!-- Relationship: ModelEnumHasValues -->
<xsd:element name="values" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Instances of ModelEnumHasValues</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="modelEnumHasValues" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>[Instance of ModelEnumHasValues needs to be serialized in full-form]</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: ValueType -->
<xsd:attribute name="valueType" type="EnumValueType" >
<xsd:annotation>
<xsd:documentation>CLR type implementing this enum (usually Int32)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Namespace -->
<xsd:attribute name="namespace" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Overrides default namespace</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsNamespaceTracking -->
<xsd:attribute name="isNamespaceTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelEnum.Namespace tracks ModelRoot.Namespace</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Name -->
<xsd:attribute name="name" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Name of the enumeration</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsFlags -->
<xsd:attribute name="isFlags" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, values in this enumeration are flags and will have initial values set appropriately.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: OutputDirectory -->
<xsd:attribute name="outputDirectory" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Overrides default output directory</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: IsOutputDirectoryTracking -->
<xsd:attribute name="isOutputDirectoryTracking" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true, ModelEnum.OutputDirectory tracks ModelRoot.EnumOutputDirectory</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Description -->
<xsd:attribute name="description" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Detailed code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Summary -->
<xsd:attribute name="summary" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Brief code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: CustomAttributes -->
<xsd:attribute name="customAttributes" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Any custom attributes to be generated for this element. Will be passed through as entered.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: GenerateCode -->
<xsd:attribute name="generateCode" type="xsd:boolean" >
<xsd:annotation>
<xsd:documentation>If true (the default), code will be generated for this enum. If false, it is assumed to be referenced from another assembly.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelEnum Moniker -->
<xsd:element name="modelEnumMoniker" type="ModelEnumMoniker" substitutionGroup="designElementMoniker" />
<xsd:complexType name="ModelEnumMoniker">
<xsd:annotation>
<xsd:documentation>Moniker for ModelEnum instance.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="DesignElementMoniker">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- ModelEnumValue -->
<xsd:element name="modelEnumValue" type="ModelEnumValue" substitutionGroup="core:modelElement" />
<xsd:complexType name="ModelEnumValue">
<xsd:annotation>
<xsd:documentation>Represents a value in a C# enumeration</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="core:ModelElement">
<!-- Id -->
<xsd:attribute name="Id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Instance Guid of this element, needed because SerializeId is set to true.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Name -->
<xsd:attribute name="name" type="xsd:string" />
<!-- Property: Value -->
<xsd:attribute name="value" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Optional value for this enum element. Must be in the range of the enum's ValueType</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Description -->
<xsd:attribute name="description" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Detailed code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- Property: Summary -->
<xsd:attribute name="summary" type="xsd:string" >
<xsd:annotation>
<xsd:documentation>Brief code documentation</xsd:documentation>
</xsd:annotation>
</xsd:attribute>