📄 northwinddataset.designer.vb
字号:
Me.columnCategoryID = New System.Data.DataColumn("CategoryID", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnCategoryID)
Me.columnQuantityPerUnit = New System.Data.DataColumn("QuantityPerUnit", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnQuantityPerUnit)
Me.columnUnitPrice = New System.Data.DataColumn("UnitPrice", GetType(Decimal), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnUnitPrice)
Me.columnUnitsInStock = New System.Data.DataColumn("UnitsInStock", GetType(Short), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnUnitsInStock)
Me.columnUnitsOnOrder = New System.Data.DataColumn("UnitsOnOrder", GetType(Short), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnUnitsOnOrder)
Me.columnReorderLevel = New System.Data.DataColumn("ReorderLevel", GetType(Short), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnReorderLevel)
Me.columnDiscontinued = New System.Data.DataColumn("Discontinued", GetType(Boolean), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnDiscontinued)
Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnProductID}, true))
Me.columnProductID.AutoIncrement = true
Me.columnProductID.AllowDBNull = false
Me.columnProductID.ReadOnly = true
Me.columnProductID.Unique = true
Me.columnProductName.AllowDBNull = false
Me.columnProductName.MaxLength = 40
Me.columnQuantityPerUnit.MaxLength = 20
Me.columnDiscontinued.AllowDBNull = false
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewProductsRow() As ProductsRow
Return CType(Me.NewRow,ProductsRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New ProductsRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(ProductsRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.ProductsRowChangedEvent) Is Nothing) Then
RaiseEvent ProductsRowChanged(Me, New ProductsRowChangeEvent(CType(e.Row,ProductsRow), 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.ProductsRowChangingEvent) Is Nothing) Then
RaiseEvent ProductsRowChanging(Me, New ProductsRowChangeEvent(CType(e.Row,ProductsRow), 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.ProductsRowDeletedEvent) Is Nothing) Then
RaiseEvent ProductsRowDeleted(Me, New ProductsRowChangeEvent(CType(e.Row,ProductsRow), 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.ProductsRowDeletingEvent) Is Nothing) Then
RaiseEvent ProductsRowDeleting(Me, New ProductsRowChangeEvent(CType(e.Row,ProductsRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveProductsRow(ByVal row As ProductsRow)
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 NorthwindDataSet = New NorthwindDataSet
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 = "ProductsDataTable"
type.Attributes.Add(attribute2)
type.Particle = sequence
Return type
End Function
End Class
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")> _
Partial Public Class ProductsRow
Inherits System.Data.DataRow
Private tableProducts As ProductsDataTable
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
MyBase.New(rb)
Me.tableProducts = CType(Me.Table,ProductsDataTable)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property ProductID() As Integer
Get
Return CType(Me(Me.tableProducts.ProductIDColumn),Integer)
End Get
Set
Me(Me.tableProducts.ProductIDColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property ProductName() As String
Get
Return CType(Me(Me.tableProducts.ProductNameColumn),String)
End Get
Set
Me(Me.tableProducts.ProductNameColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property SupplierID() As Integer
Get
Try
Return CType(Me(Me.tableProducts.SupplierIDColumn),Integer)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““Products””中列““SupplierID””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableProducts.SupplierIDColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property CategoryID() As Integer
Get
Try
Return CType(Me(Me.tableProducts.CategoryIDColumn),Integer)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““Products””中列““CategoryID””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableProducts.CategoryIDColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property QuantityPerUnit() As String
Get
Try
Return CType(Me(Me.tableProducts.QuantityPerUnitColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““Products””中列““QuantityPerUnit””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableProducts.QuantityPerUnitColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property UnitPrice() As Decimal
Get
Try
Return CType(Me(Me.tableProducts.UnitPriceColumn),Decimal)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““Products””中列““UnitPrice””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableProducts.UnitPriceColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property UnitsInStock() As Short
Get
Try
Return CType(Me(Me.tableProducts.UnitsInStockColumn),Short)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““Products””中列““UnitsInStock””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableProducts.UnitsInStockColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property UnitsOnOrder() As Short
Get
Try
Return CType(Me(Me.tableProducts.UnitsOnOrderColumn),Short)
Catch e As System.InvalidCastException
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -