|
|
|
@ -27,6 +27,8 @@ Partial Public Class GästeDataSet
|
|
|
|
|
|
|
|
|
|
Private tableGäste As GästeDataTable
|
|
|
|
|
|
|
|
|
|
Private tableLänder As LänderDataTable
|
|
|
|
|
|
|
|
|
|
Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
@ -59,6 +61,9 @@ Partial Public Class GästeDataSet
|
|
|
|
|
If (Not (ds.Tables("Gäste")) Is Nothing) Then
|
|
|
|
|
MyBase.Tables.Add(New GästeDataTable(ds.Tables("Gäste")))
|
|
|
|
|
End If
|
|
|
|
|
If (Not (ds.Tables("Länder")) Is Nothing) Then
|
|
|
|
|
MyBase.Tables.Add(New LänderDataTable(ds.Tables("Länder")))
|
|
|
|
|
End If
|
|
|
|
|
Me.DataSetName = ds.DataSetName
|
|
|
|
|
Me.Prefix = ds.Prefix
|
|
|
|
|
Me.Namespace = ds.Namespace
|
|
|
|
@ -86,6 +91,16 @@ Partial Public Class GästeDataSet
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
|
|
|
|
|
Global.System.ComponentModel.Browsable(false), _
|
|
|
|
|
Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
|
|
|
|
|
Public ReadOnly Property Länder() As LänderDataTable
|
|
|
|
|
Get
|
|
|
|
|
Return Me.tableLänder
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
|
|
|
|
|
Global.System.ComponentModel.BrowsableAttribute(true), _
|
|
|
|
@ -156,6 +171,9 @@ Partial Public Class GästeDataSet
|
|
|
|
|
If (Not (ds.Tables("Gäste")) Is Nothing) Then
|
|
|
|
|
MyBase.Tables.Add(New GästeDataTable(ds.Tables("Gäste")))
|
|
|
|
|
End If
|
|
|
|
|
If (Not (ds.Tables("Länder")) Is Nothing) Then
|
|
|
|
|
MyBase.Tables.Add(New LänderDataTable(ds.Tables("Länder")))
|
|
|
|
|
End If
|
|
|
|
|
Me.DataSetName = ds.DataSetName
|
|
|
|
|
Me.Prefix = ds.Prefix
|
|
|
|
|
Me.Namespace = ds.Namespace
|
|
|
|
@ -194,6 +212,12 @@ Partial Public Class GästeDataSet
|
|
|
|
|
Me.tableGäste.InitVars
|
|
|
|
|
End If
|
|
|
|
|
End If
|
|
|
|
|
Me.tableLänder = CType(MyBase.Tables("Länder"),LänderDataTable)
|
|
|
|
|
If (initTable = true) Then
|
|
|
|
|
If (Not (Me.tableLänder) Is Nothing) Then
|
|
|
|
|
Me.tableLänder.InitVars
|
|
|
|
|
End If
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
@ -206,6 +230,8 @@ Partial Public Class GästeDataSet
|
|
|
|
|
Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
|
|
|
|
|
Me.tableGäste = New GästeDataTable()
|
|
|
|
|
MyBase.Tables.Add(Me.tableGäste)
|
|
|
|
|
Me.tableLänder = New LänderDataTable()
|
|
|
|
|
MyBase.Tables.Add(Me.tableLänder)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
@ -214,6 +240,12 @@ Partial Public Class GästeDataSet
|
|
|
|
|
Return false
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Private Function ShouldSerializeLänder() As Boolean
|
|
|
|
|
Return false
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
|
|
|
|
@ -275,6 +307,9 @@ Partial Public Class GästeDataSet
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Delegate Sub GästeRowChangeEventHandler(ByVal sender As Object, ByVal e As GästeRowChangeEvent)
|
|
|
|
|
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Delegate Sub LänderRowChangeEventHandler(ByVal sender As Object, ByVal e As LänderRowChangeEvent)
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Represents the strongly named DataTable class.
|
|
|
|
|
'''</summary>
|
|
|
|
@ -695,6 +730,258 @@ Partial Public Class GästeDataSet
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Represents the strongly named DataTable class.
|
|
|
|
|
'''</summary>
|
|
|
|
|
<Global.System.Serializable(), _
|
|
|
|
|
Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
|
|
|
|
|
Partial Public Class LänderDataTable
|
|
|
|
|
Inherits Global.System.Data.TypedTableBase(Of LänderRow)
|
|
|
|
|
|
|
|
|
|
Private columnLand As Global.System.Data.DataColumn
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Sub New()
|
|
|
|
|
MyBase.New
|
|
|
|
|
Me.TableName = "Länder"
|
|
|
|
|
Me.BeginInit
|
|
|
|
|
Me.InitClass
|
|
|
|
|
Me.EndInit
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Friend Sub New(ByVal table As Global.System.Data.DataTable)
|
|
|
|
|
MyBase.New
|
|
|
|
|
Me.TableName = table.TableName
|
|
|
|
|
If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
|
|
|
|
|
Me.CaseSensitive = table.CaseSensitive
|
|
|
|
|
End If
|
|
|
|
|
If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
|
|
|
|
|
Me.Locale = table.Locale
|
|
|
|
|
End If
|
|
|
|
|
If (table.Namespace <> table.DataSet.Namespace) Then
|
|
|
|
|
Me.Namespace = table.Namespace
|
|
|
|
|
End If
|
|
|
|
|
Me.Prefix = table.Prefix
|
|
|
|
|
Me.MinimumCapacity = table.MinimumCapacity
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
|
|
|
|
|
MyBase.New(info, context)
|
|
|
|
|
Me.InitVars
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public ReadOnly Property LandColumn() As Global.System.Data.DataColumn
|
|
|
|
|
Get
|
|
|
|
|
Return Me.columnLand
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
|
|
|
|
|
Global.System.ComponentModel.Browsable(false)> _
|
|
|
|
|
Public ReadOnly Property Count() As Integer
|
|
|
|
|
Get
|
|
|
|
|
Return Me.Rows.Count
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Default ReadOnly Property Item(ByVal index As Integer) As LänderRow
|
|
|
|
|
Get
|
|
|
|
|
Return CType(Me.Rows(index),LänderRow)
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Event LänderRowChanging As LänderRowChangeEventHandler
|
|
|
|
|
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Event LänderRowChanged As LänderRowChangeEventHandler
|
|
|
|
|
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Event LänderRowDeleting As LänderRowChangeEventHandler
|
|
|
|
|
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Event LänderRowDeleted As LänderRowChangeEventHandler
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Overloads Sub AddLänderRow(ByVal row As LänderRow)
|
|
|
|
|
Me.Rows.Add(row)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Overloads Function AddLänderRow(ByVal Land As String) As LänderRow
|
|
|
|
|
Dim rowLänderRow As LänderRow = CType(Me.NewRow,LänderRow)
|
|
|
|
|
Dim columnValuesArray() As Object = New Object() {Land}
|
|
|
|
|
rowLänderRow.ItemArray = columnValuesArray
|
|
|
|
|
Me.Rows.Add(rowLänderRow)
|
|
|
|
|
Return rowLänderRow
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Overrides Function Clone() As Global.System.Data.DataTable
|
|
|
|
|
Dim cln As LänderDataTable = CType(MyBase.Clone,LänderDataTable)
|
|
|
|
|
cln.InitVars
|
|
|
|
|
Return cln
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
|
|
|
|
|
Return New LänderDataTable()
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Friend Sub InitVars()
|
|
|
|
|
Me.columnLand = MyBase.Columns("Land")
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Private Sub InitClass()
|
|
|
|
|
Me.columnLand = New Global.System.Data.DataColumn("Land", GetType(String), Nothing, Global.System.Data.MappingType.Element)
|
|
|
|
|
MyBase.Columns.Add(Me.columnLand)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Function NewLänderRow() As LänderRow
|
|
|
|
|
Return CType(Me.NewRow,LänderRow)
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
|
|
|
|
|
Return New LänderRow(builder)
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Function GetRowType() As Global.System.Type
|
|
|
|
|
Return GetType(LänderRow)
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
|
|
|
|
|
MyBase.OnRowChanged(e)
|
|
|
|
|
If (Not (Me.LänderRowChangedEvent) Is Nothing) Then
|
|
|
|
|
RaiseEvent LänderRowChanged(Me, New LänderRowChangeEvent(CType(e.Row,LänderRow), e.Action))
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
|
|
|
|
|
MyBase.OnRowChanging(e)
|
|
|
|
|
If (Not (Me.LänderRowChangingEvent) Is Nothing) Then
|
|
|
|
|
RaiseEvent LänderRowChanging(Me, New LänderRowChangeEvent(CType(e.Row,LänderRow), e.Action))
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
|
|
|
|
|
MyBase.OnRowDeleted(e)
|
|
|
|
|
If (Not (Me.LänderRowDeletedEvent) Is Nothing) Then
|
|
|
|
|
RaiseEvent LänderRowDeleted(Me, New LänderRowChangeEvent(CType(e.Row,LänderRow), e.Action))
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
|
|
|
|
|
MyBase.OnRowDeleting(e)
|
|
|
|
|
If (Not (Me.LänderRowDeletingEvent) Is Nothing) Then
|
|
|
|
|
RaiseEvent LänderRowDeleting(Me, New LänderRowChangeEvent(CType(e.Row,LänderRow), e.Action))
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Sub RemoveLänderRow(ByVal row As LänderRow)
|
|
|
|
|
Me.Rows.Remove(row)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
|
|
|
|
|
Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
|
|
|
|
|
Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
|
|
|
|
|
Dim ds As GästeDataSet = New GästeDataSet()
|
|
|
|
|
Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
|
|
|
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema"
|
|
|
|
|
any1.MinOccurs = New Decimal(0)
|
|
|
|
|
any1.MaxOccurs = Decimal.MaxValue
|
|
|
|
|
any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
|
|
|
|
|
sequence.Items.Add(any1)
|
|
|
|
|
Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
|
|
|
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
|
|
|
|
|
any2.MinOccurs = New Decimal(1)
|
|
|
|
|
any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
|
|
|
|
|
sequence.Items.Add(any2)
|
|
|
|
|
Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
|
|
|
|
|
attribute1.Name = "namespace"
|
|
|
|
|
attribute1.FixedValue = ds.Namespace
|
|
|
|
|
type.Attributes.Add(attribute1)
|
|
|
|
|
Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
|
|
|
|
|
attribute2.Name = "tableTypeName"
|
|
|
|
|
attribute2.FixedValue = "LänderDataTable"
|
|
|
|
|
type.Attributes.Add(attribute2)
|
|
|
|
|
type.Particle = sequence
|
|
|
|
|
Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
|
|
|
|
|
If xs.Contains(dsSchema.TargetNamespace) Then
|
|
|
|
|
Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
|
|
|
|
|
Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
|
|
|
|
|
Try
|
|
|
|
|
Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
|
|
|
|
|
dsSchema.Write(s1)
|
|
|
|
|
Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
|
|
|
|
|
Do While schemas.MoveNext
|
|
|
|
|
schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
|
|
|
|
|
s2.SetLength(0)
|
|
|
|
|
schema.Write(s2)
|
|
|
|
|
If (s1.Length = s2.Length) Then
|
|
|
|
|
s1.Position = 0
|
|
|
|
|
s2.Position = 0
|
|
|
|
|
|
|
|
|
|
Do While ((s1.Position <> s1.Length) _
|
|
|
|
|
AndAlso (s1.ReadByte = s2.ReadByte))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loop
|
|
|
|
|
If (s1.Position = s1.Length) Then
|
|
|
|
|
Return type
|
|
|
|
|
End If
|
|
|
|
|
End If
|
|
|
|
|
|
|
|
|
|
Loop
|
|
|
|
|
Finally
|
|
|
|
|
If (Not (s1) Is Nothing) Then
|
|
|
|
|
s1.Close
|
|
|
|
|
End If
|
|
|
|
|
If (Not (s2) Is Nothing) Then
|
|
|
|
|
s2.Close
|
|
|
|
|
End If
|
|
|
|
|
End Try
|
|
|
|
|
End If
|
|
|
|
|
xs.Add(dsSchema)
|
|
|
|
|
Return type
|
|
|
|
|
End Function
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Represents strongly named DataRow class.
|
|
|
|
|
'''</summary>
|
|
|
|
@ -891,6 +1178,49 @@ Partial Public Class GästeDataSet
|
|
|
|
|
End Sub
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Represents strongly named DataRow class.
|
|
|
|
|
'''</summary>
|
|
|
|
|
Partial Public Class LänderRow
|
|
|
|
|
Inherits Global.System.Data.DataRow
|
|
|
|
|
|
|
|
|
|
Private tableLänder As LänderDataTable
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
|
|
|
|
|
MyBase.New(rb)
|
|
|
|
|
Me.tableLänder = CType(Me.Table,LänderDataTable)
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Property Land() As String
|
|
|
|
|
Get
|
|
|
|
|
If Me.IsLandNull Then
|
|
|
|
|
Return String.Empty
|
|
|
|
|
Else
|
|
|
|
|
Return CType(Me(Me.tableLänder.LandColumn),String)
|
|
|
|
|
End If
|
|
|
|
|
End Get
|
|
|
|
|
Set
|
|
|
|
|
Me(Me.tableLänder.LandColumn) = value
|
|
|
|
|
End Set
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Function IsLandNull() As Boolean
|
|
|
|
|
Return Me.IsNull(Me.tableLänder.LandColumn)
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Sub SetLandNull()
|
|
|
|
|
Me(Me.tableLänder.LandColumn) = Global.System.Convert.DBNull
|
|
|
|
|
End Sub
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Row event argument class
|
|
|
|
|
'''</summary>
|
|
|
|
@ -926,4 +1256,40 @@ Partial Public Class GästeDataSet
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
'''<summary>
|
|
|
|
|
'''Row event argument class
|
|
|
|
|
'''</summary>
|
|
|
|
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Class LänderRowChangeEvent
|
|
|
|
|
Inherits Global.System.EventArgs
|
|
|
|
|
|
|
|
|
|
Private eventRow As LänderRow
|
|
|
|
|
|
|
|
|
|
Private eventAction As Global.System.Data.DataRowAction
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public Sub New(ByVal row As LänderRow, ByVal action As Global.System.Data.DataRowAction)
|
|
|
|
|
MyBase.New
|
|
|
|
|
Me.eventRow = row
|
|
|
|
|
Me.eventAction = action
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public ReadOnly Property Row() As LänderRow
|
|
|
|
|
Get
|
|
|
|
|
Return Me.eventRow
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
|
|
|
|
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
|
|
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
|
|
|
|
|
Public ReadOnly Property Action() As Global.System.Data.DataRowAction
|
|
|
|
|
Get
|
|
|
|
|
Return Me.eventAction
|
|
|
|
|
End Get
|
|
|
|
|
End Property
|
|
|
|
|
End Class
|
|
|
|
|
End Class
|
|
|
|
|