📄 joinquerydataset.designer.vb
字号:
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property Count() As Integer
Get
Return Me.Rows.Count
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Default ReadOnly Property Item(ByVal index As Integer) As ProductsCategoryRow
Get
Return CType(Me.Rows(index),ProductsCategoryRow)
End Get
End Property
Public Event ProductsCategoryRowChanging As ProductsCategoryRowChangeEventHandler
Public Event ProductsCategoryRowChanged As ProductsCategoryRowChangeEventHandler
Public Event ProductsCategoryRowDeleting As ProductsCategoryRowChangeEventHandler
Public Event ProductsCategoryRowDeleted As ProductsCategoryRowChangeEventHandler
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddProductsCategoryRow(ByVal row As ProductsCategoryRow)
Me.Rows.Add(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddProductsCategoryRow(ByVal ProductID As Integer, ByVal Name As String, ByVal Color As String, ByVal ListPrice As Decimal, ByVal Size As String, ByVal CategoryName As String) As ProductsCategoryRow
Dim rowProductsCategoryRow As ProductsCategoryRow = CType(Me.NewRow,ProductsCategoryRow)
rowProductsCategoryRow.ItemArray = New Object() {ProductID, Name, Color, ListPrice, Size, CategoryName}
Me.Rows.Add(rowProductsCategoryRow)
Return rowProductsCategoryRow
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overridable Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
Return Me.Rows.GetEnumerator
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overrides Function Clone() As System.Data.DataTable
Dim cln As ProductsCategoryDataTable = CType(MyBase.Clone,ProductsCategoryDataTable)
cln.InitVars
Return cln
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As System.Data.DataTable
Return New ProductsCategoryDataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.columnProductID = MyBase.Columns("ProductID")
Me.columnName = MyBase.Columns("Name")
Me.columnColor = MyBase.Columns("Color")
Me.columnListPrice = MyBase.Columns("ListPrice")
Me.columnSize = MyBase.Columns("Size")
Me.columnCategoryName = MyBase.Columns("CategoryName")
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.columnProductID = New System.Data.DataColumn("ProductID", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnProductID)
Me.columnName = New System.Data.DataColumn("Name", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnName)
Me.columnColor = New System.Data.DataColumn("Color", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnColor)
Me.columnListPrice = New System.Data.DataColumn("ListPrice", GetType(Decimal), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnListPrice)
Me.columnSize = New System.Data.DataColumn("Size", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnSize)
Me.columnCategoryName = New System.Data.DataColumn("CategoryName", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnCategoryName)
Me.columnProductID.ReadOnly = true
Me.columnName.ReadOnly = true
Me.columnName.MaxLength = 50
Me.columnColor.ReadOnly = true
Me.columnColor.MaxLength = 15
Me.columnListPrice.ReadOnly = true
Me.columnSize.ReadOnly = true
Me.columnSize.MaxLength = 5
Me.columnCategoryName.ReadOnly = true
Me.columnCategoryName.MaxLength = 50
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewProductsCategoryRow() As ProductsCategoryRow
Return CType(Me.NewRow,ProductsCategoryRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New ProductsCategoryRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(ProductsCategoryRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.ProductsCategoryRowChangedEvent) Is Nothing) Then
RaiseEvent ProductsCategoryRowChanged(Me, New ProductsCategoryRowChangeEvent(CType(e.Row,ProductsCategoryRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanging(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanging(e)
If (Not (Me.ProductsCategoryRowChangingEvent) Is Nothing) Then
RaiseEvent ProductsCategoryRowChanging(Me, New ProductsCategoryRowChangeEvent(CType(e.Row,ProductsCategoryRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowDeleted(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleted(e)
If (Not (Me.ProductsCategoryRowDeletedEvent) Is Nothing) Then
RaiseEvent ProductsCategoryRowDeleted(Me, New ProductsCategoryRowChangeEvent(CType(e.Row,ProductsCategoryRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowDeleting(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleting(e)
If (Not (Me.ProductsCategoryRowDeletingEvent) Is Nothing) Then
RaiseEvent ProductsCategoryRowDeleting(Me, New ProductsCategoryRowChangeEvent(CType(e.Row,ProductsCategoryRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveProductsCategoryRow(ByVal row As ProductsCategoryRow)
Me.Rows.Remove(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Shared Function GetTypedTableSchema(ByVal xs As System.Xml.Schema.XmlSchemaSet) As System.Xml.Schema.XmlSchemaComplexType
Dim type As System.Xml.Schema.XmlSchemaComplexType = New System.Xml.Schema.XmlSchemaComplexType
Dim sequence As System.Xml.Schema.XmlSchemaSequence = New System.Xml.Schema.XmlSchemaSequence
Dim ds As JOINQueryDataSet = New JOINQueryDataSet
xs.Add(ds.GetSchemaSerializable)
Dim any1 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
any1.Namespace = "http://www.w3.org/2001/XMLSchema"
any1.MinOccurs = New Decimal(0)
any1.MaxOccurs = Decimal.MaxValue
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
sequence.Items.Add(any1)
Dim any2 As System.Xml.Schema.XmlSchemaAny = New System.Xml.Schema.XmlSchemaAny
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
any2.MinOccurs = New Decimal(1)
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax
sequence.Items.Add(any2)
Dim attribute1 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
attribute1.Name = "namespace"
attribute1.FixedValue = ds.Namespace
type.Attributes.Add(attribute1)
Dim attribute2 As System.Xml.Schema.XmlSchemaAttribute = New System.Xml.Schema.XmlSchemaAttribute
attribute2.Name = "tableTypeName"
attribute2.FixedValue = "ProductsCategoryDataTable"
type.Attributes.Add(attribute2)
type.Particle = sequence
Return type
End Function
End Class
Partial Public Class ProductsCategoryRow
Inherits System.Data.DataRow
Private tableProductsCategory As ProductsCategoryDataTable
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
MyBase.New(rb)
Me.tableProductsCategory = CType(Me.Table,ProductsCategoryDataTable)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property ProductID() As Integer
Get
Try
Return CType(Me(Me.tableProductsCategory.ProductIDColumn),Integer)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'ProductID' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableProductsCategory.ProductIDColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Name() As String
Get
Try
Return CType(Me(Me.tableProductsCategory.NameColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Name' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableProductsCategory.NameColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Color() As String
Get
Try
Return CType(Me(Me.tableProductsCategory.ColorColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Color' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableProductsCategory.ColorColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property ListPrice() As Decimal
Get
Try
Return CType(Me(Me.tableProductsCategory.ListPriceColumn),Decimal)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'ListPrice' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableProductsCategory.ListPriceColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Size() As String
Get
Try
Return CType(Me(Me.tableProductsCategory.SizeColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Size' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableProductsCategory.SizeColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property CategoryName() As String
Get
Try
Return CType(Me(Me.tableProductsCategory.CategoryNameColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'CategoryName' in table 'ProductsCategory' is DBNull.", e)
End Try
End Get
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -