📄 northwinddataset.designer.vb
字号:
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property NameColumn() As System.Data.DataColumn
Get
Return Me.columnName
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 EmployeesRow
Get
Return CType(Me.Rows(index),EmployeesRow)
End Get
End Property
Public Event EmployeesRowChanging As EmployeesRowChangeEventHandler
Public Event EmployeesRowChanged As EmployeesRowChangeEventHandler
Public Event EmployeesRowDeleting As EmployeesRowChangeEventHandler
Public Event EmployeesRowDeleted As EmployeesRowChangeEventHandler
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddEmployeesRow(ByVal row As EmployeesRow)
Me.Rows.Add(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddEmployeesRow(ByVal Name As String) As EmployeesRow
Dim rowEmployeesRow As EmployeesRow = CType(Me.NewRow,EmployeesRow)
rowEmployeesRow.ItemArray = New Object() {Nothing, Name}
Me.Rows.Add(rowEmployeesRow)
Return rowEmployeesRow
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindByEmployee_ID(ByVal Employee_ID As Integer) As EmployeesRow
Return CType(Me.Rows.Find(New Object() {Employee_ID}),EmployeesRow)
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 EmployeesDataTable = CType(MyBase.Clone,EmployeesDataTable)
cln.InitVars
Return cln
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As System.Data.DataTable
Return New EmployeesDataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.columnEmployee_ID = MyBase.Columns("Employee ID")
Me.columnName = MyBase.Columns("Name")
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.columnEmployee_ID = New System.Data.DataColumn("Employee ID", GetType(Integer), Nothing, System.Data.MappingType.Element)
Me.columnEmployee_ID.ExtendedProperties.Add("Generator_ColumnPropNameInRow", "Employee_ID")
Me.columnEmployee_ID.ExtendedProperties.Add("Generator_ColumnPropNameInTable", "Employee_IDColumn")
Me.columnEmployee_ID.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "columnEmployee_ID")
Me.columnEmployee_ID.ExtendedProperties.Add("Generator_UserColumnName", "Employee ID")
MyBase.Columns.Add(Me.columnEmployee_ID)
Me.columnName = New System.Data.DataColumn("Name", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnName)
Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnEmployee_ID}, true))
Me.columnEmployee_ID.AutoIncrement = true
Me.columnEmployee_ID.AllowDBNull = false
Me.columnEmployee_ID.ReadOnly = true
Me.columnEmployee_ID.Unique = true
Me.columnName.ReadOnly = true
Me.columnName.MaxLength = 31
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewEmployeesRow() As EmployeesRow
Return CType(Me.NewRow,EmployeesRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New EmployeesRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(EmployeesRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.EmployeesRowChangedEvent) Is Nothing) Then
RaiseEvent EmployeesRowChanged(Me, New EmployeesRowChangeEvent(CType(e.Row,EmployeesRow), 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.EmployeesRowChangingEvent) Is Nothing) Then
RaiseEvent EmployeesRowChanging(Me, New EmployeesRowChangeEvent(CType(e.Row,EmployeesRow), 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.EmployeesRowDeletedEvent) Is Nothing) Then
RaiseEvent EmployeesRowDeleted(Me, New EmployeesRowChangeEvent(CType(e.Row,EmployeesRow), 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.EmployeesRowDeletingEvent) Is Nothing) Then
RaiseEvent EmployeesRowDeleting(Me, New EmployeesRowChangeEvent(CType(e.Row,EmployeesRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveEmployeesRow(ByVal row As EmployeesRow)
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 = "EmployeesDataTable"
type.Attributes.Add(attribute2)
type.Particle = sequence
Return type
End Function
End Class
Partial Public Class CustomersRow
Inherits System.Data.DataRow
Private tableCustomers As CustomersDataTable
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub New(ByVal rb As System.Data.DataRowBuilder)
MyBase.New(rb)
Me.tableCustomers = CType(Me.Table,CustomersDataTable)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Customer_ID() As String
Get
Return CType(Me(Me.tableCustomers.Customer_IDColumn),String)
End Get
Set
Me(Me.tableCustomers.Customer_IDColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Company_Name() As String
Get
Return CType(Me(Me.tableCustomers.Company_NameColumn),String)
End Get
Set
Me(Me.tableCustomers.Company_NameColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Contact_Name() As String
Get
Try
Return CType(Me(Me.tableCustomers.Contact_NameColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Contact Name' in table 'Customers' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableCustomers.Contact_NameColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Contact_Title() As String
Get
Try
Return CType(Me(Me.tableCustomers.Contact_TitleColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Contact Title' in table 'Customers' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableCustomers.Contact_TitleColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Address() As String
Get
Try
Return CType(Me(Me.tableCustomers.AddressColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Address' in table 'Customers' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableCustomers.AddressColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property City() As String
Get
Try
Return CType(Me(Me.tableCustomers.CityColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'City' in table 'Customers' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableCustomers.CityColumn) = value
End Set
End
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -