diff --git a/VB/SimpleCustomFields/CarsDBDataSet.Designer.vb b/VB/SimpleCustomFields/CarsDBDataSet.Designer.vb
index 7df9b74..98c4aa6 100644
--- a/VB/SimpleCustomFields/CarsDBDataSet.Designer.vb
+++ b/VB/SimpleCustomFields/CarsDBDataSet.Designer.vb
@@ -8,3154 +8,3438 @@
'
'------------------------------------------------------------------------------
-
+#Disable Warning BC1591
Namespace SimpleCustomFields
- '''
- '''Represents a strongly typed in-memory cache of data.
- '''
-
- Partial Public Class CarsDBDataSet
- Inherits System.Data.DataSet
-
- Private tableCars As CarsDataTable
-
- Private tableCarScheduling As CarSchedulingDataTable
-
- Private relationCarsCarScheduling As Global.System.Data.DataRelation
-
- Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
-
-
- Public Sub New()
- Me.BeginInit()
- Me.InitClass()
- Dim schemaChangedHandler As New Global.System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
- AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
- AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
- Me.EndInit()
- End Sub
-
-
- Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
- MyBase.New(info, context, False)
- If (Me.IsBinarySerialized(info, context) = True) Then
- Me.InitVars(False)
- Dim schemaChangedHandler1 As New Global.System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
- AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
- AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
- Return
- End If
- Dim strSchema As String = (CStr(info.GetValue("XmlSchema", GetType(String))))
- If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
- Dim ds As New Global.System.Data.DataSet()
- ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
- If (ds.Tables("Cars") IsNot Nothing) Then
- MyBase.Tables.Add(New CarsDataTable(ds.Tables("Cars")))
- End If
- If (ds.Tables("CarScheduling") IsNot Nothing) Then
- MyBase.Tables.Add(New CarSchedulingDataTable(ds.Tables("CarScheduling")))
- End If
- Me.DataSetName = ds.DataSetName
- Me.Prefix = ds.Prefix
- Me.Namespace = ds.Namespace
- Me.Locale = ds.Locale
- Me.CaseSensitive = ds.CaseSensitive
- Me.EnforceConstraints = ds.EnforceConstraints
- Me.Merge(ds, False, Global.System.Data.MissingSchemaAction.Add)
- Me.InitVars()
- Else
- Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
- End If
- Me.GetSerializationData(info, context)
- Dim schemaChangedHandler As New Global.System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
- AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
- AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
- End Sub
-
-
- Public ReadOnly Property Cars() As CarsDataTable
- Get
- Return Me.tableCars
- End Get
- End Property
-
-
- Public ReadOnly Property CarScheduling() As CarSchedulingDataTable
- Get
- Return Me.tableCarScheduling
- End Get
- End Property
-
-
- Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
- Get
- Return Me._schemaSerializationMode
- End Get
- Set(ByVal value As System.Data.SchemaSerializationMode)
- Me._schemaSerializationMode = value
- End Set
- End Property
-
-
- Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
- Get
- Return MyBase.Tables
- End Get
- End Property
-
-
- Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
- Get
- Return MyBase.Relations
- End Get
- End Property
-
-
- Protected Overrides Sub InitializeDerivedDataSet()
- Me.BeginInit()
- Me.InitClass()
- Me.EndInit()
- End Sub
-
-
- Public Overrides Function Clone() As Global.System.Data.DataSet
- Dim cln As CarsDBDataSet = (CType(MyBase.Clone(), CarsDBDataSet))
- cln.InitVars()
- cln.SchemaSerializationMode = Me.SchemaSerializationMode
- Return cln
- End Function
-
-
- Protected Overrides Function ShouldSerializeTables() As Boolean
- Return False
- End Function
-
-
- Protected Overrides Function ShouldSerializeRelations() As Boolean
- Return False
- End Function
-
-
- Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
- If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
- Me.Reset()
- Dim ds As New Global.System.Data.DataSet()
- ds.ReadXml(reader)
- If (ds.Tables("Cars") IsNot Nothing) Then
- MyBase.Tables.Add(New CarsDataTable(ds.Tables("Cars")))
- End If
- If (ds.Tables("CarScheduling") IsNot Nothing) Then
- MyBase.Tables.Add(New CarSchedulingDataTable(ds.Tables("CarScheduling")))
- End If
- Me.DataSetName = ds.DataSetName
- Me.Prefix = ds.Prefix
- Me.Namespace = ds.Namespace
- Me.Locale = ds.Locale
- Me.CaseSensitive = ds.CaseSensitive
- Me.EnforceConstraints = ds.EnforceConstraints
- Me.Merge(ds, False, Global.System.Data.MissingSchemaAction.Add)
- Me.InitVars()
- Else
- Me.ReadXml(reader)
- Me.InitVars()
- End If
- End Sub
-
-
- Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
- Dim stream As New Global.System.IO.MemoryStream()
- Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
- stream.Position = 0
- Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
- End Function
-
-
- Friend Sub InitVars()
- Me.InitVars(True)
- End Sub
-
-
- Friend Sub InitVars(ByVal initTable As Boolean)
- Me.tableCars = (CType(MyBase.Tables("Cars"), CarsDataTable))
- If (initTable = True) Then
- If (Me.tableCars IsNot Nothing) Then
- Me.tableCars.InitVars()
- End If
- End If
- Me.tableCarScheduling = (CType(MyBase.Tables("CarScheduling"), CarSchedulingDataTable))
- If (initTable = True) Then
- If (Me.tableCarScheduling IsNot Nothing) Then
- Me.tableCarScheduling.InitVars()
- End If
- End If
- Me.relationCarsCarScheduling = Me.Relations("CarsCarScheduling")
- End Sub
-
-
- Private Sub InitClass()
- Me.DataSetName = "CarsDBDataSet"
- Me.Prefix = ""
- Me.Namespace = "http://tempuri.org/CarsDBDataSet.xsd"
- Me.EnforceConstraints = True
- Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
- Me.tableCars = New CarsDataTable()
- MyBase.Tables.Add(Me.tableCars)
- Me.tableCarScheduling = New CarSchedulingDataTable()
- MyBase.Tables.Add(Me.tableCarScheduling)
- Me.relationCarsCarScheduling = New Global.System.Data.DataRelation("CarsCarScheduling", New Global.System.Data.DataColumn() {Me.tableCars.IDColumn}, New Global.System.Data.DataColumn() {Me.tableCarScheduling.CarIdColumn}, False)
- Me.Relations.Add(Me.relationCarsCarScheduling)
- End Sub
-
-
- Private Function ShouldSerializeCars() As Boolean
- Return False
- End Function
-
-
- Private Function ShouldSerializeCarScheduling() As Boolean
- Return False
- End Function
-
-
- Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
- If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
- Me.InitVars()
- End If
- End Sub
-
-
- Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
- Dim ds As New CarsDBDataSet()
- Dim type As New Global.System.Xml.Schema.XmlSchemaComplexType()
- Dim sequence As New Global.System.Xml.Schema.XmlSchemaSequence()
- Dim any As New Global.System.Xml.Schema.XmlSchemaAny()
- any.Namespace = ds.Namespace
- sequence.Items.Add(any)
- type.Particle = sequence
- Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable()
- If xs.Contains(dsSchema.TargetNamespace) Then
- Dim s1 As New Global.System.IO.MemoryStream()
- Dim s2 As New Global.System.IO.MemoryStream()
- Try
- Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
- dsSchema.Write(s1)
- Dim schemas As 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 (s1 IsNot Nothing) Then
- s1.Close()
- End If
- If (s2 IsNot Nothing) Then
- s2.Close()
- End If
- End Try
- End If
- xs.Add(dsSchema)
- Return type
- End Function
-
-
- Public Delegate Sub CarsRowChangeEventHandler(ByVal sender As Object, ByVal e As CarsRowChangeEvent)
-
-
- Public Delegate Sub CarSchedulingRowChangeEventHandler(ByVal sender As Object, ByVal e As CarSchedulingRowChangeEvent)
-
- '''
- '''Represents the strongly named DataTable class.
- '''
-
- Partial Public Class CarsDataTable
- Inherits System.Data.TypedTableBase(Of CarsRow)
-
- Private columnID As Global.System.Data.DataColumn
-
- Private columnTrademark As Global.System.Data.DataColumn
-
- Private columnModel As Global.System.Data.DataColumn
-
- Private columnHP As Global.System.Data.DataColumn
-
- Private columnLiter As Global.System.Data.DataColumn
-
- Private columnCyl As Global.System.Data.DataColumn
-
- Private columnTransmissSpeedCount As Global.System.Data.DataColumn
-
- Private columnTransmissAutomatic As Global.System.Data.DataColumn
-
- Private columnMPG_City As Global.System.Data.DataColumn
-
- Private columnMPG_Highway As Global.System.Data.DataColumn
-
- Private columnCategory As Global.System.Data.DataColumn
-
- Private columnDescription As Global.System.Data.DataColumn
-
- Private columnHyperlink As Global.System.Data.DataColumn
-
- Private columnPicture As Global.System.Data.DataColumn
-
- Private columnPrice As Global.System.Data.DataColumn
-
- Private columnRtfContent As Global.System.Data.DataColumn
-
-
- Public Sub New()
- Me.TableName = "Cars"
- Me.BeginInit()
- Me.InitClass()
- Me.EndInit()
- End Sub
-
-
- Friend Sub New(ByVal table As Global.System.Data.DataTable)
- 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
-
-
- 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
-
-
- Public ReadOnly Property IDColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnID
- End Get
- End Property
-
-
- Public ReadOnly Property TrademarkColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnTrademark
- End Get
- End Property
-
-
- Public ReadOnly Property ModelColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnModel
- End Get
- End Property
-
-
- Public ReadOnly Property HPColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnHP
- End Get
- End Property
-
-
- Public ReadOnly Property LiterColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnLiter
- End Get
- End Property
-
-
- Public ReadOnly Property CylColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnCyl
- End Get
- End Property
-
-
- Public ReadOnly Property TransmissSpeedCountColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnTransmissSpeedCount
- End Get
- End Property
-
-
- Public ReadOnly Property TransmissAutomaticColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnTransmissAutomatic
- End Get
- End Property
-
-
- Public ReadOnly Property MPG_CityColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnMPG_City
- End Get
- End Property
-
-
- Public ReadOnly Property MPG_HighwayColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnMPG_Highway
- End Get
- End Property
-
-
- Public ReadOnly Property CategoryColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnCategory
- End Get
- End Property
-
-
- Public ReadOnly Property DescriptionColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnDescription
- End Get
- End Property
-
-
- Public ReadOnly Property HyperlinkColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnHyperlink
- End Get
- End Property
-
-
- Public ReadOnly Property PictureColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnPicture
- End Get
- End Property
-
-
- Public ReadOnly Property PriceColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnPrice
- End Get
- End Property
-
-
- Public ReadOnly Property RtfContentColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnRtfContent
- End Get
- End Property
-
-
- Public ReadOnly Property Count() As Integer
- Get
- Return Me.Rows.Count
- End Get
- End Property
-
-
- Default Public ReadOnly Property Item(ByVal index As Integer) As CarsRow
- Get
- Return (CType(Me.Rows(index), CarsRow))
- End Get
- End Property
-
-
- Public Event CarsRowChanging As CarsRowChangeEventHandler
-
-
- Public Event CarsRowChanged As CarsRowChangeEventHandler
-
-
- Public Event CarsRowDeleting As CarsRowChangeEventHandler
-
-
- Public Event CarsRowDeleted As CarsRowChangeEventHandler
-
-
- Public Sub AddCarsRow(ByVal row As CarsRow)
- Me.Rows.Add(row)
- End Sub
-
-
- Public Function AddCarsRow(ByVal Trademark As String, ByVal Model As String, ByVal HP As Short, ByVal Liter As Double, ByVal Cyl As Byte, ByVal TransmissSpeedCount As Byte, ByVal TransmissAutomatic As String, ByVal MPG_City As Byte, ByVal MPG_Highway As Byte, ByVal Category As String, ByVal Description As String, ByVal Hyperlink As String, ByVal Picture() As Byte, ByVal Price As Decimal, ByVal RtfContent As String) As CarsRow
- Dim rowCarsRow As CarsRow = (CType(Me.NewRow(), CarsRow))
- Dim columnValuesArray() As Object = {Nothing, Trademark, Model, HP, Liter, Cyl, TransmissSpeedCount, TransmissAutomatic, MPG_City, MPG_Highway, Category, Description, Hyperlink, Picture, Price, RtfContent}
- rowCarsRow.ItemArray = columnValuesArray
- Me.Rows.Add(rowCarsRow)
- Return rowCarsRow
- End Function
-
-
- Public Function FindByID(ByVal ID As Integer) As CarsRow
- Return (CType(Me.Rows.Find(New Object() {ID}), CarsRow))
- End Function
-
-
- Public Overrides Function Clone() As Global.System.Data.DataTable
- Dim cln As CarsDataTable = (CType(MyBase.Clone(), CarsDataTable))
- cln.InitVars()
- Return cln
- End Function
-
-
- Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
- Return New CarsDataTable()
- End Function
-
-
- Friend Sub InitVars()
- Me.columnID = MyBase.Columns("ID")
- Me.columnTrademark = MyBase.Columns("Trademark")
- Me.columnModel = MyBase.Columns("Model")
- Me.columnHP = MyBase.Columns("HP")
- Me.columnLiter = MyBase.Columns("Liter")
- Me.columnCyl = MyBase.Columns("Cyl")
- Me.columnTransmissSpeedCount = MyBase.Columns("TransmissSpeedCount")
- Me.columnTransmissAutomatic = MyBase.Columns("TransmissAutomatic")
- Me.columnMPG_City = MyBase.Columns("MPG_City")
- Me.columnMPG_Highway = MyBase.Columns("MPG_Highway")
- Me.columnCategory = MyBase.Columns("Category")
- Me.columnDescription = MyBase.Columns("Description")
- Me.columnHyperlink = MyBase.Columns("Hyperlink")
- Me.columnPicture = MyBase.Columns("Picture")
- Me.columnPrice = MyBase.Columns("Price")
- Me.columnRtfContent = MyBase.Columns("RtfContent")
- End Sub
-
-
- Private Sub InitClass()
- Me.columnID = New Global.System.Data.DataColumn("ID", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnID)
- Me.columnTrademark = New Global.System.Data.DataColumn("Trademark", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnTrademark)
- Me.columnModel = New Global.System.Data.DataColumn("Model", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnModel)
- Me.columnHP = New Global.System.Data.DataColumn("HP", GetType(Short), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnHP)
- Me.columnLiter = New Global.System.Data.DataColumn("Liter", GetType(Double), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnLiter)
- Me.columnCyl = New Global.System.Data.DataColumn("Cyl", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnCyl)
- Me.columnTransmissSpeedCount = New Global.System.Data.DataColumn("TransmissSpeedCount", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnTransmissSpeedCount)
- Me.columnTransmissAutomatic = New Global.System.Data.DataColumn("TransmissAutomatic", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnTransmissAutomatic)
- Me.columnMPG_City = New Global.System.Data.DataColumn("MPG_City", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnMPG_City)
- Me.columnMPG_Highway = New Global.System.Data.DataColumn("MPG_Highway", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnMPG_Highway)
- Me.columnCategory = New Global.System.Data.DataColumn("Category", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnCategory)
- Me.columnDescription = New Global.System.Data.DataColumn("Description", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnDescription)
- Me.columnHyperlink = New Global.System.Data.DataColumn("Hyperlink", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnHyperlink)
- Me.columnPicture = New Global.System.Data.DataColumn("Picture", GetType(Byte()), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnPicture)
- Me.columnPrice = New Global.System.Data.DataColumn("Price", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnPrice)
- Me.columnRtfContent = New Global.System.Data.DataColumn("RtfContent", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnRtfContent)
- Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnID}, True))
- Me.columnID.AutoIncrement = True
- Me.columnID.AllowDBNull = False
- Me.columnID.Unique = True
- Me.columnTrademark.MaxLength = 50
- Me.columnModel.MaxLength = 50
- Me.columnTransmissAutomatic.MaxLength = 3
- Me.columnCategory.MaxLength = 7
- Me.columnDescription.MaxLength = 536870910
- Me.columnHyperlink.MaxLength = 50
- Me.columnRtfContent.MaxLength = 536870910
- End Sub
-
-
- Public Function NewCarsRow() As CarsRow
- Return (CType(Me.NewRow(), CarsRow))
- End Function
-
-
- Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
- Return New CarsRow(builder)
- End Function
-
-
- Protected Overrides Function GetRowType() As Global.System.Type
- Return GetType(CarsRow)
- End Function
-
-
- Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowChanged(e)
- RaiseEvent CarsRowChanged(Me, New CarsRowChangeEvent((CType(e.Row, CarsRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowChanging(e)
- RaiseEvent CarsRowChanging(Me, New CarsRowChangeEvent((CType(e.Row, CarsRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowDeleted(e)
- RaiseEvent CarsRowDeleted(Me, New CarsRowChangeEvent((CType(e.Row, CarsRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowDeleting(e)
- RaiseEvent CarsRowDeleting(Me, New CarsRowChangeEvent((CType(e.Row, CarsRow)), e.Action))
- End Sub
-
-
- Public Sub RemoveCarsRow(ByVal row As CarsRow)
- Me.Rows.Remove(row)
- End Sub
-
-
- Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
- Dim type As New Global.System.Xml.Schema.XmlSchemaComplexType()
- Dim sequence As New Global.System.Xml.Schema.XmlSchemaSequence()
- Dim ds As New CarsDBDataSet()
- Dim any1 As 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 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 New Global.System.Xml.Schema.XmlSchemaAttribute()
- attribute1.Name = "namespace"
- attribute1.FixedValue = ds.Namespace
- type.Attributes.Add(attribute1)
- Dim attribute2 As New Global.System.Xml.Schema.XmlSchemaAttribute()
- attribute2.Name = "tableTypeName"
- attribute2.FixedValue = "CarsDataTable"
- 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 New Global.System.IO.MemoryStream()
- Dim s2 As New Global.System.IO.MemoryStream()
- Try
- Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
- dsSchema.Write(s1)
- Dim schemas As 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 (s1 IsNot Nothing) Then
- s1.Close()
- End If
- If (s2 IsNot Nothing) Then
- s2.Close()
- End If
- End Try
- End If
- xs.Add(dsSchema)
- Return type
- End Function
- End Class
-
- '''
- '''Represents the strongly named DataTable class.
- '''
-
- Partial Public Class CarSchedulingDataTable
- Inherits System.Data.TypedTableBase(Of CarSchedulingRow)
-
- Private columnID As Global.System.Data.DataColumn
-
- Private columnCarId As Global.System.Data.DataColumn
-
- Private columnUserId As Global.System.Data.DataColumn
-
- Private columnStatus As Global.System.Data.DataColumn
-
- Private columnSubject As Global.System.Data.DataColumn
-
- Private columnDescription As Global.System.Data.DataColumn
-
- Private columnLabel As Global.System.Data.DataColumn
-
- Private columnStartTime As Global.System.Data.DataColumn
-
- Private columnEndTime As Global.System.Data.DataColumn
-
- Private columnLocation As Global.System.Data.DataColumn
-
- Private columnAllDay As Global.System.Data.DataColumn
-
- Private columnEventType As Global.System.Data.DataColumn
-
- Private columnRecurrenceInfo As Global.System.Data.DataColumn
-
- Private columnReminderInfo As Global.System.Data.DataColumn
-
- Private columnPrice As Global.System.Data.DataColumn
-
- Private columnContactInfo As Global.System.Data.DataColumn
-
-
- Public Sub New()
- Me.TableName = "CarScheduling"
- Me.BeginInit()
- Me.InitClass()
- Me.EndInit()
- End Sub
-
-
- Friend Sub New(ByVal table As Global.System.Data.DataTable)
- 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
-
-
- 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
-
-
- Public ReadOnly Property IDColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnID
- End Get
- End Property
-
-
- Public ReadOnly Property CarIdColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnCarId
- End Get
- End Property
-
-
- Public ReadOnly Property UserIdColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnUserId
- End Get
- End Property
-
-
- Public ReadOnly Property StatusColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnStatus
- End Get
- End Property
-
-
- Public ReadOnly Property SubjectColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnSubject
- End Get
- End Property
-
-
- Public ReadOnly Property DescriptionColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnDescription
- End Get
- End Property
-
-
- Public ReadOnly Property LabelColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnLabel
- End Get
- End Property
-
-
- Public ReadOnly Property StartTimeColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnStartTime
- End Get
- End Property
-
-
- Public ReadOnly Property EndTimeColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnEndTime
- End Get
- End Property
-
-
- Public ReadOnly Property LocationColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnLocation
- End Get
- End Property
-
-
- Public ReadOnly Property AllDayColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnAllDay
- End Get
- End Property
-
-
- Public ReadOnly Property EventTypeColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnEventType
- End Get
- End Property
-
-
- Public ReadOnly Property RecurrenceInfoColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnRecurrenceInfo
- End Get
- End Property
-
-
- Public ReadOnly Property ReminderInfoColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnReminderInfo
- End Get
- End Property
-
-
- Public ReadOnly Property PriceColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnPrice
- End Get
- End Property
-
-
- Public ReadOnly Property ContactInfoColumn() As Global.System.Data.DataColumn
- Get
- Return Me.columnContactInfo
- End Get
- End Property
-
-
- Public ReadOnly Property Count() As Integer
- Get
- Return Me.Rows.Count
- End Get
- End Property
-
-
- Default Public ReadOnly Property Item(ByVal index As Integer) As CarSchedulingRow
- Get
- Return (CType(Me.Rows(index), CarSchedulingRow))
- End Get
- End Property
-
-
- Public Event CarSchedulingRowChanging As CarSchedulingRowChangeEventHandler
-
-
- Public Event CarSchedulingRowChanged As CarSchedulingRowChangeEventHandler
-
-
- Public Event CarSchedulingRowDeleting As CarSchedulingRowChangeEventHandler
-
-
- Public Event CarSchedulingRowDeleted As CarSchedulingRowChangeEventHandler
-
-
- Public Sub AddCarSchedulingRow(ByVal row As CarSchedulingRow)
- Me.Rows.Add(row)
- End Sub
-
-
- Public Function AddCarSchedulingRow(ByVal parentCarsRowByCarsCarScheduling As CarsRow, ByVal UserId As Integer, ByVal Status As Integer, ByVal Subject As String, ByVal Description As String, ByVal Label As Integer, ByVal StartTime As Date, ByVal EndTime As Date, ByVal Location As String, ByVal AllDay As Boolean, ByVal EventType As Integer, ByVal RecurrenceInfo As String, ByVal ReminderInfo As String, ByVal Price As Decimal, ByVal ContactInfo As String) As CarSchedulingRow
- Dim rowCarSchedulingRow As CarSchedulingRow = (CType(Me.NewRow(), CarSchedulingRow))
- Dim columnValuesArray() As Object = {Nothing, Nothing, UserId, Status, Subject, Description, Label, StartTime, EndTime, Location, AllDay, EventType, RecurrenceInfo, ReminderInfo, Price, ContactInfo}
- If (parentCarsRowByCarsCarScheduling IsNot Nothing) Then
- columnValuesArray(1) = parentCarsRowByCarsCarScheduling(0)
- End If
- rowCarSchedulingRow.ItemArray = columnValuesArray
- Me.Rows.Add(rowCarSchedulingRow)
- Return rowCarSchedulingRow
- End Function
-
-
- Public Function FindByID(ByVal ID As Integer) As CarSchedulingRow
- Return (CType(Me.Rows.Find(New Object() {ID}), CarSchedulingRow))
- End Function
-
-
- Public Overrides Function Clone() As Global.System.Data.DataTable
- Dim cln As CarSchedulingDataTable = (CType(MyBase.Clone(), CarSchedulingDataTable))
- cln.InitVars()
- Return cln
- End Function
-
-
- Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
- Return New CarSchedulingDataTable()
- End Function
-
-
- Friend Sub InitVars()
- Me.columnID = MyBase.Columns("ID")
- Me.columnCarId = MyBase.Columns("CarId")
- Me.columnUserId = MyBase.Columns("UserId")
- Me.columnStatus = MyBase.Columns("Status")
- Me.columnSubject = MyBase.Columns("Subject")
- Me.columnDescription = MyBase.Columns("Description")
- Me.columnLabel = MyBase.Columns("Label")
- Me.columnStartTime = MyBase.Columns("StartTime")
- Me.columnEndTime = MyBase.Columns("EndTime")
- Me.columnLocation = MyBase.Columns("Location")
- Me.columnAllDay = MyBase.Columns("AllDay")
- Me.columnEventType = MyBase.Columns("EventType")
- Me.columnRecurrenceInfo = MyBase.Columns("RecurrenceInfo")
- Me.columnReminderInfo = MyBase.Columns("ReminderInfo")
- Me.columnPrice = MyBase.Columns("Price")
- Me.columnContactInfo = MyBase.Columns("ContactInfo")
- End Sub
-
-
- Private Sub InitClass()
- Me.columnID = New Global.System.Data.DataColumn("ID", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnID)
- Me.columnCarId = New Global.System.Data.DataColumn("CarId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnCarId)
- Me.columnUserId = New Global.System.Data.DataColumn("UserId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnUserId)
- Me.columnStatus = New Global.System.Data.DataColumn("Status", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnStatus)
- Me.columnSubject = New Global.System.Data.DataColumn("Subject", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnSubject)
- Me.columnDescription = New Global.System.Data.DataColumn("Description", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnDescription)
- Me.columnLabel = New Global.System.Data.DataColumn("Label", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnLabel)
- Me.columnStartTime = New Global.System.Data.DataColumn("StartTime", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnStartTime)
- Me.columnEndTime = New Global.System.Data.DataColumn("EndTime", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnEndTime)
- Me.columnLocation = New Global.System.Data.DataColumn("Location", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnLocation)
- Me.columnAllDay = New Global.System.Data.DataColumn("AllDay", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnAllDay)
- Me.columnEventType = New Global.System.Data.DataColumn("EventType", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnEventType)
- Me.columnRecurrenceInfo = New Global.System.Data.DataColumn("RecurrenceInfo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnRecurrenceInfo)
- Me.columnReminderInfo = New Global.System.Data.DataColumn("ReminderInfo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnReminderInfo)
- Me.columnPrice = New Global.System.Data.DataColumn("Price", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnPrice)
- Me.columnContactInfo = New Global.System.Data.DataColumn("ContactInfo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
- MyBase.Columns.Add(Me.columnContactInfo)
- Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnID}, True))
- Me.columnID.AutoIncrement = True
- Me.columnID.AllowDBNull = False
- Me.columnID.Unique = True
- Me.columnSubject.MaxLength = 50
- Me.columnDescription.MaxLength = 536870910
- Me.columnLocation.MaxLength = 50
- Me.columnRecurrenceInfo.MaxLength = 536870910
- Me.columnReminderInfo.MaxLength = 536870910
- Me.columnContactInfo.MaxLength = 536870910
- End Sub
-
-
- Public Function NewCarSchedulingRow() As CarSchedulingRow
- Return (CType(Me.NewRow(), CarSchedulingRow))
- End Function
-
-
- Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
- Return New CarSchedulingRow(builder)
- End Function
-
-
- Protected Overrides Function GetRowType() As Global.System.Type
- Return GetType(CarSchedulingRow)
- End Function
-
-
- Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowChanged(e)
- RaiseEvent CarSchedulingRowChanged(Me, New CarSchedulingRowChangeEvent((CType(e.Row, CarSchedulingRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowChanging(e)
- RaiseEvent CarSchedulingRowChanging(Me, New CarSchedulingRowChangeEvent((CType(e.Row, CarSchedulingRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowDeleted(e)
- RaiseEvent CarSchedulingRowDeleted(Me, New CarSchedulingRowChangeEvent((CType(e.Row, CarSchedulingRow)), e.Action))
- End Sub
-
-
- Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
- MyBase.OnRowDeleting(e)
- RaiseEvent CarSchedulingRowDeleting(Me, New CarSchedulingRowChangeEvent((CType(e.Row, CarSchedulingRow)), e.Action))
- End Sub
-
-
- Public Sub RemoveCarSchedulingRow(ByVal row As CarSchedulingRow)
- Me.Rows.Remove(row)
- End Sub
-
-
- Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
- Dim type As New Global.System.Xml.Schema.XmlSchemaComplexType()
- Dim sequence As New Global.System.Xml.Schema.XmlSchemaSequence()
- Dim ds As New CarsDBDataSet()
- Dim any1 As 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 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 New Global.System.Xml.Schema.XmlSchemaAttribute()
- attribute1.Name = "namespace"
- attribute1.FixedValue = ds.Namespace
- type.Attributes.Add(attribute1)
- Dim attribute2 As New Global.System.Xml.Schema.XmlSchemaAttribute()
- attribute2.Name = "tableTypeName"
- attribute2.FixedValue = "CarSchedulingDataTable"
- 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 New Global.System.IO.MemoryStream()
- Dim s2 As New Global.System.IO.MemoryStream()
- Try
- Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
- dsSchema.Write(s1)
- Dim schemas As 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 (s1 IsNot Nothing) Then
- s1.Close()
- End If
- If (s2 IsNot Nothing) Then
- s2.Close()
- End If
- End Try
- End If
- xs.Add(dsSchema)
- Return type
- End Function
- End Class
-
- '''
- '''Represents strongly named DataRow class.
- '''
- Partial Public Class CarsRow
- Inherits System.Data.DataRow
-
- Private tableCars As CarsDataTable
-
-
- Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
- MyBase.New(rb)
- Me.tableCars = (CType(Me.Table, CarsDataTable))
- End Sub
-
-
- Public Property ID() As Integer
- Get
- Return (CInt((Me(Me.tableCars.IDColumn))))
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCars.IDColumn) = value
- End Set
- End Property
-
-
- Public Property Trademark() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.TrademarkColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Trademark' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.TrademarkColumn) = value
- End Set
- End Property
-
-
- Public Property Model() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.ModelColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Model' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.ModelColumn) = value
- End Set
- End Property
-
-
- Public Property HP() As Short
- Get
- Try
- Return (CShort(Me(Me.tableCars.HPColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'HP' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Short)
- Me(Me.tableCars.HPColumn) = value
- End Set
- End Property
-
-
- Public Property Liter() As Double
- Get
- Try
- Return (CDbl(Me(Me.tableCars.LiterColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Liter' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Double)
- Me(Me.tableCars.LiterColumn) = value
- End Set
- End Property
-
-
- Public Property Cyl() As Byte
- Get
- Try
- Return (CByte(Me(Me.tableCars.CylColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Cyl' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Byte)
- Me(Me.tableCars.CylColumn) = value
- End Set
- End Property
-
-
- Public Property TransmissSpeedCount() As Byte
- Get
- Try
- Return (CByte(Me(Me.tableCars.TransmissSpeedCountColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'TransmissSpeedCount' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Byte)
- Me(Me.tableCars.TransmissSpeedCountColumn) = value
- End Set
- End Property
-
-
- Public Property TransmissAutomatic() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.TransmissAutomaticColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'TransmissAutomatic' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.TransmissAutomaticColumn) = value
- End Set
- End Property
-
-
- Public Property MPG_City() As Byte
- Get
- Try
- Return (CByte(Me(Me.tableCars.MPG_CityColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'MPG_City' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Byte)
- Me(Me.tableCars.MPG_CityColumn) = value
- End Set
- End Property
-
-
- Public Property MPG_Highway() As Byte
- Get
- Try
- Return (CByte(Me(Me.tableCars.MPG_HighwayColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'MPG_Highway' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Byte)
- Me(Me.tableCars.MPG_HighwayColumn) = value
- End Set
- End Property
-
-
- Public Property Category() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.CategoryColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Category' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.CategoryColumn) = value
- End Set
- End Property
-
-
- Public Property Description() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.DescriptionColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Description' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.DescriptionColumn) = value
- End Set
- End Property
-
-
- Public Property Hyperlink() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.HyperlinkColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Hyperlink' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.HyperlinkColumn) = value
- End Set
- End Property
-
-
- Public Property Picture() As Byte()
- Get
- Try
- Return (CType(Me(Me.tableCars.PictureColumn), Byte()))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Picture' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Byte())
- Me(Me.tableCars.PictureColumn) = value
- End Set
- End Property
-
-
- Public Property Price() As Decimal
- Get
- Try
- Return (CDec(Me(Me.tableCars.PriceColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Price' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Decimal)
- Me(Me.tableCars.PriceColumn) = value
- End Set
- End Property
-
-
- Public Property RtfContent() As String
- Get
- Try
- Return (CStr(Me(Me.tableCars.RtfContentColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'RtfContent' in table 'Cars' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCars.RtfContentColumn) = value
- End Set
- End Property
-
-
- Public Function IsTrademarkNull() As Boolean
- Return Me.IsNull(Me.tableCars.TrademarkColumn)
- End Function
-
-
- Public Sub SetTrademarkNull()
- Me(Me.tableCars.TrademarkColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsModelNull() As Boolean
- Return Me.IsNull(Me.tableCars.ModelColumn)
- End Function
-
-
- Public Sub SetModelNull()
- Me(Me.tableCars.ModelColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsHPNull() As Boolean
- Return Me.IsNull(Me.tableCars.HPColumn)
- End Function
-
-
- Public Sub SetHPNull()
- Me(Me.tableCars.HPColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsLiterNull() As Boolean
- Return Me.IsNull(Me.tableCars.LiterColumn)
- End Function
-
-
- Public Sub SetLiterNull()
- Me(Me.tableCars.LiterColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsCylNull() As Boolean
- Return Me.IsNull(Me.tableCars.CylColumn)
- End Function
-
-
- Public Sub SetCylNull()
- Me(Me.tableCars.CylColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsTransmissSpeedCountNull() As Boolean
- Return Me.IsNull(Me.tableCars.TransmissSpeedCountColumn)
- End Function
-
-
- Public Sub SetTransmissSpeedCountNull()
- Me(Me.tableCars.TransmissSpeedCountColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsTransmissAutomaticNull() As Boolean
- Return Me.IsNull(Me.tableCars.TransmissAutomaticColumn)
- End Function
-
-
- Public Sub SetTransmissAutomaticNull()
- Me(Me.tableCars.TransmissAutomaticColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsMPG_CityNull() As Boolean
- Return Me.IsNull(Me.tableCars.MPG_CityColumn)
- End Function
-
-
- Public Sub SetMPG_CityNull()
- Me(Me.tableCars.MPG_CityColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsMPG_HighwayNull() As Boolean
- Return Me.IsNull(Me.tableCars.MPG_HighwayColumn)
- End Function
-
-
- Public Sub SetMPG_HighwayNull()
- Me(Me.tableCars.MPG_HighwayColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsCategoryNull() As Boolean
- Return Me.IsNull(Me.tableCars.CategoryColumn)
- End Function
-
-
- Public Sub SetCategoryNull()
- Me(Me.tableCars.CategoryColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsDescriptionNull() As Boolean
- Return Me.IsNull(Me.tableCars.DescriptionColumn)
- End Function
-
-
- Public Sub SetDescriptionNull()
- Me(Me.tableCars.DescriptionColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsHyperlinkNull() As Boolean
- Return Me.IsNull(Me.tableCars.HyperlinkColumn)
- End Function
-
-
- Public Sub SetHyperlinkNull()
- Me(Me.tableCars.HyperlinkColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsPictureNull() As Boolean
- Return Me.IsNull(Me.tableCars.PictureColumn)
- End Function
-
-
- Public Sub SetPictureNull()
- Me(Me.tableCars.PictureColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsPriceNull() As Boolean
- Return Me.IsNull(Me.tableCars.PriceColumn)
- End Function
-
-
- Public Sub SetPriceNull()
- Me(Me.tableCars.PriceColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsRtfContentNull() As Boolean
- Return Me.IsNull(Me.tableCars.RtfContentColumn)
- End Function
-
-
- Public Sub SetRtfContentNull()
- Me(Me.tableCars.RtfContentColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function GetCarSchedulingRows() As CarSchedulingRow()
- If (Me.Table.ChildRelations("CarsCarScheduling") Is Nothing) Then
- Return New CarSchedulingRow() {}
- Else
- Return (CType(MyBase.GetChildRows(Me.Table.ChildRelations("CarsCarScheduling")), CarSchedulingRow()))
- End If
- End Function
- End Class
-
- '''
- '''Represents strongly named DataRow class.
- '''
- Partial Public Class CarSchedulingRow
- Inherits System.Data.DataRow
-
- Private tableCarScheduling As CarSchedulingDataTable
-
-
- Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
- MyBase.New(rb)
- Me.tableCarScheduling = (CType(Me.Table, CarSchedulingDataTable))
- End Sub
-
-
- Public Property ID() As Integer
- Get
- Return (CInt((Me(Me.tableCarScheduling.IDColumn))))
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.IDColumn) = value
- End Set
- End Property
-
-
- Public Property CarId() As Integer
- Get
- Try
- Return (CInt((Me(Me.tableCarScheduling.CarIdColumn))))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'CarId' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.CarIdColumn) = value
- End Set
- End Property
-
-
- Public Property UserId() As Integer
- Get
- Try
- Return (CInt((Me(Me.tableCarScheduling.UserIdColumn))))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'UserId' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.UserIdColumn) = value
- End Set
- End Property
-
-
- Public Property Status() As Integer
- Get
- Try
- Return (CInt((Me(Me.tableCarScheduling.StatusColumn))))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Status' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.StatusColumn) = value
- End Set
- End Property
-
-
- Public Property Subject() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.SubjectColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Subject' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.SubjectColumn) = value
- End Set
- End Property
-
-
- Public Property Description() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.DescriptionColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Description' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.DescriptionColumn) = value
- End Set
- End Property
-
-
- Public Property Label() As Integer
- Get
- Try
- Return (CInt((Me(Me.tableCarScheduling.LabelColumn))))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Label' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.LabelColumn) = value
- End Set
- End Property
-
-
- Public Property StartTime() As Date
- Get
- Try
- Return (CDate(Me(Me.tableCarScheduling.StartTimeColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'StartTime' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Date)
- Me(Me.tableCarScheduling.StartTimeColumn) = value
- End Set
- End Property
-
-
- Public Property EndTime() As Date
- Get
- Try
- Return (CDate(Me(Me.tableCarScheduling.EndTimeColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'EndTime' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Date)
- Me(Me.tableCarScheduling.EndTimeColumn) = value
- End Set
- End Property
-
-
- Public Property Location() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.LocationColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Location' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.LocationColumn) = value
- End Set
- End Property
-
-
- Public Property AllDay() As Boolean
- Get
- Try
- Return (CBool(Me(Me.tableCarScheduling.AllDayColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'AllDay' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Boolean)
- Me(Me.tableCarScheduling.AllDayColumn) = value
- End Set
- End Property
-
-
- Public Property EventType() As Integer
- Get
- Try
- Return (CInt((Me(Me.tableCarScheduling.EventTypeColumn))))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'EventType' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Integer)
- Me(Me.tableCarScheduling.EventTypeColumn) = value
- End Set
- End Property
-
-
- Public Property RecurrenceInfo() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.RecurrenceInfoColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'RecurrenceInfo' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.RecurrenceInfoColumn) = value
- End Set
- End Property
-
-
- Public Property ReminderInfo() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.ReminderInfoColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'ReminderInfo' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.ReminderInfoColumn) = value
- End Set
- End Property
-
-
- Public Property Price() As Decimal
- Get
- Try
- Return (CDec(Me(Me.tableCarScheduling.PriceColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'Price' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As Decimal)
- Me(Me.tableCarScheduling.PriceColumn) = value
- End Set
- End Property
-
-
- Public Property ContactInfo() As String
- Get
- Try
- Return (CStr(Me(Me.tableCarScheduling.ContactInfoColumn)))
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("The value for column 'ContactInfo' in table 'CarScheduling' is DBNull.", e)
- End Try
- End Get
- Set(ByVal value As String)
- Me(Me.tableCarScheduling.ContactInfoColumn) = value
- End Set
- End Property
-
-
- Public Property CarsRow() As CarsRow
- Get
- Return (CType(Me.GetParentRow(Me.Table.ParentRelations("CarsCarScheduling")), CarsRow))
- End Get
- Set(ByVal value As CarsRow)
- Me.SetParentRow(value, Me.Table.ParentRelations("CarsCarScheduling"))
- End Set
- End Property
-
-
- Public Function IsCarIdNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.CarIdColumn)
- End Function
-
-
- Public Sub SetCarIdNull()
- Me(Me.tableCarScheduling.CarIdColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsUserIdNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.UserIdColumn)
- End Function
-
-
- Public Sub SetUserIdNull()
- Me(Me.tableCarScheduling.UserIdColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsStatusNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.StatusColumn)
- End Function
-
-
- Public Sub SetStatusNull()
- Me(Me.tableCarScheduling.StatusColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsSubjectNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.SubjectColumn)
- End Function
-
-
- Public Sub SetSubjectNull()
- Me(Me.tableCarScheduling.SubjectColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsDescriptionNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.DescriptionColumn)
- End Function
-
-
- Public Sub SetDescriptionNull()
- Me(Me.tableCarScheduling.DescriptionColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsLabelNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.LabelColumn)
- End Function
-
-
- Public Sub SetLabelNull()
- Me(Me.tableCarScheduling.LabelColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsStartTimeNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.StartTimeColumn)
- End Function
-
-
- Public Sub SetStartTimeNull()
- Me(Me.tableCarScheduling.StartTimeColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsEndTimeNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.EndTimeColumn)
- End Function
-
-
- Public Sub SetEndTimeNull()
- Me(Me.tableCarScheduling.EndTimeColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsLocationNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.LocationColumn)
- End Function
-
-
- Public Sub SetLocationNull()
- Me(Me.tableCarScheduling.LocationColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsAllDayNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.AllDayColumn)
- End Function
-
-
- Public Sub SetAllDayNull()
- Me(Me.tableCarScheduling.AllDayColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsEventTypeNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.EventTypeColumn)
- End Function
-
-
- Public Sub SetEventTypeNull()
- Me(Me.tableCarScheduling.EventTypeColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsRecurrenceInfoNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.RecurrenceInfoColumn)
- End Function
-
-
- Public Sub SetRecurrenceInfoNull()
- Me(Me.tableCarScheduling.RecurrenceInfoColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsReminderInfoNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.ReminderInfoColumn)
- End Function
-
-
- Public Sub SetReminderInfoNull()
- Me(Me.tableCarScheduling.ReminderInfoColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsPriceNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.PriceColumn)
- End Function
-
-
- Public Sub SetPriceNull()
- Me(Me.tableCarScheduling.PriceColumn) = Global.System.Convert.DBNull
- End Sub
-
-
- Public Function IsContactInfoNull() As Boolean
- Return Me.IsNull(Me.tableCarScheduling.ContactInfoColumn)
- End Function
-
-
- Public Sub SetContactInfoNull()
- Me(Me.tableCarScheduling.ContactInfoColumn) = Global.System.Convert.DBNull
- End Sub
- End Class
-
- '''
- '''Row event argument class
- '''
-
- Public Class CarsRowChangeEvent
- Inherits System.EventArgs
-
- Private eventRow As CarsRow
-
- Private eventAction As Global.System.Data.DataRowAction
-
-
- Public Sub New(ByVal row As CarsRow, ByVal action As Global.System.Data.DataRowAction)
- Me.eventRow = row
- Me.eventAction = action
- End Sub
-
-
- Public ReadOnly Property Row() As CarsRow
- Get
- Return Me.eventRow
- End Get
- End Property
-
-
- Public ReadOnly Property Action() As Global.System.Data.DataRowAction
- Get
- Return Me.eventAction
- End Get
- End Property
- End Class
-
- '''
- '''Row event argument class
- '''
-
- Public Class CarSchedulingRowChangeEvent
- Inherits System.EventArgs
-
- Private eventRow As CarSchedulingRow
-
- Private eventAction As Global.System.Data.DataRowAction
-
-
- Public Sub New(ByVal row As CarSchedulingRow, ByVal action As Global.System.Data.DataRowAction)
- Me.eventRow = row
- Me.eventAction = action
- End Sub
-
-
- Public ReadOnly Property Row() As CarSchedulingRow
- Get
- Return Me.eventRow
- End Get
- End Property
-
-
- Public ReadOnly Property Action() As Global.System.Data.DataRowAction
- Get
- Return Me.eventAction
- End Get
- End Property
- End Class
- End Class
+ '''
+ '''Represents a strongly typed in-memory cache of data.
+ '''
+
+
+
+
+
+
+ Partial Public Class CarsDBDataSet
+ Inherits System.Data.DataSet
+
+ Private tableCars As CarsDataTable
+
+ Private tableCarScheduling As CarSchedulingDataTable
+
+ Private relationCarsCarScheduling As System.Data.DataRelation
+
+ Private _schemaSerializationMode As System.Data.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema
+
+
+
+ Public Sub New()
+ Me.BeginInit()
+ Me.InitClass()
+ Dim schemaChangedHandler As New System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
+ AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
+ AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
+ Me.EndInit()
+ End Sub
+
+
+
+ Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
+ MyBase.New(info, context, False)
+ If (Me.IsBinarySerialized(info, context) = True) Then
+ Me.InitVars(False)
+ Dim schemaChangedHandler1 As New System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
+ AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
+ AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
+ Return
+ End If
+ Dim strSchema As String = (CStr(info.GetValue("XmlSchema", GetType(String))))
+ If (Me.DetermineSchemaSerializationMode(info, context) = System.Data.SchemaSerializationMode.IncludeSchema) Then
+ Dim ds As New System.Data.DataSet()
+ ds.ReadXmlSchema(New System.Xml.XmlTextReader(New System.IO.StringReader(strSchema)))
+ If (ds.Tables("Cars") IsNot Nothing) Then
+ MyBase.Tables.Add(New CarsDataTable(ds.Tables("Cars")))
+ End If
+ If (ds.Tables("CarScheduling") IsNot Nothing) Then
+ MyBase.Tables.Add(New CarSchedulingDataTable(ds.Tables("CarScheduling")))
+ End If
+ Me.DataSetName = ds.DataSetName
+ Me.Prefix = ds.Prefix
+ Me.Namespace = ds.Namespace
+ Me.Locale = ds.Locale
+ Me.CaseSensitive = ds.CaseSensitive
+ Me.EnforceConstraints = ds.EnforceConstraints
+ Me.Merge(ds, False, System.Data.MissingSchemaAction.Add)
+ Me.InitVars()
+ Else
+ Me.ReadXmlSchema(New System.Xml.XmlTextReader(New System.IO.StringReader(strSchema)))
+ End If
+ Me.GetSerializationData(info, context)
+ Dim schemaChangedHandler As New System.ComponentModel.CollectionChangeEventHandler(AddressOf Me.SchemaChanged)
+ AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
+ AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
+ End Sub
+
+
+
+
+
+ Public ReadOnly Property Cars() As CarsDataTable
+ Get
+ Return Me.tableCars
+ End Get
+ End Property
+
+
+
+
+
+ Public ReadOnly Property CarScheduling() As CarSchedulingDataTable
+ Get
+ Return Me.tableCarScheduling
+ End Get
+ End Property
+
+
+
+
+
+ Public Overrides Property SchemaSerializationMode() As System.Data.SchemaSerializationMode
+ Get
+ Return Me._schemaSerializationMode
+ End Get
+ Set(ByVal value As System.Data.SchemaSerializationMode)
+ Me._schemaSerializationMode = value
+ End Set
+ End Property
+
+
+
+
+ Public Shadows ReadOnly Property Tables() As System.Data.DataTableCollection
+ Get
+ Return MyBase.Tables
+ End Get
+ End Property
+
+
+
+
+ Public Shadows ReadOnly Property Relations() As System.Data.DataRelationCollection
+ Get
+ Return MyBase.Relations
+ End Get
+ End Property
+
+
+
+ Protected Overrides Sub InitializeDerivedDataSet()
+ Me.BeginInit()
+ Me.InitClass()
+ Me.EndInit()
+ End Sub
+
+
+
+ Public Overrides Function Clone() As System.Data.DataSet
+ Dim cln As CarsDBDataSet = (CType(MyBase.Clone(), CarsDBDataSet))
+ cln.InitVars()
+ cln.SchemaSerializationMode = Me.SchemaSerializationMode
+ Return cln
+ End Function
+
+
+
+ Protected Overrides Function ShouldSerializeTables() As Boolean
+ Return False
+ End Function
+
+
+
+ Protected Overrides Function ShouldSerializeRelations() As Boolean
+ Return False
+ End Function
+
+
+
+ Protected Overrides Sub ReadXmlSerializable(ByVal reader As System.Xml.XmlReader)
+ If (Me.DetermineSchemaSerializationMode(reader) = System.Data.SchemaSerializationMode.IncludeSchema) Then
+ Me.Reset()
+ Dim ds As New System.Data.DataSet()
+ ds.ReadXml(reader)
+ If (ds.Tables("Cars") IsNot Nothing) Then
+ MyBase.Tables.Add(New CarsDataTable(ds.Tables("Cars")))
+ End If
+ If (ds.Tables("CarScheduling") IsNot Nothing) Then
+ MyBase.Tables.Add(New CarSchedulingDataTable(ds.Tables("CarScheduling")))
+ End If
+ Me.DataSetName = ds.DataSetName
+ Me.Prefix = ds.Prefix
+ Me.Namespace = ds.Namespace
+ Me.Locale = ds.Locale
+ Me.CaseSensitive = ds.CaseSensitive
+ Me.EnforceConstraints = ds.EnforceConstraints
+ Me.Merge(ds, False, System.Data.MissingSchemaAction.Add)
+ Me.InitVars()
+ Else
+ Me.ReadXml(reader)
+ Me.InitVars()
+ End If
+ End Sub
+
+
+
+ Protected Overrides Function GetSchemaSerializable() As System.Xml.Schema.XmlSchema
+ Dim stream As New System.IO.MemoryStream()
+ Me.WriteXmlSchema(New System.Xml.XmlTextWriter(stream, Nothing))
+ stream.Position = 0
+ Return System.Xml.Schema.XmlSchema.Read(New System.Xml.XmlTextReader(stream), Nothing)
+ End Function
+
+
+
+ Friend Sub InitVars()
+ Me.InitVars(True)
+ End Sub
+
+
+