1 #region MIT license
2 //
3 // MIT license
4 //
5 // Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy
8 // of this software and associated documentation files (the "Software"), to deal
9 // in the Software without restriction, including without limitation the rights
10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 // copies of the Software, and to permit persons to whom the Software is
12 // furnished to do so, subject to the following conditions:
13 //
14 // The above copyright notice and this permission notice shall be included in
15 // all copies or substantial portions of the Software.
16 //
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 // THE SOFTWARE.
24 //
25 #endregion
26 namespace DbLinq.Schema.Dbml
27 {
28     using System.Xml.Serialization;
29 
30     /// <summary>
31     /// CSharp representation of DBML file format.
32     /// Generated by XSD.exe from DblmlSchema.xsd
33     /// </summary>
34     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
35     [System.SerializableAttribute()]
36     [System.Diagnostics.DebuggerStepThroughAttribute()]
37     [System.ComponentModel.DesignerCategoryAttribute("code")]
38     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
39     [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007", IsNullable = false)]
40 #if !MONO_STRICT
41     public
42 #endif
43     partial class Database : object, System.ComponentModel.INotifyPropertyChanged
44     {
45 
46         private Connection connectionField;
47 
48         private Table[] tableField;
49 
50         private Function[] functionField;
51 
52         private string nameField;
53 
54         private string entityNamespaceField;
55 
56         private string contextNamespaceField;
57 
58         private string classField;
59 
60         private AccessModifier accessModifierField;
61 
62         private bool accessModifierFieldSpecified;
63 
64         private ClassModifier modifierField;
65 
66         private bool modifierFieldSpecified;
67 
68         private string baseTypeField;
69 
70         private string providerField;
71 
72         private bool externalMappingField;
73 
74         private bool externalMappingFieldSpecified;
75 
76         private SerializationMode serializationField;
77 
78         private bool serializationFieldSpecified;
79 
80         private string entityBaseField;
81 
82         /// <remarks/>
83         public Connection Connection
84         {
85             get
86             {
87                 return this.connectionField;
88             }
89             set
90             {
91                 this.connectionField = value;
92                 this.RaisePropertyChanged("Connection");
93             }
94         }
95 
96         /// <remarks/>
97         [System.Xml.Serialization.XmlElementAttribute("Table")]
98         public Table[] Table
99         {
100             get
101             {
102                 return this.tableField;
103             }
104             set
105             {
106                 this.tableField = value;
107                 this.RaisePropertyChanged("Table");
108             }
109         }
110 
111         /// <remarks/>
112         [System.Xml.Serialization.XmlElementAttribute("Function")]
113         public Function[] Function
114         {
115             get
116             {
117                 return this.functionField;
118             }
119             set
120             {
121                 this.functionField = value;
122                 this.RaisePropertyChanged("Function");
123             }
124         }
125 
126         /// <remarks/>
127         [System.Xml.Serialization.XmlAttributeAttribute()]
128         public string Name
129         {
130             get
131             {
132                 return this.nameField;
133             }
134             set
135             {
136                 this.nameField = value;
137                 this.RaisePropertyChanged("Name");
138             }
139         }
140 
141         /// <remarks/>
142         [System.Xml.Serialization.XmlAttributeAttribute()]
143         public string EntityNamespace
144         {
145             get
146             {
147                 return this.entityNamespaceField;
148             }
149             set
150             {
151                 this.entityNamespaceField = value;
152                 this.RaisePropertyChanged("EntityNamespace");
153             }
154         }
155 
156         /// <remarks/>
157         [System.Xml.Serialization.XmlAttributeAttribute()]
158         public string ContextNamespace
159         {
160             get
161             {
162                 return this.contextNamespaceField;
163             }
164             set
165             {
166                 this.contextNamespaceField = value;
167                 this.RaisePropertyChanged("ContextNamespace");
168             }
169         }
170 
171         /// <remarks/>
172         [System.Xml.Serialization.XmlAttributeAttribute()]
173         public string Class
174         {
175             get
176             {
177                 return this.classField;
178             }
179             set
180             {
181                 this.classField = value;
182                 this.RaisePropertyChanged("Class");
183             }
184         }
185 
186         /// <remarks/>
187         [System.Xml.Serialization.XmlAttributeAttribute()]
188         public AccessModifier AccessModifier
189         {
190             get
191             {
192                 return this.accessModifierField;
193             }
194             set
195             {
196                 this.accessModifierField = value;
197                 this.RaisePropertyChanged("AccessModifier");
198             }
199         }
200 
201         /// <remarks/>
202         [System.Xml.Serialization.XmlIgnoreAttribute()]
203         public bool AccessModifierSpecified
204         {
205             get
206             {
207                 return this.accessModifierFieldSpecified;
208             }
209             set
210             {
211                 this.accessModifierFieldSpecified = value;
212                 this.RaisePropertyChanged("AccessModifierSpecified");
213             }
214         }
215 
216         /// <remarks/>
217         [System.Xml.Serialization.XmlAttributeAttribute()]
218         public ClassModifier Modifier
219         {
220             get
221             {
222                 return this.modifierField;
223             }
224             set
225             {
226                 this.modifierField = value;
227                 this.RaisePropertyChanged("Modifier");
228             }
229         }
230 
231         /// <remarks/>
232         [System.Xml.Serialization.XmlIgnoreAttribute()]
233         public bool ModifierSpecified
234         {
235             get
236             {
237                 return this.modifierFieldSpecified;
238             }
239             set
240             {
241                 this.modifierFieldSpecified = value;
242                 this.RaisePropertyChanged("ModifierSpecified");
243             }
244         }
245 
246         /// <remarks/>
247         [System.Xml.Serialization.XmlAttributeAttribute()]
248         public string BaseType
249         {
250             get
251             {
252                 return this.baseTypeField;
253             }
254             set
255             {
256                 this.baseTypeField = value;
257                 this.RaisePropertyChanged("BaseType");
258             }
259         }
260 
261         /// <remarks/>
262         [System.Xml.Serialization.XmlAttributeAttribute()]
263         public string Provider
264         {
265             get
266             {
267                 return this.providerField;
268             }
269             set
270             {
271                 this.providerField = value;
272                 this.RaisePropertyChanged("Provider");
273             }
274         }
275 
276         /// <remarks/>
277         [System.Xml.Serialization.XmlAttributeAttribute()]
278         public bool ExternalMapping
279         {
280             get
281             {
282                 return this.externalMappingField;
283             }
284             set
285             {
286                 this.externalMappingField = value;
287                 this.RaisePropertyChanged("ExternalMapping");
288             }
289         }
290 
291         /// <remarks/>
292         [System.Xml.Serialization.XmlIgnoreAttribute()]
293         public bool ExternalMappingSpecified
294         {
295             get
296             {
297                 return this.externalMappingFieldSpecified;
298             }
299             set
300             {
301                 this.externalMappingFieldSpecified = value;
302                 this.RaisePropertyChanged("ExternalMappingSpecified");
303             }
304         }
305 
306         /// <remarks/>
307         [System.Xml.Serialization.XmlAttributeAttribute()]
308         public SerializationMode Serialization
309         {
310             get
311             {
312                 return this.serializationField;
313             }
314             set
315             {
316                 this.serializationField = value;
317                 this.RaisePropertyChanged("Serialization");
318             }
319         }
320 
321         /// <remarks/>
322         [System.Xml.Serialization.XmlIgnoreAttribute()]
323         public bool SerializationSpecified
324         {
325             get
326             {
327                 return this.serializationFieldSpecified;
328             }
329             set
330             {
331                 this.serializationFieldSpecified = value;
332                 this.RaisePropertyChanged("SerializationSpecified");
333             }
334         }
335 
336         /// <remarks/>
337         [System.Xml.Serialization.XmlAttributeAttribute()]
338         public string EntityBase
339         {
340             get
341             {
342                 return this.entityBaseField;
343             }
344             set
345             {
346                 this.entityBaseField = value;
347                 this.RaisePropertyChanged("EntityBase");
348             }
349         }
350 
351         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
352 
RaisePropertyChanged(string propertyName)353         protected void RaisePropertyChanged(string propertyName)
354         {
355             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
356             if ((propertyChanged != null))
357             {
358                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
359             }
360         }
361     }
362 
363     /// <remarks/>
364     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
365     [System.SerializableAttribute()]
366     [System.Diagnostics.DebuggerStepThroughAttribute()]
367     [System.ComponentModel.DesignerCategoryAttribute("code")]
368     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
369 #if !MONO_STRICT
370     public
371 #endif
372     partial class Connection : object, System.ComponentModel.INotifyPropertyChanged
373     {
374 
375         private string providerField;
376 
377         private ConnectionMode modeField;
378 
379         private bool modeFieldSpecified;
380 
381         private string connectionStringField;
382 
383         private string settingsObjectNameField;
384 
385         private string settingsPropertyNameField;
386 
387         /// <remarks/>
388         [System.Xml.Serialization.XmlAttributeAttribute()]
389         public string Provider
390         {
391             get
392             {
393                 return this.providerField;
394             }
395             set
396             {
397                 this.providerField = value;
398                 this.RaisePropertyChanged("Provider");
399             }
400         }
401 
402         /// <remarks/>
403         [System.Xml.Serialization.XmlAttributeAttribute()]
404         public ConnectionMode Mode
405         {
406             get
407             {
408                 return this.modeField;
409             }
410             set
411             {
412                 this.modeField = value;
413                 this.RaisePropertyChanged("Mode");
414             }
415         }
416 
417         /// <remarks/>
418         [System.Xml.Serialization.XmlIgnoreAttribute()]
419         public bool ModeSpecified
420         {
421             get
422             {
423                 return this.modeFieldSpecified;
424             }
425             set
426             {
427                 this.modeFieldSpecified = value;
428                 this.RaisePropertyChanged("ModeSpecified");
429             }
430         }
431 
432         /// <remarks/>
433         [System.Xml.Serialization.XmlAttributeAttribute()]
434         public string ConnectionString
435         {
436             get
437             {
438                 return this.connectionStringField;
439             }
440             set
441             {
442                 this.connectionStringField = value;
443                 this.RaisePropertyChanged("ConnectionString");
444             }
445         }
446 
447         /// <remarks/>
448         [System.Xml.Serialization.XmlAttributeAttribute()]
449         public string SettingsObjectName
450         {
451             get
452             {
453                 return this.settingsObjectNameField;
454             }
455             set
456             {
457                 this.settingsObjectNameField = value;
458                 this.RaisePropertyChanged("SettingsObjectName");
459             }
460         }
461 
462         /// <remarks/>
463         [System.Xml.Serialization.XmlAttributeAttribute()]
464         public string SettingsPropertyName
465         {
466             get
467             {
468                 return this.settingsPropertyNameField;
469             }
470             set
471             {
472                 this.settingsPropertyNameField = value;
473                 this.RaisePropertyChanged("SettingsPropertyName");
474             }
475         }
476 
477         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
478 
RaisePropertyChanged(string propertyName)479         protected void RaisePropertyChanged(string propertyName)
480         {
481             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
482             if ((propertyChanged != null))
483             {
484                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
485             }
486         }
487     }
488 
489     /// <remarks/>
490     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
491     [System.SerializableAttribute()]
492     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
493 #if !MONO_STRICT
494     public
495 #endif
496     enum ConnectionMode
497     {
498 
499         /// <remarks/>
500         ConnectionString,
501 
502         /// <remarks/>
503         AppSettings,
504 
505         /// <remarks/>
506         WebSettings,
507     }
508 
509     /// <remarks/>
510     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
511     [System.SerializableAttribute()]
512     [System.Diagnostics.DebuggerStepThroughAttribute()]
513     [System.ComponentModel.DesignerCategoryAttribute("code")]
514     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
515 #if !MONO_STRICT
516     public
517 #endif
518     partial class Return : object, System.ComponentModel.INotifyPropertyChanged
519     {
520 
521         private string typeField;
522 
523         private string dbTypeField;
524 
525         /// <remarks/>
526         [System.Xml.Serialization.XmlAttributeAttribute()]
527         public string Type
528         {
529             get
530             {
531                 return this.typeField;
532             }
533             set
534             {
535                 this.typeField = value;
536                 this.RaisePropertyChanged("Type");
537             }
538         }
539 
540         /// <remarks/>
541         [System.Xml.Serialization.XmlAttributeAttribute()]
542         public string DbType
543         {
544             get
545             {
546                 return this.dbTypeField;
547             }
548             set
549             {
550                 this.dbTypeField = value;
551                 this.RaisePropertyChanged("DbType");
552             }
553         }
554 
555         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
556 
RaisePropertyChanged(string propertyName)557         protected void RaisePropertyChanged(string propertyName)
558         {
559             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
560             if ((propertyChanged != null))
561             {
562                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
563             }
564         }
565     }
566 
567     /// <remarks/>
568     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
569     [System.SerializableAttribute()]
570     [System.Diagnostics.DebuggerStepThroughAttribute()]
571     [System.ComponentModel.DesignerCategoryAttribute("code")]
572     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
573 #if !MONO_STRICT
574     public
575 #endif
576     partial class Parameter : object, System.ComponentModel.INotifyPropertyChanged
577     {
578 
579         private string nameField;
580 
581         private string parameter1Field;
582 
583         private string typeField;
584 
585         private string dbTypeField;
586 
587         private ParameterDirection directionField;
588 
589         private bool directionFieldSpecified;
590 
591         /// <remarks/>
592         [System.Xml.Serialization.XmlAttributeAttribute()]
593         public string Name
594         {
595             get
596             {
597                 return this.nameField;
598             }
599             set
600             {
601                 this.nameField = value;
602                 this.RaisePropertyChanged("Name");
603             }
604         }
605 
606         /// <remarks/>
607         [System.Xml.Serialization.XmlAttributeAttribute("Parameter")]
608         public string Parameter1
609         {
610             get
611             {
612                 return this.parameter1Field;
613             }
614             set
615             {
616                 this.parameter1Field = value;
617                 this.RaisePropertyChanged("Parameter1");
618             }
619         }
620 
621         /// <remarks/>
622         [System.Xml.Serialization.XmlAttributeAttribute()]
623         public string Type
624         {
625             get
626             {
627                 return this.typeField;
628             }
629             set
630             {
631                 this.typeField = value;
632                 this.RaisePropertyChanged("Type");
633             }
634         }
635 
636         /// <remarks/>
637         [System.Xml.Serialization.XmlAttributeAttribute()]
638         public string DbType
639         {
640             get
641             {
642                 return this.dbTypeField;
643             }
644             set
645             {
646                 this.dbTypeField = value;
647                 this.RaisePropertyChanged("DbType");
648             }
649         }
650 
651         /// <remarks/>
652         [System.Xml.Serialization.XmlAttributeAttribute()]
653         public ParameterDirection Direction
654         {
655             get
656             {
657                 return this.directionField;
658             }
659             set
660             {
661                 this.directionField = value;
662                 this.RaisePropertyChanged("Direction");
663             }
664         }
665 
666         /// <remarks/>
667         [System.Xml.Serialization.XmlIgnoreAttribute()]
668         public bool DirectionSpecified
669         {
670             get
671             {
672                 return this.directionFieldSpecified;
673             }
674             set
675             {
676                 this.directionFieldSpecified = value;
677                 this.RaisePropertyChanged("DirectionSpecified");
678             }
679         }
680 
681         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
682 
RaisePropertyChanged(string propertyName)683         protected void RaisePropertyChanged(string propertyName)
684         {
685             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
686             if ((propertyChanged != null))
687             {
688                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
689             }
690         }
691     }
692 
693     /// <remarks/>
694     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
695     [System.SerializableAttribute()]
696     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
697 #if !MONO_STRICT
698     public
699 #endif
700     enum ParameterDirection
701     {
702 
703         /// <remarks/>
704         In,
705 
706         /// <remarks/>
707         Out,
708 
709         /// <remarks/>
710         InOut,
711     }
712 
713     /// <remarks/>
714     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
715     [System.SerializableAttribute()]
716     [System.Diagnostics.DebuggerStepThroughAttribute()]
717     [System.ComponentModel.DesignerCategoryAttribute("code")]
718     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
719 #if !MONO_STRICT
720     public
721 #endif
722     partial class Function : object, System.ComponentModel.INotifyPropertyChanged
723     {
724 
725         private Parameter[] parameterField;
726 
727         private object[] itemsField;
728 
729         private string nameField;
730 
731         private string idField;
732 
733         private string methodField;
734 
735         private AccessModifier accessModifierField;
736 
737         private bool accessModifierFieldSpecified;
738 
739         private MemberModifier modifierField;
740 
741         private bool modifierFieldSpecified;
742 
743         private bool hasMultipleResultsField;
744 
745         private bool hasMultipleResultsFieldSpecified;
746 
747         private bool isComposableField;
748 
749         private bool isComposableFieldSpecified;
750 
751         /// <remarks/>
752         [System.Xml.Serialization.XmlElementAttribute("Parameter")]
753         public Parameter[] Parameter
754         {
755             get
756             {
757                 return this.parameterField;
758             }
759             set
760             {
761                 this.parameterField = value;
762                 this.RaisePropertyChanged("Parameter");
763             }
764         }
765 
766         /// <remarks/>
767         [System.Xml.Serialization.XmlElementAttribute("ElementType", typeof(Type))]
768         [System.Xml.Serialization.XmlElementAttribute("Return", typeof(Return))]
769         public object[] Items
770         {
771             get
772             {
773                 return this.itemsField;
774             }
775             set
776             {
777                 this.itemsField = value;
778                 this.RaisePropertyChanged("Items");
779             }
780         }
781 
782         /// <remarks/>
783         [System.Xml.Serialization.XmlAttributeAttribute()]
784         public string Name
785         {
786             get
787             {
788                 return this.nameField;
789             }
790             set
791             {
792                 this.nameField = value;
793                 this.RaisePropertyChanged("Name");
794             }
795         }
796 
797         /// <remarks/>
798         [System.Xml.Serialization.XmlAttributeAttribute(DataType = "ID")]
799         public string Id
800         {
801             get
802             {
803                 return this.idField;
804             }
805             set
806             {
807                 this.idField = value;
808                 this.RaisePropertyChanged("Id");
809             }
810         }
811 
812         /// <remarks/>
813         [System.Xml.Serialization.XmlAttributeAttribute()]
814         public string Method
815         {
816             get
817             {
818                 return this.methodField;
819             }
820             set
821             {
822                 this.methodField = value;
823                 this.RaisePropertyChanged("Method");
824             }
825         }
826 
827         /// <remarks/>
828         [System.Xml.Serialization.XmlAttributeAttribute()]
829         public AccessModifier AccessModifier
830         {
831             get
832             {
833                 return this.accessModifierField;
834             }
835             set
836             {
837                 this.accessModifierField = value;
838                 this.RaisePropertyChanged("AccessModifier");
839             }
840         }
841 
842         /// <remarks/>
843         [System.Xml.Serialization.XmlIgnoreAttribute()]
844         public bool AccessModifierSpecified
845         {
846             get
847             {
848                 return this.accessModifierFieldSpecified;
849             }
850             set
851             {
852                 this.accessModifierFieldSpecified = value;
853                 this.RaisePropertyChanged("AccessModifierSpecified");
854             }
855         }
856 
857         /// <remarks/>
858         [System.Xml.Serialization.XmlAttributeAttribute()]
859         public MemberModifier Modifier
860         {
861             get
862             {
863                 return this.modifierField;
864             }
865             set
866             {
867                 this.modifierField = value;
868                 this.RaisePropertyChanged("Modifier");
869             }
870         }
871 
872         /// <remarks/>
873         [System.Xml.Serialization.XmlIgnoreAttribute()]
874         public bool ModifierSpecified
875         {
876             get
877             {
878                 return this.modifierFieldSpecified;
879             }
880             set
881             {
882                 this.modifierFieldSpecified = value;
883                 this.RaisePropertyChanged("ModifierSpecified");
884             }
885         }
886 
887         /// <remarks/>
888         [System.Xml.Serialization.XmlAttributeAttribute()]
889         public bool HasMultipleResults
890         {
891             get
892             {
893                 return this.hasMultipleResultsField;
894             }
895             set
896             {
897                 this.hasMultipleResultsField = value;
898                 this.RaisePropertyChanged("HasMultipleResults");
899             }
900         }
901 
902         /// <remarks/>
903         [System.Xml.Serialization.XmlIgnoreAttribute()]
904         public bool HasMultipleResultsSpecified
905         {
906             get
907             {
908                 return this.hasMultipleResultsFieldSpecified;
909             }
910             set
911             {
912                 this.hasMultipleResultsFieldSpecified = value;
913                 this.RaisePropertyChanged("HasMultipleResultsSpecified");
914             }
915         }
916 
917         /// <remarks/>
918         [System.Xml.Serialization.XmlAttributeAttribute()]
919         public bool IsComposable
920         {
921             get
922             {
923                 return this.isComposableField;
924             }
925             set
926             {
927                 this.isComposableField = value;
928                 this.RaisePropertyChanged("IsComposable");
929             }
930         }
931 
932         /// <remarks/>
933         [System.Xml.Serialization.XmlIgnoreAttribute()]
934         public bool IsComposableSpecified
935         {
936             get
937             {
938                 return this.isComposableFieldSpecified;
939             }
940             set
941             {
942                 this.isComposableFieldSpecified = value;
943                 this.RaisePropertyChanged("IsComposableSpecified");
944             }
945         }
946 
947         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
948 
RaisePropertyChanged(string propertyName)949         protected void RaisePropertyChanged(string propertyName)
950         {
951             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
952             if ((propertyChanged != null))
953             {
954                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
955             }
956         }
957     }
958 
959     /// <remarks/>
960     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
961     [System.SerializableAttribute()]
962     [System.Diagnostics.DebuggerStepThroughAttribute()]
963     [System.ComponentModel.DesignerCategoryAttribute("code")]
964     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
965 #if !MONO_STRICT
966     public
967 #endif
968     partial class Type : object, System.ComponentModel.INotifyPropertyChanged
969     {
970 
971         private object[] itemsField;
972 
973         private Type[] type1Field;
974 
975         private string idRefField;
976 
977         private string idField;
978 
979         private string nameField;
980 
981         private string inheritanceCodeField;
982 
983         private bool isInheritanceDefaultField;
984 
985         private bool isInheritanceDefaultFieldSpecified;
986 
987         private AccessModifier accessModifierField;
988 
989         private bool accessModifierFieldSpecified;
990 
991         private ClassModifier modifierField;
992 
993         private bool modifierFieldSpecified;
994 
995         /// <remarks/>
996         [System.Xml.Serialization.XmlElementAttribute("Association", typeof(Association))]
997         [System.Xml.Serialization.XmlElementAttribute("Column", typeof(Column))]
998         public object[] Items
999         {
1000             get
1001             {
1002                 return this.itemsField;
1003             }
1004             set
1005             {
1006                 this.itemsField = value;
1007                 this.RaisePropertyChanged("Items");
1008             }
1009         }
1010 
1011         /// <remarks/>
1012         [System.Xml.Serialization.XmlElementAttribute("Type")]
1013         public Type[] Type1
1014         {
1015             get
1016             {
1017                 return this.type1Field;
1018             }
1019             set
1020             {
1021                 this.type1Field = value;
1022                 this.RaisePropertyChanged("Type1");
1023             }
1024         }
1025 
1026         /// <remarks/>
1027         [System.Xml.Serialization.XmlAttributeAttribute(DataType = "IDREF")]
1028         public string IdRef
1029         {
1030             get
1031             {
1032                 return this.idRefField;
1033             }
1034             set
1035             {
1036                 this.idRefField = value;
1037                 this.RaisePropertyChanged("IdRef");
1038             }
1039         }
1040 
1041         /// <remarks/>
1042         [System.Xml.Serialization.XmlAttributeAttribute(DataType = "ID")]
1043         public string Id
1044         {
1045             get
1046             {
1047                 return this.idField;
1048             }
1049             set
1050             {
1051                 this.idField = value;
1052                 this.RaisePropertyChanged("Id");
1053             }
1054         }
1055 
1056         /// <remarks/>
1057         [System.Xml.Serialization.XmlAttributeAttribute()]
1058         public string Name
1059         {
1060             get
1061             {
1062                 return this.nameField;
1063             }
1064             set
1065             {
1066                 this.nameField = value;
1067                 this.RaisePropertyChanged("Name");
1068             }
1069         }
1070 
1071         /// <remarks/>
1072         [System.Xml.Serialization.XmlAttributeAttribute()]
1073         public string InheritanceCode
1074         {
1075             get
1076             {
1077                 return this.inheritanceCodeField;
1078             }
1079             set
1080             {
1081                 this.inheritanceCodeField = value;
1082                 this.RaisePropertyChanged("InheritanceCode");
1083             }
1084         }
1085 
1086         /// <remarks/>
1087         [System.Xml.Serialization.XmlAttributeAttribute()]
1088         public bool IsInheritanceDefault
1089         {
1090             get
1091             {
1092                 return this.isInheritanceDefaultField;
1093             }
1094             set
1095             {
1096                 this.isInheritanceDefaultField = value;
1097                 this.RaisePropertyChanged("IsInheritanceDefault");
1098             }
1099         }
1100 
1101         /// <remarks/>
1102         [System.Xml.Serialization.XmlIgnoreAttribute()]
1103         public bool IsInheritanceDefaultSpecified
1104         {
1105             get
1106             {
1107                 return this.isInheritanceDefaultFieldSpecified;
1108             }
1109             set
1110             {
1111                 this.isInheritanceDefaultFieldSpecified = value;
1112                 this.RaisePropertyChanged("IsInheritanceDefaultSpecified");
1113             }
1114         }
1115 
1116         /// <remarks/>
1117         [System.Xml.Serialization.XmlAttributeAttribute()]
1118         public AccessModifier AccessModifier
1119         {
1120             get
1121             {
1122                 return this.accessModifierField;
1123             }
1124             set
1125             {
1126                 this.accessModifierField = value;
1127                 this.RaisePropertyChanged("AccessModifier");
1128             }
1129         }
1130 
1131         /// <remarks/>
1132         [System.Xml.Serialization.XmlIgnoreAttribute()]
1133         public bool AccessModifierSpecified
1134         {
1135             get
1136             {
1137                 return this.accessModifierFieldSpecified;
1138             }
1139             set
1140             {
1141                 this.accessModifierFieldSpecified = value;
1142                 this.RaisePropertyChanged("AccessModifierSpecified");
1143             }
1144         }
1145 
1146         /// <remarks/>
1147         [System.Xml.Serialization.XmlAttributeAttribute()]
1148         public ClassModifier Modifier
1149         {
1150             get
1151             {
1152                 return this.modifierField;
1153             }
1154             set
1155             {
1156                 this.modifierField = value;
1157                 this.RaisePropertyChanged("Modifier");
1158             }
1159         }
1160 
1161         /// <remarks/>
1162         [System.Xml.Serialization.XmlIgnoreAttribute()]
1163         public bool ModifierSpecified
1164         {
1165             get
1166             {
1167                 return this.modifierFieldSpecified;
1168             }
1169             set
1170             {
1171                 this.modifierFieldSpecified = value;
1172                 this.RaisePropertyChanged("ModifierSpecified");
1173             }
1174         }
1175 
1176         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1177 
RaisePropertyChanged(string propertyName)1178         protected void RaisePropertyChanged(string propertyName)
1179         {
1180             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
1181             if ((propertyChanged != null))
1182             {
1183                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1184             }
1185         }
1186     }
1187 
1188     /// <remarks/>
1189     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
1190     [System.SerializableAttribute()]
1191     [System.Diagnostics.DebuggerStepThroughAttribute()]
1192     [System.ComponentModel.DesignerCategoryAttribute("code")]
1193     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
1194 #if !MONO_STRICT
1195     public
1196 #endif
1197     partial class Association : object, System.ComponentModel.INotifyPropertyChanged
1198     {
1199 
1200         private string nameField;
1201 
1202         private string memberField;
1203 
1204         private string storageField;
1205 
1206         private AccessModifier accessModifierField;
1207 
1208         private bool accessModifierFieldSpecified;
1209 
1210         private MemberModifier modifierField;
1211 
1212         private bool modifierFieldSpecified;
1213 
1214         private string typeField;
1215 
1216         private string thisKeyField;
1217 
1218         private string otherKeyField;
1219 
1220         private bool isForeignKeyField;
1221 
1222         private bool isForeignKeyFieldSpecified;
1223 
1224         private Cardinality cardinalityField;
1225 
1226         private bool cardinalityFieldSpecified;
1227 
1228         private string deleteRuleField;
1229 
1230         private bool deleteOnNullField;
1231 
1232         private bool deleteOnNullFieldSpecified;
1233 
1234         /// <remarks/>
1235         [System.Xml.Serialization.XmlAttributeAttribute()]
1236         public string Name
1237         {
1238             get
1239             {
1240                 return this.nameField;
1241             }
1242             set
1243             {
1244                 this.nameField = value;
1245                 this.RaisePropertyChanged("Name");
1246             }
1247         }
1248 
1249         /// <remarks/>
1250         [System.Xml.Serialization.XmlAttributeAttribute()]
1251         public string Member
1252         {
1253             get
1254             {
1255                 return this.memberField;
1256             }
1257             set
1258             {
1259                 this.memberField = value;
1260                 this.RaisePropertyChanged("Member");
1261             }
1262         }
1263 
1264         /// <remarks/>
1265         [System.Xml.Serialization.XmlAttributeAttribute()]
1266         public string Storage
1267         {
1268             get
1269             {
1270                 return this.storageField;
1271             }
1272             set
1273             {
1274                 this.storageField = value;
1275                 this.RaisePropertyChanged("Storage");
1276             }
1277         }
1278 
1279         /// <remarks/>
1280         [System.Xml.Serialization.XmlAttributeAttribute()]
1281         public AccessModifier AccessModifier
1282         {
1283             get
1284             {
1285                 return this.accessModifierField;
1286             }
1287             set
1288             {
1289                 this.accessModifierField = value;
1290                 this.RaisePropertyChanged("AccessModifier");
1291             }
1292         }
1293 
1294         /// <remarks/>
1295         [System.Xml.Serialization.XmlIgnoreAttribute()]
1296         public bool AccessModifierSpecified
1297         {
1298             get
1299             {
1300                 return this.accessModifierFieldSpecified;
1301             }
1302             set
1303             {
1304                 this.accessModifierFieldSpecified = value;
1305                 this.RaisePropertyChanged("AccessModifierSpecified");
1306             }
1307         }
1308 
1309         /// <remarks/>
1310         [System.Xml.Serialization.XmlAttributeAttribute()]
1311         public MemberModifier Modifier
1312         {
1313             get
1314             {
1315                 return this.modifierField;
1316             }
1317             set
1318             {
1319                 this.modifierField = value;
1320                 this.RaisePropertyChanged("Modifier");
1321             }
1322         }
1323 
1324         /// <remarks/>
1325         [System.Xml.Serialization.XmlIgnoreAttribute()]
1326         public bool ModifierSpecified
1327         {
1328             get
1329             {
1330                 return this.modifierFieldSpecified;
1331             }
1332             set
1333             {
1334                 this.modifierFieldSpecified = value;
1335                 this.RaisePropertyChanged("ModifierSpecified");
1336             }
1337         }
1338 
1339         /// <remarks/>
1340         [System.Xml.Serialization.XmlAttributeAttribute()]
1341         public string Type
1342         {
1343             get
1344             {
1345                 return this.typeField;
1346             }
1347             set
1348             {
1349                 this.typeField = value;
1350                 this.RaisePropertyChanged("Type");
1351             }
1352         }
1353 
1354         /// <remarks/>
1355         [System.Xml.Serialization.XmlAttributeAttribute()]
1356         public string ThisKey
1357         {
1358             get
1359             {
1360                 return this.thisKeyField;
1361             }
1362             set
1363             {
1364                 this.thisKeyField = value;
1365                 this.RaisePropertyChanged("ThisKey");
1366             }
1367         }
1368 
1369         /// <remarks/>
1370         [System.Xml.Serialization.XmlAttributeAttribute()]
1371         public string OtherKey
1372         {
1373             get
1374             {
1375                 return this.otherKeyField;
1376             }
1377             set
1378             {
1379                 this.otherKeyField = value;
1380                 this.RaisePropertyChanged("OtherKey");
1381             }
1382         }
1383 
1384         /// <remarks/>
1385         [System.Xml.Serialization.XmlAttributeAttribute()]
1386         public bool IsForeignKey
1387         {
1388             get
1389             {
1390                 return this.isForeignKeyField;
1391             }
1392             set
1393             {
1394                 this.isForeignKeyField = value;
1395                 this.RaisePropertyChanged("IsForeignKey");
1396             }
1397         }
1398 
1399         /// <remarks/>
1400         [System.Xml.Serialization.XmlIgnoreAttribute()]
1401         public bool IsForeignKeySpecified
1402         {
1403             get
1404             {
1405                 return this.isForeignKeyFieldSpecified;
1406             }
1407             set
1408             {
1409                 this.isForeignKeyFieldSpecified = value;
1410                 this.RaisePropertyChanged("IsForeignKeySpecified");
1411             }
1412         }
1413 
1414         /// <remarks/>
1415         [System.Xml.Serialization.XmlAttributeAttribute()]
1416         public Cardinality Cardinality
1417         {
1418             get
1419             {
1420                 return this.cardinalityField;
1421             }
1422             set
1423             {
1424                 this.cardinalityField = value;
1425                 this.RaisePropertyChanged("Cardinality");
1426             }
1427         }
1428 
1429         /// <remarks/>
1430         [System.Xml.Serialization.XmlIgnoreAttribute()]
1431         public bool CardinalitySpecified
1432         {
1433             get
1434             {
1435                 return this.cardinalityFieldSpecified;
1436             }
1437             set
1438             {
1439                 this.cardinalityFieldSpecified = value;
1440                 this.RaisePropertyChanged("CardinalitySpecified");
1441             }
1442         }
1443 
1444         /// <remarks/>
1445         [System.Xml.Serialization.XmlAttributeAttribute()]
1446         public string DeleteRule
1447         {
1448             get
1449             {
1450                 return this.deleteRuleField;
1451             }
1452             set
1453             {
1454                 this.deleteRuleField = value;
1455                 this.RaisePropertyChanged("DeleteRule");
1456             }
1457         }
1458 
1459         /// <remarks/>
1460         [System.Xml.Serialization.XmlAttributeAttribute()]
1461         public bool DeleteOnNull
1462         {
1463             get
1464             {
1465                 return this.deleteOnNullField;
1466             }
1467             set
1468             {
1469                 this.deleteOnNullField = value;
1470                 this.RaisePropertyChanged("DeleteOnNull");
1471             }
1472         }
1473 
1474         /// <remarks/>
1475         [System.Xml.Serialization.XmlIgnoreAttribute()]
1476         public bool DeleteOnNullSpecified
1477         {
1478             get
1479             {
1480                 return this.deleteOnNullFieldSpecified;
1481             }
1482             set
1483             {
1484                 this.deleteOnNullFieldSpecified = value;
1485                 this.RaisePropertyChanged("DeleteOnNullSpecified");
1486             }
1487         }
1488 
1489         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1490 
RaisePropertyChanged(string propertyName)1491         protected void RaisePropertyChanged(string propertyName)
1492         {
1493             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
1494             if ((propertyChanged != null))
1495             {
1496                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1497             }
1498         }
1499     }
1500 
1501     /// <remarks/>
1502     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
1503     [System.SerializableAttribute()]
1504     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
1505 #if !MONO_STRICT
1506     public
1507 #endif
1508     enum AccessModifier
1509     {
1510 
1511         /// <remarks/>
1512         Public,
1513 
1514         /// <remarks/>
1515         Internal,
1516 
1517         /// <remarks/>
1518         Protected,
1519 
1520         /// <remarks/>
1521         ProtectedInternal,
1522 
1523         /// <remarks/>
1524         Private,
1525     }
1526 
1527     /// <remarks/>
1528     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
1529     [System.SerializableAttribute()]
1530     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
1531 #if !MONO_STRICT
1532     public
1533 #endif
1534     enum MemberModifier
1535     {
1536 
1537         /// <remarks/>
1538         Virtual,
1539 
1540         /// <remarks/>
1541         Override,
1542 
1543         /// <remarks/>
1544         New,
1545 
1546         /// <remarks/>
1547         NewVirtual,
1548     }
1549 
1550     /// <remarks/>
1551     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
1552     [System.SerializableAttribute()]
1553     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
1554 #if !MONO_STRICT
1555     public
1556 #endif
1557     enum Cardinality
1558     {
1559 
1560         /// <remarks/>
1561         One,
1562 
1563         /// <remarks/>
1564         Many,
1565     }
1566 
1567     /// <remarks/>
1568     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
1569     [System.SerializableAttribute()]
1570     [System.Diagnostics.DebuggerStepThroughAttribute()]
1571     [System.ComponentModel.DesignerCategoryAttribute("code")]
1572     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
1573 #if !MONO_STRICT
1574     public
1575 #endif
1576     partial class Column : object, System.ComponentModel.INotifyPropertyChanged
1577     {
1578 
1579         private string nameField;
1580 
1581         private string memberField;
1582 
1583         private string storageField;
1584 
1585         private AccessModifier accessModifierField;
1586 
1587         private bool accessModifierFieldSpecified;
1588 
1589         private MemberModifier modifierField;
1590 
1591         private bool modifierFieldSpecified;
1592 
1593         private string typeField;
1594 
1595         private string dbTypeField;
1596 
1597         private bool isReadOnlyField;
1598 
1599         private bool isReadOnlyFieldSpecified;
1600 
1601         private bool isPrimaryKeyField;
1602 
1603         private bool isPrimaryKeyFieldSpecified;
1604 
1605         private bool isDbGeneratedField;
1606 
1607         private bool isDbGeneratedFieldSpecified;
1608 
1609         private bool canBeNullField;
1610 
1611         private bool canBeNullFieldSpecified;
1612 
1613         private UpdateCheck updateCheckField;
1614 
1615         private bool updateCheckFieldSpecified;
1616 
1617         private bool isDiscriminatorField;
1618 
1619         private bool isDiscriminatorFieldSpecified;
1620 
1621         private string expressionField;
1622 
1623         private bool isVersionField;
1624 
1625         private bool isVersionFieldSpecified;
1626 
1627         private bool isDelayLoadedField;
1628 
1629         private bool isDelayLoadedFieldSpecified;
1630 
1631         private AutoSync autoSyncField;
1632 
1633         private bool autoSyncFieldSpecified;
1634 
1635         /// <remarks/>
1636         [System.Xml.Serialization.XmlAttributeAttribute()]
1637         public string Name
1638         {
1639             get
1640             {
1641                 return this.nameField;
1642             }
1643             set
1644             {
1645                 this.nameField = value;
1646                 this.RaisePropertyChanged("Name");
1647             }
1648         }
1649 
1650         /// <remarks/>
1651         [System.Xml.Serialization.XmlAttributeAttribute()]
1652         public string Member
1653         {
1654             get
1655             {
1656                 return this.memberField;
1657             }
1658             set
1659             {
1660                 this.memberField = value;
1661                 this.RaisePropertyChanged("Member");
1662             }
1663         }
1664 
1665         /// <remarks/>
1666         [System.Xml.Serialization.XmlAttributeAttribute()]
1667         public string Storage
1668         {
1669             get
1670             {
1671                 return this.storageField;
1672             }
1673             set
1674             {
1675                 this.storageField = value;
1676                 this.RaisePropertyChanged("Storage");
1677             }
1678         }
1679 
1680         /// <remarks/>
1681         [System.Xml.Serialization.XmlAttributeAttribute()]
1682         public AccessModifier AccessModifier
1683         {
1684             get
1685             {
1686                 return this.accessModifierField;
1687             }
1688             set
1689             {
1690                 this.accessModifierField = value;
1691                 this.RaisePropertyChanged("AccessModifier");
1692             }
1693         }
1694 
1695         /// <remarks/>
1696         [System.Xml.Serialization.XmlIgnoreAttribute()]
1697         public bool AccessModifierSpecified
1698         {
1699             get
1700             {
1701                 return this.accessModifierFieldSpecified;
1702             }
1703             set
1704             {
1705                 this.accessModifierFieldSpecified = value;
1706                 this.RaisePropertyChanged("AccessModifierSpecified");
1707             }
1708         }
1709 
1710         /// <remarks/>
1711         [System.Xml.Serialization.XmlAttributeAttribute()]
1712         public MemberModifier Modifier
1713         {
1714             get
1715             {
1716                 return this.modifierField;
1717             }
1718             set
1719             {
1720                 this.modifierField = value;
1721                 this.RaisePropertyChanged("Modifier");
1722             }
1723         }
1724 
1725         /// <remarks/>
1726         [System.Xml.Serialization.XmlIgnoreAttribute()]
1727         public bool ModifierSpecified
1728         {
1729             get
1730             {
1731                 return this.modifierFieldSpecified;
1732             }
1733             set
1734             {
1735                 this.modifierFieldSpecified = value;
1736                 this.RaisePropertyChanged("ModifierSpecified");
1737             }
1738         }
1739 
1740         /// <remarks/>
1741         [System.Xml.Serialization.XmlAttributeAttribute()]
1742         public string Type
1743         {
1744             get
1745             {
1746                 return this.typeField;
1747             }
1748             set
1749             {
1750                 this.typeField = value;
1751                 this.RaisePropertyChanged("Type");
1752             }
1753         }
1754 
1755         /// <remarks/>
1756         [System.Xml.Serialization.XmlAttributeAttribute()]
1757         public string DbType
1758         {
1759             get
1760             {
1761                 return this.dbTypeField;
1762             }
1763             set
1764             {
1765                 this.dbTypeField = value;
1766                 this.RaisePropertyChanged("DbType");
1767             }
1768         }
1769 
1770         /// <remarks/>
1771         [System.Xml.Serialization.XmlAttributeAttribute()]
1772         public bool IsReadOnly
1773         {
1774             get
1775             {
1776                 return this.isReadOnlyField;
1777             }
1778             set
1779             {
1780                 this.isReadOnlyField = value;
1781                 this.RaisePropertyChanged("IsReadOnly");
1782             }
1783         }
1784 
1785         /// <remarks/>
1786         [System.Xml.Serialization.XmlIgnoreAttribute()]
1787         public bool IsReadOnlySpecified
1788         {
1789             get
1790             {
1791                 return this.isReadOnlyFieldSpecified;
1792             }
1793             set
1794             {
1795                 this.isReadOnlyFieldSpecified = value;
1796                 this.RaisePropertyChanged("IsReadOnlySpecified");
1797             }
1798         }
1799 
1800         /// <remarks/>
1801         [System.Xml.Serialization.XmlAttributeAttribute()]
1802         public bool IsPrimaryKey
1803         {
1804             get
1805             {
1806                 return this.isPrimaryKeyField;
1807             }
1808             set
1809             {
1810                 this.isPrimaryKeyField = value;
1811                 this.RaisePropertyChanged("IsPrimaryKey");
1812             }
1813         }
1814 
1815         /// <remarks/>
1816         [System.Xml.Serialization.XmlIgnoreAttribute()]
1817         public bool IsPrimaryKeySpecified
1818         {
1819             get
1820             {
1821                 return this.isPrimaryKeyFieldSpecified;
1822             }
1823             set
1824             {
1825                 this.isPrimaryKeyFieldSpecified = value;
1826                 this.RaisePropertyChanged("IsPrimaryKeySpecified");
1827             }
1828         }
1829 
1830         /// <remarks/>
1831         [System.Xml.Serialization.XmlAttributeAttribute()]
1832         public bool IsDbGenerated
1833         {
1834             get
1835             {
1836                 return this.isDbGeneratedField;
1837             }
1838             set
1839             {
1840                 this.isDbGeneratedField = value;
1841                 this.RaisePropertyChanged("IsDbGenerated");
1842             }
1843         }
1844 
1845         /// <remarks/>
1846         [System.Xml.Serialization.XmlIgnoreAttribute()]
1847         public bool IsDbGeneratedSpecified
1848         {
1849             get
1850             {
1851                 return this.isDbGeneratedFieldSpecified;
1852             }
1853             set
1854             {
1855                 this.isDbGeneratedFieldSpecified = value;
1856                 this.RaisePropertyChanged("IsDbGeneratedSpecified");
1857             }
1858         }
1859 
1860         /// <remarks/>
1861         [System.Xml.Serialization.XmlAttributeAttribute()]
1862         public bool CanBeNull
1863         {
1864             get
1865             {
1866                 return this.canBeNullField;
1867             }
1868             set
1869             {
1870                 this.canBeNullField = value;
1871                 this.RaisePropertyChanged("CanBeNull");
1872             }
1873         }
1874 
1875         /// <remarks/>
1876         [System.Xml.Serialization.XmlIgnoreAttribute()]
1877         public bool CanBeNullSpecified
1878         {
1879             get
1880             {
1881                 return this.canBeNullFieldSpecified;
1882             }
1883             set
1884             {
1885                 this.canBeNullFieldSpecified = value;
1886                 this.RaisePropertyChanged("CanBeNullSpecified");
1887             }
1888         }
1889 
1890         /// <remarks/>
1891         [System.Xml.Serialization.XmlAttributeAttribute()]
1892         public UpdateCheck UpdateCheck
1893         {
1894             get
1895             {
1896                 return this.updateCheckField;
1897             }
1898             set
1899             {
1900                 this.updateCheckField = value;
1901                 this.RaisePropertyChanged("UpdateCheck");
1902             }
1903         }
1904 
1905         /// <remarks/>
1906         [System.Xml.Serialization.XmlIgnoreAttribute()]
1907         public bool UpdateCheckSpecified
1908         {
1909             get
1910             {
1911                 return this.updateCheckFieldSpecified;
1912             }
1913             set
1914             {
1915                 this.updateCheckFieldSpecified = value;
1916                 this.RaisePropertyChanged("UpdateCheckSpecified");
1917             }
1918         }
1919 
1920         /// <remarks/>
1921         [System.Xml.Serialization.XmlAttributeAttribute()]
1922         public bool IsDiscriminator
1923         {
1924             get
1925             {
1926                 return this.isDiscriminatorField;
1927             }
1928             set
1929             {
1930                 this.isDiscriminatorField = value;
1931                 this.RaisePropertyChanged("IsDiscriminator");
1932             }
1933         }
1934 
1935         /// <remarks/>
1936         [System.Xml.Serialization.XmlIgnoreAttribute()]
1937         public bool IsDiscriminatorSpecified
1938         {
1939             get
1940             {
1941                 return this.isDiscriminatorFieldSpecified;
1942             }
1943             set
1944             {
1945                 this.isDiscriminatorFieldSpecified = value;
1946                 this.RaisePropertyChanged("IsDiscriminatorSpecified");
1947             }
1948         }
1949 
1950         /// <remarks/>
1951         [System.Xml.Serialization.XmlAttributeAttribute()]
1952         public string Expression
1953         {
1954             get
1955             {
1956                 return this.expressionField;
1957             }
1958             set
1959             {
1960                 this.expressionField = value;
1961                 this.RaisePropertyChanged("Expression");
1962             }
1963         }
1964 
1965         /// <remarks/>
1966         [System.Xml.Serialization.XmlAttributeAttribute()]
1967         public bool IsVersion
1968         {
1969             get
1970             {
1971                 return this.isVersionField;
1972             }
1973             set
1974             {
1975                 this.isVersionField = value;
1976                 this.RaisePropertyChanged("IsVersion");
1977             }
1978         }
1979 
1980         /// <remarks/>
1981         [System.Xml.Serialization.XmlIgnoreAttribute()]
1982         public bool IsVersionSpecified
1983         {
1984             get
1985             {
1986                 return this.isVersionFieldSpecified;
1987             }
1988             set
1989             {
1990                 this.isVersionFieldSpecified = value;
1991                 this.RaisePropertyChanged("IsVersionSpecified");
1992             }
1993         }
1994 
1995         /// <remarks/>
1996         [System.Xml.Serialization.XmlAttributeAttribute()]
1997         public bool IsDelayLoaded
1998         {
1999             get
2000             {
2001                 return this.isDelayLoadedField;
2002             }
2003             set
2004             {
2005                 this.isDelayLoadedField = value;
2006                 this.RaisePropertyChanged("IsDelayLoaded");
2007             }
2008         }
2009 
2010         /// <remarks/>
2011         [System.Xml.Serialization.XmlIgnoreAttribute()]
2012         public bool IsDelayLoadedSpecified
2013         {
2014             get
2015             {
2016                 return this.isDelayLoadedFieldSpecified;
2017             }
2018             set
2019             {
2020                 this.isDelayLoadedFieldSpecified = value;
2021                 this.RaisePropertyChanged("IsDelayLoadedSpecified");
2022             }
2023         }
2024 
2025         /// <remarks/>
2026         [System.Xml.Serialization.XmlAttributeAttribute()]
2027         public AutoSync AutoSync
2028         {
2029             get
2030             {
2031                 return this.autoSyncField;
2032             }
2033             set
2034             {
2035                 this.autoSyncField = value;
2036                 this.RaisePropertyChanged("AutoSync");
2037             }
2038         }
2039 
2040         /// <remarks/>
2041         [System.Xml.Serialization.XmlIgnoreAttribute()]
2042         public bool AutoSyncSpecified
2043         {
2044             get
2045             {
2046                 return this.autoSyncFieldSpecified;
2047             }
2048             set
2049             {
2050                 this.autoSyncFieldSpecified = value;
2051                 this.RaisePropertyChanged("AutoSyncSpecified");
2052             }
2053         }
2054 
2055         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
2056 
RaisePropertyChanged(string propertyName)2057         protected void RaisePropertyChanged(string propertyName)
2058         {
2059             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
2060             if ((propertyChanged != null))
2061             {
2062                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
2063             }
2064         }
2065     }
2066 
2067     /// <remarks/>
2068     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2069     [System.SerializableAttribute()]
2070     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2071 #if !MONO_STRICT
2072     public
2073 #endif
2074     enum UpdateCheck
2075     {
2076 
2077         /// <remarks/>
2078         Always,
2079 
2080         /// <remarks/>
2081         Never,
2082 
2083         /// <remarks/>
2084         WhenChanged,
2085     }
2086 
2087     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2088     [System.SerializableAttribute()]
2089     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2090 #if !MONO_STRICT
2091     public
2092 #endif
2093     enum AutoSync
2094     {
2095         /// <remarks/>
2096         Never,
2097 
2098         /// <remarks/>
2099         OnInsert,
2100 
2101         /// <remarks/>
2102         OnUpdate,
2103 
2104         /// <remarks/>
2105         Always,
2106 
2107         /// <remarks/>
2108         Default,
2109     }
2110 
2111     /// <remarks/>
2112     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2113     [System.SerializableAttribute()]
2114     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2115 #if !MONO_STRICT
2116     public
2117 #endif
2118     enum ClassModifier
2119     {
2120 
2121         /// <remarks/>
2122         Sealed,
2123 
2124         /// <remarks/>
2125         Abstract,
2126     }
2127 
2128     /// <remarks/>
2129     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2130     [System.SerializableAttribute()]
2131     [System.Diagnostics.DebuggerStepThroughAttribute()]
2132     [System.ComponentModel.DesignerCategoryAttribute("code")]
2133     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2134 #if !MONO_STRICT
2135     public
2136 #endif
2137     partial class TableFunctionReturn : object, System.ComponentModel.INotifyPropertyChanged
2138     {
2139 
2140         private string memberField;
2141 
2142         /// <remarks/>
2143         [System.Xml.Serialization.XmlAttributeAttribute()]
2144         public string Member
2145         {
2146             get
2147             {
2148                 return this.memberField;
2149             }
2150             set
2151             {
2152                 this.memberField = value;
2153                 this.RaisePropertyChanged("Member");
2154             }
2155         }
2156 
2157         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
2158 
RaisePropertyChanged(string propertyName)2159         protected void RaisePropertyChanged(string propertyName)
2160         {
2161             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
2162             if ((propertyChanged != null))
2163             {
2164                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
2165             }
2166         }
2167     }
2168 
2169     /// <remarks/>
2170     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2171     [System.SerializableAttribute()]
2172     [System.Diagnostics.DebuggerStepThroughAttribute()]
2173     [System.ComponentModel.DesignerCategoryAttribute("code")]
2174     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2175 #if !MONO_STRICT
2176     public
2177 #endif
2178     partial class TableFunctionParameter : object, System.ComponentModel.INotifyPropertyChanged
2179     {
2180 
2181         private string parameterField;
2182 
2183         private string memberField;
2184 
2185         private Version versionField;
2186 
2187         private bool versionFieldSpecified;
2188 
2189         /// <remarks/>
2190         [System.Xml.Serialization.XmlAttributeAttribute()]
2191         public string Parameter
2192         {
2193             get
2194             {
2195                 return this.parameterField;
2196             }
2197             set
2198             {
2199                 this.parameterField = value;
2200                 this.RaisePropertyChanged("Parameter");
2201             }
2202         }
2203 
2204         /// <remarks/>
2205         [System.Xml.Serialization.XmlAttributeAttribute()]
2206         public string Member
2207         {
2208             get
2209             {
2210                 return this.memberField;
2211             }
2212             set
2213             {
2214                 this.memberField = value;
2215                 this.RaisePropertyChanged("Member");
2216             }
2217         }
2218 
2219         /// <remarks/>
2220         [System.Xml.Serialization.XmlAttributeAttribute()]
2221         public Version Version
2222         {
2223             get
2224             {
2225                 return this.versionField;
2226             }
2227             set
2228             {
2229                 this.versionField = value;
2230                 this.RaisePropertyChanged("Version");
2231             }
2232         }
2233 
2234         /// <remarks/>
2235         [System.Xml.Serialization.XmlIgnoreAttribute()]
2236         public bool VersionSpecified
2237         {
2238             get
2239             {
2240                 return this.versionFieldSpecified;
2241             }
2242             set
2243             {
2244                 this.versionFieldSpecified = value;
2245                 this.RaisePropertyChanged("VersionSpecified");
2246             }
2247         }
2248 
2249         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
2250 
RaisePropertyChanged(string propertyName)2251         protected void RaisePropertyChanged(string propertyName)
2252         {
2253             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
2254             if ((propertyChanged != null))
2255             {
2256                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
2257             }
2258         }
2259     }
2260 
2261     /// <remarks/>
2262     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2263     [System.SerializableAttribute()]
2264     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2265 #if !MONO_STRICT
2266     public
2267 #endif
2268     enum Version
2269     {
2270 
2271         /// <remarks/>
2272         Current,
2273 
2274         /// <remarks/>
2275         Original,
2276     }
2277 
2278     /// <remarks/>
2279     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2280     [System.SerializableAttribute()]
2281     [System.Diagnostics.DebuggerStepThroughAttribute()]
2282     [System.ComponentModel.DesignerCategoryAttribute("code")]
2283     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2284 #if !MONO_STRICT
2285     public
2286 #endif
2287     partial class TableFunction : object, System.ComponentModel.INotifyPropertyChanged
2288     {
2289 
2290         private TableFunctionParameter[] argumentField;
2291 
2292         private TableFunctionReturn returnField;
2293 
2294         private string functionIdField;
2295 
2296         private AccessModifier accessModifierField;
2297 
2298         private bool accessModifierFieldSpecified;
2299 
2300         /// <remarks/>
2301         [System.Xml.Serialization.XmlElementAttribute("Argument")]
2302         public TableFunctionParameter[] Argument
2303         {
2304             get
2305             {
2306                 return this.argumentField;
2307             }
2308             set
2309             {
2310                 this.argumentField = value;
2311                 this.RaisePropertyChanged("Argument");
2312             }
2313         }
2314 
2315         /// <remarks/>
2316         public TableFunctionReturn Return
2317         {
2318             get
2319             {
2320                 return this.returnField;
2321             }
2322             set
2323             {
2324                 this.returnField = value;
2325                 this.RaisePropertyChanged("Return");
2326             }
2327         }
2328 
2329         /// <remarks/>
2330         [System.Xml.Serialization.XmlAttributeAttribute(DataType = "IDREF")]
2331         public string FunctionId
2332         {
2333             get
2334             {
2335                 return this.functionIdField;
2336             }
2337             set
2338             {
2339                 this.functionIdField = value;
2340                 this.RaisePropertyChanged("FunctionId");
2341             }
2342         }
2343 
2344         /// <remarks/>
2345         [System.Xml.Serialization.XmlAttributeAttribute()]
2346         public AccessModifier AccessModifier
2347         {
2348             get
2349             {
2350                 return this.accessModifierField;
2351             }
2352             set
2353             {
2354                 this.accessModifierField = value;
2355                 this.RaisePropertyChanged("AccessModifier");
2356             }
2357         }
2358 
2359         /// <remarks/>
2360         [System.Xml.Serialization.XmlIgnoreAttribute()]
2361         public bool AccessModifierSpecified
2362         {
2363             get
2364             {
2365                 return this.accessModifierFieldSpecified;
2366             }
2367             set
2368             {
2369                 this.accessModifierFieldSpecified = value;
2370                 this.RaisePropertyChanged("AccessModifierSpecified");
2371             }
2372         }
2373 
2374         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
2375 
RaisePropertyChanged(string propertyName)2376         protected void RaisePropertyChanged(string propertyName)
2377         {
2378             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
2379             if ((propertyChanged != null))
2380             {
2381                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
2382             }
2383         }
2384     }
2385 
2386     /// <remarks/>
2387     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2388     [System.SerializableAttribute()]
2389     [System.Diagnostics.DebuggerStepThroughAttribute()]
2390     [System.ComponentModel.DesignerCategoryAttribute("code")]
2391     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2392 #if !MONO_STRICT
2393     public
2394 #endif
2395     partial class Table : object, System.ComponentModel.INotifyPropertyChanged
2396     {
2397 
2398         private Type typeField;
2399 
2400         private TableFunction insertFunctionField;
2401 
2402         private TableFunction updateFunctionField;
2403 
2404         private TableFunction deleteFunctionField;
2405 
2406         private string nameField;
2407 
2408         private string memberField;
2409 
2410         private AccessModifier accessModifierField;
2411 
2412         private bool accessModifierFieldSpecified;
2413 
2414         private MemberModifier modifierField;
2415 
2416         private bool modifierFieldSpecified;
2417 
2418         /// <remarks/>
2419         public Type Type
2420         {
2421             get
2422             {
2423                 return this.typeField;
2424             }
2425             set
2426             {
2427                 this.typeField = value;
2428                 this.RaisePropertyChanged("Type");
2429             }
2430         }
2431 
2432         /// <remarks/>
2433         public TableFunction InsertFunction
2434         {
2435             get
2436             {
2437                 return this.insertFunctionField;
2438             }
2439             set
2440             {
2441                 this.insertFunctionField = value;
2442                 this.RaisePropertyChanged("InsertFunction");
2443             }
2444         }
2445 
2446         /// <remarks/>
2447         public TableFunction UpdateFunction
2448         {
2449             get
2450             {
2451                 return this.updateFunctionField;
2452             }
2453             set
2454             {
2455                 this.updateFunctionField = value;
2456                 this.RaisePropertyChanged("UpdateFunction");
2457             }
2458         }
2459 
2460         /// <remarks/>
2461         public TableFunction DeleteFunction
2462         {
2463             get
2464             {
2465                 return this.deleteFunctionField;
2466             }
2467             set
2468             {
2469                 this.deleteFunctionField = value;
2470                 this.RaisePropertyChanged("DeleteFunction");
2471             }
2472         }
2473 
2474         /// <remarks/>
2475         [System.Xml.Serialization.XmlAttributeAttribute()]
2476         public string Name
2477         {
2478             get
2479             {
2480                 return this.nameField;
2481             }
2482             set
2483             {
2484                 this.nameField = value;
2485                 this.RaisePropertyChanged("Name");
2486             }
2487         }
2488 
2489         /// <remarks/>
2490         [System.Xml.Serialization.XmlAttributeAttribute()]
2491         public string Member
2492         {
2493             get
2494             {
2495                 return this.memberField;
2496             }
2497             set
2498             {
2499                 this.memberField = value;
2500                 this.RaisePropertyChanged("Member");
2501             }
2502         }
2503 
2504         /// <remarks/>
2505         [System.Xml.Serialization.XmlAttributeAttribute()]
2506         public AccessModifier AccessModifier
2507         {
2508             get
2509             {
2510                 return this.accessModifierField;
2511             }
2512             set
2513             {
2514                 this.accessModifierField = value;
2515                 this.RaisePropertyChanged("AccessModifier");
2516             }
2517         }
2518 
2519         /// <remarks/>
2520         [System.Xml.Serialization.XmlIgnoreAttribute()]
2521         public bool AccessModifierSpecified
2522         {
2523             get
2524             {
2525                 return this.accessModifierFieldSpecified;
2526             }
2527             set
2528             {
2529                 this.accessModifierFieldSpecified = value;
2530                 this.RaisePropertyChanged("AccessModifierSpecified");
2531             }
2532         }
2533 
2534         /// <remarks/>
2535         [System.Xml.Serialization.XmlAttributeAttribute()]
2536         public MemberModifier Modifier
2537         {
2538             get
2539             {
2540                 return this.modifierField;
2541             }
2542             set
2543             {
2544                 this.modifierField = value;
2545                 this.RaisePropertyChanged("Modifier");
2546             }
2547         }
2548 
2549         /// <remarks/>
2550         [System.Xml.Serialization.XmlIgnoreAttribute()]
2551         public bool ModifierSpecified
2552         {
2553             get
2554             {
2555                 return this.modifierFieldSpecified;
2556             }
2557             set
2558             {
2559                 this.modifierFieldSpecified = value;
2560                 this.RaisePropertyChanged("ModifierSpecified");
2561             }
2562         }
2563 
2564         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
2565 
RaisePropertyChanged(string propertyName)2566         protected void RaisePropertyChanged(string propertyName)
2567         {
2568             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
2569             if ((propertyChanged != null))
2570             {
2571                 propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
2572             }
2573         }
2574     }
2575 
2576     /// <remarks/>
2577     [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
2578     [System.SerializableAttribute()]
2579     [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.microsoft.com/linqtosql/dbml/2007")]
2580 #if !MONO_STRICT
2581     public
2582 #endif
2583     enum SerializationMode
2584     {
2585 
2586         /// <remarks/>
2587         None,
2588 
2589         /// <remarks/>
2590         Unidirectional,
2591     }
2592 }
2593