CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DataPortalTestDatabaseDataSet.Designer.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:4.0.30319.42000
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11#pragma warning disable 1591
12
13namespace Csla.Test {
14
15
19 [global::System.Serializable()]
20 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
21 [global::System.ComponentModel.ToolboxItem(true)]
22 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
23 [global::System.Xml.Serialization.XmlRootAttribute("DataPortalTestDatabaseDataSet")]
24 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
25 public partial class DataPortalTestDatabaseDataSet : global::System.Data.DataSet {
26
27 private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
28
29 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
30 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
32 this.BeginInit();
33 this.InitClass();
34 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
35 base.Tables.CollectionChanged += schemaChangedHandler;
36 base.Relations.CollectionChanged += schemaChangedHandler;
37 this.EndInit();
38 }
39
40 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
41 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
42 protected DataPortalTestDatabaseDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
43 base(info, context, false) {
44 if ((this.IsBinarySerialized(info, context) == true)) {
45 this.InitVars(false);
46 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
47 this.Tables.CollectionChanged += schemaChangedHandler1;
48 this.Relations.CollectionChanged += schemaChangedHandler1;
49 return;
50 }
51 string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
52 if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
53 global::System.Data.DataSet ds = new global::System.Data.DataSet();
54 ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
55 this.DataSetName = ds.DataSetName;
56 this.Prefix = ds.Prefix;
57 this.Namespace = ds.Namespace;
58 this.Locale = ds.Locale;
59 this.CaseSensitive = ds.CaseSensitive;
60 this.EnforceConstraints = ds.EnforceConstraints;
61 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
62 this.InitVars();
63 }
64 else {
65 this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
66 }
67 this.GetSerializationData(info, context);
68 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
69 base.Tables.CollectionChanged += schemaChangedHandler;
70 this.Relations.CollectionChanged += schemaChangedHandler;
71 }
72
73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
74 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
75 [global::System.ComponentModel.BrowsableAttribute(true)]
76 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
77 public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
78 get {
79 return this._schemaSerializationMode;
80 }
81 set {
82 this._schemaSerializationMode = value;
83 }
84 }
85
86 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
87 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
88 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
89 public new global::System.Data.DataTableCollection Tables {
90 get {
91 return base.Tables;
92 }
93 }
94
95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
96 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
97 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
98 public new global::System.Data.DataRelationCollection Relations {
99 get {
100 return base.Relations;
101 }
102 }
103
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
105 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
106 protected override void InitializeDerivedDataSet() {
107 this.BeginInit();
108 this.InitClass();
109 this.EndInit();
110 }
111
112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
113 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
114 public override global::System.Data.DataSet Clone() {
116 cln.InitVars();
117 cln.SchemaSerializationMode = this.SchemaSerializationMode;
118 return cln;
119 }
120
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
122 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
123 protected override bool ShouldSerializeTables() {
124 return false;
125 }
126
127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
128 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
129 protected override bool ShouldSerializeRelations() {
130 return false;
131 }
132
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
134 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
135 protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
136 if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
137 this.Reset();
138 global::System.Data.DataSet ds = new global::System.Data.DataSet();
139 ds.ReadXml(reader);
140 this.DataSetName = ds.DataSetName;
141 this.Prefix = ds.Prefix;
142 this.Namespace = ds.Namespace;
143 this.Locale = ds.Locale;
144 this.CaseSensitive = ds.CaseSensitive;
145 this.EnforceConstraints = ds.EnforceConstraints;
146 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
147 this.InitVars();
148 }
149 else {
150 this.ReadXml(reader);
151 this.InitVars();
152 }
153 }
154
155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
156 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
157 protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
158 global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
159 this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
160 stream.Position = 0;
161 return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
162 }
163
164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
165 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
166 internal void InitVars() {
167 this.InitVars(true);
168 }
169
170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
171 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
172 internal void InitVars(bool initTable) {
173 }
174
175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
176 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
177 private void InitClass() {
178 this.DataSetName = "DataPortalTestDatabaseDataSet";
179 this.Prefix = "";
180 this.Namespace = "http://tempuri.org/DataPortalTestDatabaseDataSet.xsd";
181 this.EnforceConstraints = true;
182 this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
183 }
184
185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
186 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
187 private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
188 if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
189 this.InitVars();
190 }
191 }
192
193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
194 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
195 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
197 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
198 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
199 global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
200 any.Namespace = ds.Namespace;
201 sequence.Items.Add(any);
202 type.Particle = sequence;
203 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
204 if (xs.Contains(dsSchema.TargetNamespace)) {
205 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
206 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
207 try {
208 global::System.Xml.Schema.XmlSchema schema = null;
209 dsSchema.Write(s1);
210 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
211 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
212 s2.SetLength(0);
213 schema.Write(s2);
214 if ((s1.Length == s2.Length)) {
215 s1.Position = 0;
216 s2.Position = 0;
217 for (; ((s1.Position != s1.Length)
218 && (s1.ReadByte() == s2.ReadByte())); ) {
219 ;
220 }
221 if ((s1.Position == s1.Length)) {
222 return type;
223 }
224 }
225 }
226 }
227 finally {
228 if ((s1 != null)) {
229 s1.Close();
230 }
231 if ((s2 != null)) {
232 s2.Close();
233 }
234 }
235 }
236 xs.Add(dsSchema);
237 return type;
238 }
239 }
240}
241
242#pragma warning restore 1591
Represents a strongly typed in-memory cache of data.
override global::System.Xml.Schema.XmlSchema GetSchemaSerializable()
DataPortalTestDatabaseDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context)
new global::System.Data.DataTableCollection Tables
static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs)
override void ReadXmlSerializable(global::System.Xml.XmlReader reader)
override global::System.Data.SchemaSerializationMode SchemaSerializationMode
new global::System.Data.DataRelationCollection Relations