📄 adventureworksdataset.designer.vb
字号:
MyBase.New
Me.TableName = "Individual"
Me.BeginInit
Me.InitClass
Me.EndInit
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub New(ByVal table As 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
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Sub New(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal context As System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
Me.InitVars
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property CustomerIDColumn() As System.Data.DataColumn
Get
Return Me.columnCustomerID
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property ContactIDColumn() As System.Data.DataColumn
Get
Return Me.columnContactID
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property DemographicsColumn() As System.Data.DataColumn
Get
Return Me.columnDemographics
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property ModifiedDateColumn() As System.Data.DataColumn
Get
Return Me.columnModifiedDate
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute(), _
System.ComponentModel.Browsable(false)> _
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 IndividualRow
Get
Return CType(Me.Rows(index),IndividualRow)
End Get
End Property
Public Event IndividualRowChanging As IndividualRowChangeEventHandler
Public Event IndividualRowChanged As IndividualRowChangeEventHandler
Public Event IndividualRowDeleting As IndividualRowChangeEventHandler
Public Event IndividualRowDeleted As IndividualRowChangeEventHandler
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddIndividualRow(ByVal row As IndividualRow)
Me.Rows.Add(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddIndividualRow(ByVal parentCustomerRowByFK_Individual_Customer_CustomerID As CustomerRow, ByVal parentContactRowByFK_Individual_Contact_ContactID As ContactRow, ByVal Demographics As String, ByVal ModifiedDate As Date) As IndividualRow
Dim rowIndividualRow As IndividualRow = CType(Me.NewRow,IndividualRow)
rowIndividualRow.ItemArray = New Object() {parentCustomerRowByFK_Individual_Customer_CustomerID(0), parentContactRowByFK_Individual_Contact_ContactID(0), Demographics, ModifiedDate}
Me.Rows.Add(rowIndividualRow)
Return rowIndividualRow
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindByCustomerID(ByVal CustomerID As Integer) As IndividualRow
Return CType(Me.Rows.Find(New Object() {CustomerID}),IndividualRow)
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 IndividualDataTable = CType(MyBase.Clone,IndividualDataTable)
cln.InitVars
Return cln
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As System.Data.DataTable
Return New IndividualDataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.columnCustomerID = MyBase.Columns("CustomerID")
Me.columnContactID = MyBase.Columns("ContactID")
Me.columnDemographics = MyBase.Columns("Demographics")
Me.columnModifiedDate = MyBase.Columns("ModifiedDate")
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.columnCustomerID = New System.Data.DataColumn("CustomerID", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnCustomerID)
Me.columnContactID = New System.Data.DataColumn("ContactID", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnContactID)
Me.columnDemographics = New System.Data.DataColumn("Demographics", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnDemographics)
Me.columnModifiedDate = New System.Data.DataColumn("ModifiedDate", GetType(Date), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnModifiedDate)
Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnCustomerID}, true))
Me.columnCustomerID.AllowDBNull = false
Me.columnCustomerID.Unique = true
Me.columnContactID.AllowDBNull = false
Me.columnDemographics.MaxLength = 2147483647
Me.columnModifiedDate.AllowDBNull = false
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewIndividualRow() As IndividualRow
Return CType(Me.NewRow,IndividualRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New IndividualRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(IndividualRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.IndividualRowChangedEvent) Is Nothing) Then
RaiseEvent IndividualRowChanged(Me, New IndividualRowChangeEvent(CType(e.Row,IndividualRow), 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.IndividualRowChangingEvent) Is Nothing) Then
RaiseEvent IndividualRowChanging(Me, New IndividualRowChangeEvent(CType(e.Row,IndividualRow), 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.IndividualRowDeletedEvent) Is Nothing) Then
RaiseEvent IndividualRowDeleted(Me, New IndividualRowChangeEvent(CType(e.Row,IndividualRow), 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.IndividualRowDeletingEvent) Is Nothing) Then
RaiseEvent IndividualRowDeleting(Me, New IndividualRowChangeEvent(CType(e.Row,IndividualRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveIndividualRow(ByVal row As IndividualRow)
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 AdventureWorksDataSet = New AdventureWorksDataSet
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 = "IndividualDataTable"
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"), _
System.Serializable(), _
System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
Partial Public Class SalesOrderHeaderDataTable
Inherits System.Data.DataTable
Implements System.Collections.IEnumerable
Private columnSalesOrderID As System.Data.DataColumn
Private columnRevisionNumber As System.Data.DataColumn
Private columnOrderDate As System.Data.DataColumn
Private columnDueDate As System.Data.DataColumn
Private columnShipDate As System.Data.DataColumn
Private columnStatus As System.Data.DataColumn
Private columnOnlineOrderFlag As System.Data.DataColumn
Private columnSalesOrderNumber As System.Data.DataColumn
Private columnPurchaseOrderNumber As System.Data.DataColumn
Private columnAccountNumber As System.Data.DataColumn
Private columnCustomerID As System.Data.DataColumn
Private columnContactID As System.Data.DataColumn
Private columnSalesPersonID As System.Data.DataColumn
Private columnTerritoryID As System.Data.DataColumn
Private columnBillToAddressID As System.Data.DataColumn
Privat
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -