📄 librarydataset1.designer.vb
字号:
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Publisher() As String
Get
Try
Return CType(Me(Me.tableBookDetails.PublisherColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Publisher' in table 'BookDetails' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableBookDetails.PublisherColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property Price() As String
Get
Try
Return CType(Me(Me.tableBookDetails.PriceColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("The value for column 'Price' in table 'BookDetails' is DBNull.", e)
End Try
End Get
Set
Me(Me.tableBookDetails.PriceColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property BookNo() As String
Get
Return CType(Me(Me.tableBookDetails.BookNoColumn),String)
End Get
Set
Me(Me.tableBookDetails.BookNoColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsISBNNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.ISBNColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetISBNNull()
Me(Me.tableBookDetails.ISBNColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsBookNameNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.BookNameColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetBookNameNull()
Me(Me.tableBookDetails.BookNameColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsTypeCodeNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.TypeCodeColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetTypeCodeNull()
Me(Me.tableBookDetails.TypeCodeColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsAuthorNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.AuthorColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetAuthorNull()
Me(Me.tableBookDetails.AuthorColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsPublishDateNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.PublishDateColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetPublishDateNull()
Me(Me.tableBookDetails.PublishDateColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsEditionNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.EditionColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetEditionNull()
Me(Me.tableBookDetails.EditionColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsLibDateNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.LibDateColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetLibDateNull()
Me(Me.tableBookDetails.LibDateColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsPublisherNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.PublisherColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetPublisherNull()
Me(Me.tableBookDetails.PublisherColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsPriceNull() As Boolean
Return Me.IsNull(Me.tableBookDetails.PriceColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetPriceNull()
Me(Me.tableBookDetails.PriceColumn) = System.Convert.DBNull
End Sub
End Class
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")> _
Public Class BookDetailsRowChangeEvent
Inherits System.EventArgs
Private eventRow As BookDetailsRow
Private eventAction As System.Data.DataRowAction
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New(ByVal row As BookDetailsRow, ByVal action As System.Data.DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property Row() As BookDetailsRow
Get
Return Me.eventRow
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property Action() As System.Data.DataRowAction
Get
Return Me.eventAction
End Get
End Property
End Class
End Class
Namespace libraryDataSetTableAdapters
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0"), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.ComponentModel.ToolboxItem(true), _
System.ComponentModel.DataObjectAttribute(true), _
System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
Partial Public Class BookDetailsTableAdapter
Inherits System.ComponentModel.Component
Private WithEvents _adapter As System.Data.OleDb.OleDbDataAdapter
Private _connection As System.Data.OleDb.OleDbConnection
Private _commandCollection() As System.Data.OleDb.OleDbCommand
Private _clearBeforeFill As Boolean
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New()
MyBase.New
Me.ClearBeforeFill = true
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private ReadOnly Property Adapter() As System.Data.OleDb.OleDbDataAdapter
Get
If (Me._adapter Is Nothing) Then
Me.InitAdapter
End If
Return Me._adapter
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Property Connection() As System.Data.OleDb.OleDbConnection
Get
If (Me._connection Is Nothing) Then
Me.InitConnection
End If
Return Me._connection
End Get
Set
Me._connection = value
If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
Me.Adapter.InsertCommand.Connection = value
End If
If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
Me.Adapter.DeleteCommand.Connection = value
End If
If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
Me.Adapter.UpdateCommand.Connection = value
End If
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
If (Not (Me.CommandCollection(i)) Is Nothing) Then
CType(Me.CommandCollection(i),System.Data.OleDb.OleDbCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected ReadOnly Property CommandCollection() As System.Data.OleDb.OleDbCommand()
Get
If (Me._commandCollection Is Nothing) Then
Me.InitCommandCollection
End If
Return Me._commandCollection
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property ClearBeforeFill() As Boolean
Get
Return Me._clearBeforeFill
End Get
Set
Me._clearBeforeFill = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitAdapter()
Me._adapter = New System.Data.OleDb.OleDbDataAdapter
Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
tableMapping.SourceTable = "Table"
tableMapping.DataSetTable = "BookDetails"
tableMapping.ColumnMappings.Add("ISBN", "ISBN")
tableMapping.ColumnMappings.Add("BookName", "BookName")
tableMapping.ColumnMappings.Add("TypeCode", "TypeCode")
tableMapping.ColumnMappings.Add("Author", "Author")
tableMapping.ColumnMappings.Add("PublishDate", "PublishDate")
tableMapping.ColumnMappings.Add("Edition", "Edition")
tableMapping.ColumnMappings.Add("LibDate", "LibDate")
tableMapping.ColumnMappings.Add("Publisher", "Publisher")
tableMapping.ColumnMappings.Add("Price", "Price")
tableMapping.ColumnMappings.Add("BookNo", "BookNo")
Me._adapter.TableMappings.Add(tableMapping)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitConnection()
Me._connection = New System.Data.OleDb.OleDbConnection
Me._connection.ConnectionString = Global.LibraryManagementSystem.My.MySettings.Default.libraryConnectionString
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitCommandCollection()
Me._commandCollection = New System.Data.OleDb.OleDbCommand(1) {}
Me._commandCollection(0) = New System.Data.OleDb.OleDbCommand
Me._commandCollection(0).Connection = Me.Connection
Me._commandCollection(0).CommandText = "SELECT ISBN, BookName, Author, PublishDate, Edition, LibDate, Publisher, Price, "& _
"FROM BookDetails WHERE (Status = 'lost')"
Me._commandCollection(0).CommandType = System.Data.CommandType.Text
Me._commandCollection(1) = New System.Data.OleDb.OleDbCommand
Me._commandCollection(1).Connection = Me.Connection
Me._commandCollection(1).CommandText = "SELECT Author, BookName, BookNo, Edition, ISBN, LibDate, Price, PublishDate, Publ"& _
"isher, TypeCode FROM BookDetails WHERE (Status = 'lost')"
Me._commandCollection(1).CommandType = System.Data.CommandType.Text
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute(), _
System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)> _
Public Overloads Overridable Function Fill(ByVal dataTable As libraryDataSet.BookDetailsDataTable) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute(), _
System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.[Select], true)> _
Public Overloads Overridable Function GetData() As libraryDataSet.BookDetailsDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
Dim dataTable As libraryDataSet.BookDetailsDataTable = New libraryDataSet.BookDetailsDataTable
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute(), _
System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, false)> _
Public Overloads Overridable Function FillBy(ByVal dataTable As libraryDataSet.BookDetailsDataTable) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(1)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
End Class
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -