📄 studentdataset.designer.vb
字号:
any1.MaxOccurs = Decimal.MaxValue
any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
sequence.Items.Add(any1)
Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = 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 Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute
attribute1.Name = "namespace"
attribute1.FixedValue = ds.Namespace
type.Attributes.Add(attribute1)
Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute
attribute2.Name = "tableTypeName"
attribute2.FixedValue = "tbRecruitDataTable"
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 Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream
Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream
Try
Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
dsSchema.Write(s1)
Dim schemas As Global.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 (Not (s1) Is Nothing) Then
s1.Close
End If
If (Not (s2) Is Nothing) Then
s2.Close
End If
End Try
End If
xs.Add(dsSchema)
Return type
End Function
End Class
'''<summary>
'''Represents the strongly named DataTable class.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), _
Global.System.Serializable(), _
Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
Partial Public Class tbStudentDataTable
Inherits Global.System.Data.DataTable
Implements Global.System.Collections.IEnumerable
Private columnStudentNo As Global.System.Data.DataColumn
Private columnName As Global.System.Data.DataColumn
Private columnBirthDate As Global.System.Data.DataColumn
Private columnGender As Global.System.Data.DataColumn
Private columnPolitic As Global.System.Data.DataColumn
Private columnFamilyAddress As Global.System.Data.DataColumn
Private columnGraduateSchool As Global.System.Data.DataColumn
Private columnFatherName As Global.System.Data.DataColumn
Private columnPhone As Global.System.Data.DataColumn
Private columnRecruitName As Global.System.Data.DataColumn
Private columnClassName As Global.System.Data.DataColumn
Private columnFee As Global.System.Data.DataColumn
Private columnMemo As Global.System.Data.DataColumn
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New()
MyBase.New
Me.TableName = "tbStudent"
Me.BeginInit
Me.InitClass
Me.EndInit
End Sub
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub New(ByVal table As Global.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
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
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
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property StudentNoColumn() As Global.System.Data.DataColumn
Get
Return Me.columnStudentNo
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property NameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnName
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property BirthDateColumn() As Global.System.Data.DataColumn
Get
Return Me.columnBirthDate
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property GenderColumn() As Global.System.Data.DataColumn
Get
Return Me.columnGender
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property PoliticColumn() As Global.System.Data.DataColumn
Get
Return Me.columnPolitic
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property FamilyAddressColumn() As Global.System.Data.DataColumn
Get
Return Me.columnFamilyAddress
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property GraduateSchoolColumn() As Global.System.Data.DataColumn
Get
Return Me.columnGraduateSchool
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property FatherNameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnFatherName
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property PhoneColumn() As Global.System.Data.DataColumn
Get
Return Me.columnPhone
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property RecruitNameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnRecruitName
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property ClassNameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnClassName
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property FeeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnFee
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property MemoColumn() As Global.System.Data.DataColumn
Get
Return Me.columnMemo
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.ComponentModel.Browsable(false)> _
Public ReadOnly Property Count() As Integer
Get
Return Me.Rows.Count
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Default ReadOnly Property Item(ByVal index As Integer) As tbStudentRow
Get
Return CType(Me.Rows(index),tbStudentRow)
End Get
End Property
Public Event tbStudentRowChanging As tbStudentRowChangeEventHandler
Public Event tbStudentRowChanged As tbStudentRowChangeEventHandler
Public Event tbStudentRowDeleting As tbStudentRowChangeEventHandler
Public Event tbStudentRowDeleted As tbStudentRowChangeEventHandler
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddtbStudentRow(ByVal row As tbStudentRow)
Me.Rows.Add(row)
End Sub
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddtbStudentRow(ByVal StudentNo As String, ByVal Name As String, ByVal BirthDate As Date, ByVal Gender As String, ByVal Politic As String, ByVal FamilyAddress As String, ByVal GraduateSchool As String, ByVal FatherName As String, ByVal Phone As String, ByVal RecruitName As String, ByVal ClassName As String, ByVal Fee As Single, ByVal Memo As String) As tbStudentRow
Dim rowtbStudentRow As tbStudentRow = CType(Me.NewRow,tbStudentRow)
Dim columnValuesArray() As Object = New Object() {StudentNo, Name, BirthDate, Gender, Politic, FamilyAddress, GraduateSchool, FatherName, Phone, RecruitName, ClassName, Fee, Memo}
rowtbStudentRow.ItemArray = columnValuesArray
Me.Rows.Add(rowtbStudentRow)
Return rowtbStudentRow
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindByStudentNo(ByVal StudentNo As String) As tbStudentRow
Return CType(Me.Rows.Find(New Object() {StudentNo}),tbStudentRow)
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overridable Function GetEnumerator() As Global.System.Collections.IEnumerator Implements Global.System.Collections.IEnumerable.GetEnumerator
Return Me.Rows.GetEnumerator
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overrides Function Clone() As Global.System.Data.DataTable
Dim cln As tbStudentDataTable = CType(MyBase.Clone,tbStudentDataTable)
cln.InitVars
Return cln
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -