📄 booksdataset.designer.vb
字号:
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
Public Delegate Sub booksRowChangeEventHandler(ByVal sender As Object, ByVal e As booksRowChangeEvent)
Public Delegate Sub booksheftRowChangeEventHandler(ByVal sender As Object, ByVal e As booksheftRowChangeEvent)
'''<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 booksDataTable
Inherits Global.System.Data.DataTable
Implements Global.System.Collections.IEnumerable
Private column编号 As Global.System.Data.DataColumn
Private columnBookName As Global.System.Data.DataColumn
Private columnAuthor As Global.System.Data.DataColumn
Private columnPress As Global.System.Data.DataColumn
Private columnISBN As Global.System.Data.DataColumn
Private columnPrice As Global.System.Data.DataColumn
Private columnSheftName As Global.System.Data.DataColumn
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New()
MyBase.New
Me.TableName = "books"
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 编号Column() As Global.System.Data.DataColumn
Get
Return Me.column编号
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property BookNameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnBookName
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property AuthorColumn() As Global.System.Data.DataColumn
Get
Return Me.columnAuthor
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property PressColumn() As Global.System.Data.DataColumn
Get
Return Me.columnPress
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property ISBNColumn() As Global.System.Data.DataColumn
Get
Return Me.columnISBN
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property PriceColumn() As Global.System.Data.DataColumn
Get
Return Me.columnPrice
End Get
End Property
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property SheftNameColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSheftName
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 booksRow
Get
Return CType(Me.Rows(index),booksRow)
End Get
End Property
Public Event booksRowChanging As booksRowChangeEventHandler
Public Event booksRowChanged As booksRowChangeEventHandler
Public Event booksRowDeleting As booksRowChangeEventHandler
Public Event booksRowDeleted As booksRowChangeEventHandler
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddbooksRow(ByVal row As booksRow)
Me.Rows.Add(row)
End Sub
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddbooksRow(ByVal BookName As String, ByVal Author As String, ByVal Press As String, ByVal ISBN As String, ByVal Price As String, ByVal SheftName As String) As booksRow
Dim rowbooksRow As booksRow = CType(Me.NewRow,booksRow)
Dim columnValuesArray() As Object = New Object() {Nothing, BookName, Author, Press, ISBN, Price, SheftName}
rowbooksRow.ItemArray = columnValuesArray
Me.Rows.Add(rowbooksRow)
Return rowbooksRow
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindBy编号(ByVal 编号 As Integer) As booksRow
Return CType(Me.Rows.Find(New Object() {编号}),booksRow)
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 booksDataTable = CType(MyBase.Clone,booksDataTable)
cln.InitVars
Return cln
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
Return New booksDataTable
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.column编号 = MyBase.Columns("编号")
Me.columnBookName = MyBase.Columns("BookName")
Me.columnAuthor = MyBase.Columns("Author")
Me.columnPress = MyBase.Columns("Press")
Me.columnISBN = MyBase.Columns("ISBN")
Me.columnPrice = MyBase.Columns("Price")
Me.columnSheftName = MyBase.Columns("SheftName")
End Sub
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.column编号 = New Global.System.Data.DataColumn("编号", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.column编号)
Me.columnBookName = New Global.System.Data.DataColumn("BookName", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnBookName)
Me.columnAuthor = New Global.System.Data.DataColumn("Author", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnAuthor)
Me.columnPress = New Global.System.Data.DataColumn("Press", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnPress)
Me.columnISBN = New Global.System.Data.DataColumn("ISBN", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnISBN)
Me.columnPrice = New Global.System.Data.DataColumn("Price", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnPrice)
Me.columnSheftName = New Global.System.Data.DataColumn("SheftName", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnSheftName)
Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.column编号}, true))
Me.column编号.AutoIncrement = true
Me.column编号.AllowDBNull = false
Me.column编号.Unique = true
Me.columnBookName.MaxLength = 50
Me.columnAuthor.MaxLength = 50
Me.columnPress.MaxLength = 50
Me.columnISBN.MaxLength = 50
Me.columnPrice.MaxLength = 50
Me.columnSheftName.MaxLength = 50
End Sub
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewbooksRow() As booksRow
Return CType(Me.NewRow,booksRow)
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
Return New booksRow(builder)
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As Global.System.Type
Return GetType(booksRow)
End Function
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.booksRowChangedEvent) Is Nothing) Then
RaiseEvent booksRowChanged(Me, New booksRowChangeEvent(CType(e.Row,booksRow), e.Action))
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -