studentdbdataset1.designer.vb
来自「零基础学习sql server 2005 流回 等编著 书中代码」· VB 代码 · 共 1,387 行 · 第 1/5 页
VB
1,387 行
Me.columnExpId.AllowDBNull = false
Me.columnExpId.ReadOnly = true
Me.columnExpId.Unique = true
Me.columnStudent_Id.AllowDBNull = false
Me.columnStart_Date.MaxLength = 10
Me.columnEnd_Date.MaxLength = 10
Me.columnSchool.MaxLength = 50
Me.columnTitle.MaxLength = 20
Me.columnMemo.MaxLength = 200
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewExperienceRow() As ExperienceRow
Return CType(Me.NewRow,ExperienceRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New ExperienceRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(ExperienceRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.ExperienceRowChangedEvent) Is Nothing) Then
RaiseEvent ExperienceRowChanged(Me, New ExperienceRowChangeEvent(CType(e.Row,ExperienceRow), 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.ExperienceRowChangingEvent) Is Nothing) Then
RaiseEvent ExperienceRowChanging(Me, New ExperienceRowChangeEvent(CType(e.Row,ExperienceRow), 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.ExperienceRowDeletedEvent) Is Nothing) Then
RaiseEvent ExperienceRowDeleted(Me, New ExperienceRowChangeEvent(CType(e.Row,ExperienceRow), 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.ExperienceRowDeletingEvent) Is Nothing) Then
RaiseEvent ExperienceRowDeleting(Me, New ExperienceRowChangeEvent(CType(e.Row,ExperienceRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveExperienceRow(ByVal row As ExperienceRow)
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 StudentDBDataSet = New StudentDBDataSet
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 = "ExperienceDataTable"
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 LessonsDataTable
Inherits System.Data.DataTable
Implements System.Collections.IEnumerable
Private columnLessonId As System.Data.DataColumn
Private columnLessonName As System.Data.DataColumn
Private columnTerm As System.Data.DataColumn
Private columnTeacher As System.Data.DataColumn
Private columnHours As System.Data.DataColumn
Private columnLessonType As System.Data.DataColumn
Private columnMemo As System.Data.DataColumn
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New()
MyBase.New
Me.TableName = "Lessons"
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 LessonIdColumn() As System.Data.DataColumn
Get
Return Me.columnLessonId
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property LessonNameColumn() As System.Data.DataColumn
Get
Return Me.columnLessonName
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property TermColumn() As System.Data.DataColumn
Get
Return Me.columnTerm
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property TeacherColumn() As System.Data.DataColumn
Get
Return Me.columnTeacher
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property HoursColumn() As System.Data.DataColumn
Get
Return Me.columnHours
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property LessonTypeColumn() As System.Data.DataColumn
Get
Return Me.columnLessonType
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property MemoColumn() As System.Data.DataColumn
Get
Return Me.columnMemo
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 LessonsRow
Get
Return CType(Me.Rows(index),LessonsRow)
End Get
End Property
Public Event LessonsRowChanging As LessonsRowChangeEventHandler
Public Event LessonsRowChanged As LessonsRowChangeEventHandler
Public Event LessonsRowDeleting As LessonsRowChangeEventHandler
Public Event LessonsRowDeleted As LessonsRowChangeEventHandler
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddLessonsRow(ByVal row As LessonsRow)
Me.Rows.Add(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddLessonsRow(ByVal LessonName As String, ByVal Term As String, ByVal Teacher As String, ByVal Hours As Byte, ByVal LessonType As String, ByVal Memo As String) As LessonsRow
Dim rowLessonsRow As LessonsRow = CType(Me.NewRow,LessonsRow)
rowLessonsRow.ItemArray = New Object() {Nothing, LessonName, Term, Teacher, Hours, LessonType, Memo}
Me.Rows.Add(rowLessonsRow)
Return rowLessonsRow
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindByLessonId(ByVal LessonId As Integer) As LessonsRow
Return CType(Me.Rows.Find(New Object() {LessonId}),LessonsRow)
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 LessonsDataTable = CType(MyBase.Clone,LessonsDataTable)
cln.InitVars
Return cln
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As System.Data.DataTable
Return New LessonsDataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.columnLessonId = MyBase.Columns("LessonId")
Me.columnLessonName = MyBase.Columns("LessonName")
Me.columnTerm = MyBase.Columns("Term")
Me.columnTeacher = MyBase.Columns("Teacher")
Me.columnHours = MyBase.Columns("Hours")
Me.columnLessonType = MyBase.Columns("LessonType")
Me.columnMemo = MyBase.Columns("Memo")
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.columnLessonId = New System.Data.DataColumn("LessonId", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnLessonId)
Me.columnLessonName = New System.Data.DataColumn("LessonName", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnLessonName)
Me.columnTerm = New System.Data.DataColumn("Term", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnTerm)
Me.columnTeacher = New System.Data.DataColumn("Teacher", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnTeacher)
Me.columnHours = New System.Data.DataColumn("Hours", GetType(Byte), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnHours)
Me.columnLessonType = New System.Data.DataColumn("LessonType", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnLessonType)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?