📄 dataset2.designer.vb
字号:
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property mobile() As String
Get
Try
Return CType(Me(Me.tableemployee.mobileColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““employee””中列““mobile””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableemployee.mobileColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property address() As String
Get
Try
Return CType(Me(Me.tableemployee.addressColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““employee””中列““address””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableemployee.addressColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property hire_date() As String
Get
Try
Return CType(Me(Me.tableemployee.hire_dateColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““employee””中列““hire_date””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableemployee.hire_dateColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property status() As String
Get
Try
Return CType(Me(Me.tableemployee.statusColumn),String)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““employee””中列““status””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableemployee.statusColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Property work_age() As Short
Get
Try
Return CType(Me(Me.tableemployee.work_ageColumn),Short)
Catch e As System.InvalidCastException
Throw New System.Data.StrongTypingException("表““employee””中列““work_age””的值为 DBNull。", e)
End Try
End Get
Set
Me(Me.tableemployee.work_ageColumn) = value
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsnameNull() As Boolean
Return Me.IsNull(Me.tableemployee.nameColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetnameNull()
Me(Me.tableemployee.nameColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IssexNull() As Boolean
Return Me.IsNull(Me.tableemployee.sexColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetsexNull()
Me(Me.tableemployee.sexColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsbirthdayNull() As Boolean
Return Me.IsNull(Me.tableemployee.birthdayColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetbirthdayNull()
Me(Me.tableemployee.birthdayColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsmarryNull() As Boolean
Return Me.IsNull(Me.tableemployee.marryColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetmarryNull()
Me(Me.tableemployee.marryColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsmobileNull() As Boolean
Return Me.IsNull(Me.tableemployee.mobileColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetmobileNull()
Me(Me.tableemployee.mobileColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsaddressNull() As Boolean
Return Me.IsNull(Me.tableemployee.addressColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetaddressNull()
Me(Me.tableemployee.addressColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function Ishire_dateNull() As Boolean
Return Me.IsNull(Me.tableemployee.hire_dateColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub Sethire_dateNull()
Me(Me.tableemployee.hire_dateColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function IsstatusNull() As Boolean
Return Me.IsNull(Me.tableemployee.statusColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub SetstatusNull()
Me(Me.tableemployee.statusColumn) = System.Convert.DBNull
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function Iswork_ageNull() As Boolean
Return Me.IsNull(Me.tableemployee.work_ageColumn)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub Setwork_ageNull()
Me(Me.tableemployee.work_ageColumn) = System.Convert.DBNull
End Sub
End Class
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")> _
Public Class employeeRowChangeEvent
Inherits System.EventArgs
Private eventRow As employeeRow
Private eventAction As System.Data.DataRowAction
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New(ByVal row As employeeRow, ByVal action As System.Data.DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property Row() As employeeRow
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 DataSet2TableAdapters
<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 employeeTableAdapter
Inherits System.ComponentModel.Component
Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter
Private _connection As System.Data.SqlClient.SqlConnection
Private _commandCollection() As System.Data.SqlClient.SqlCommand
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.SqlClient.SqlDataAdapter
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.SqlClient.SqlConnection
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.SqlClient.SqlCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected ReadOnly Property CommandCollection() As System.Data.SqlClient.SqlCommand()
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.SqlClient.SqlDataAdapter
Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping
tableMapping.SourceTable = "Table"
tableMapping.DataSetTable = "employee"
tableMapping.ColumnMappings.Add("name", "name")
tableMapping.ColumnMappings.Add("sex", "sex")
tableMapping.ColumnMappings.Add("birthday", "birthday")
tableMapping.ColumnMappings.Add("marry", "marry")
tableMapping.ColumnMappings.Add("mobile", "mobile")
tableMapping.ColumnMappings.Add("address", "address")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -