📄 dataset1.vb
字号:
Return CType(Me(Me.tableEmployees.AddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.AddressColumn) = value
End Set
End Property
Public Property City As String
Get
Try
Return CType(Me(Me.tableEmployees.CityColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.CityColumn) = value
End Set
End Property
Public Property _Region As String
Get
Try
Return CType(Me(Me.tableEmployees._RegionColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees._RegionColumn) = value
End Set
End Property
Public Property PostalCode As String
Get
Try
Return CType(Me(Me.tableEmployees.PostalCodeColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.PostalCodeColumn) = value
End Set
End Property
Public Property Country As String
Get
Try
Return CType(Me(Me.tableEmployees.CountryColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.CountryColumn) = value
End Set
End Property
Public Property HomePhone As String
Get
Try
Return CType(Me(Me.tableEmployees.HomePhoneColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.HomePhoneColumn) = value
End Set
End Property
Public Property Extension As String
Get
Try
Return CType(Me(Me.tableEmployees.ExtensionColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.ExtensionColumn) = value
End Set
End Property
Public Property Photo As Byte()
Get
Try
Return CType(Me(Me.tableEmployees.PhotoColumn),Byte())
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.PhotoColumn) = value
End Set
End Property
Public Property Notes As String
Get
Try
Return CType(Me(Me.tableEmployees.NotesColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.NotesColumn) = value
End Set
End Property
Public Property ReportsTo As Integer
Get
Try
Return CType(Me(Me.tableEmployees.ReportsToColumn),Integer)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.ReportsToColumn) = value
End Set
End Property
Public Property PhotoPath As String
Get
Try
Return CType(Me(Me.tableEmployees.PhotoPathColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("无法获取值,因为它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableEmployees.PhotoPathColumn) = value
End Set
End Property
Public Function IsTitleNull() As Boolean
Return Me.IsNull(Me.tableEmployees.TitleColumn)
End Function
Public Sub SetTitleNull()
Me(Me.tableEmployees.TitleColumn) = System.Convert.DBNull
End Sub
Public Function IsTitleOfCourtesyNull() As Boolean
Return Me.IsNull(Me.tableEmployees.TitleOfCourtesyColumn)
End Function
Public Sub SetTitleOfCourtesyNull()
Me(Me.tableEmployees.TitleOfCourtesyColumn) = System.Convert.DBNull
End Sub
Public Function IsBirthDateNull() As Boolean
Return Me.IsNull(Me.tableEmployees.BirthDateColumn)
End Function
Public Sub SetBirthDateNull()
Me(Me.tableEmployees.BirthDateColumn) = System.Convert.DBNull
End Sub
Public Function IsHireDateNull() As Boolean
Return Me.IsNull(Me.tableEmployees.HireDateColumn)
End Function
Public Sub SetHireDateNull()
Me(Me.tableEmployees.HireDateColumn) = System.Convert.DBNull
End Sub
Public Function IsAddressNull() As Boolean
Return Me.IsNull(Me.tableEmployees.AddressColumn)
End Function
Public Sub SetAddressNull()
Me(Me.tableEmployees.AddressColumn) = System.Convert.DBNull
End Sub
Public Function IsCityNull() As Boolean
Return Me.IsNull(Me.tableEmployees.CityColumn)
End Function
Public Sub SetCityNull()
Me(Me.tableEmployees.CityColumn) = System.Convert.DBNull
End Sub
Public Function Is_RegionNull() As Boolean
Return Me.IsNull(Me.tableEmployees._RegionColumn)
End Function
Public Sub Set_RegionNull()
Me(Me.tableEmployees._RegionColumn) = System.Convert.DBNull
End Sub
Public Function IsPostalCodeNull() As Boolean
Return Me.IsNull(Me.tableEmployees.PostalCodeColumn)
End Function
Public Sub SetPostalCodeNull()
Me(Me.tableEmployees.PostalCodeColumn) = System.Convert.DBNull
End Sub
Public Function IsCountryNull() As Boolean
Return Me.IsNull(Me.tableEmployees.CountryColumn)
End Function
Public Sub SetCountryNull()
Me(Me.tableEmployees.CountryColumn) = System.Convert.DBNull
End Sub
Public Function IsHomePhoneNull() As Boolean
Return Me.IsNull(Me.tableEmployees.HomePhoneColumn)
End Function
Public Sub SetHomePhoneNull()
Me(Me.tableEmployees.HomePhoneColumn) = System.Convert.DBNull
End Sub
Public Function IsExtensionNull() As Boolean
Return Me.IsNull(Me.tableEmployees.ExtensionColumn)
End Function
Public Sub SetExtensionNull()
Me(Me.tableEmployees.ExtensionColumn) = System.Convert.DBNull
End Sub
Public Function IsPhotoNull() As Boolean
Return Me.IsNull(Me.tableEmployees.PhotoColumn)
End Function
Public Sub SetPhotoNull()
Me(Me.tableEmployees.PhotoColumn) = System.Convert.DBNull
End Sub
Public Function IsNotesNull() As Boolean
Return Me.IsNull(Me.tableEmployees.NotesColumn)
End Function
Public Sub SetNotesNull()
Me(Me.tableEmployees.NotesColumn) = System.Convert.DBNull
End Sub
Public Function IsReportsToNull() As Boolean
Return Me.IsNull(Me.tableEmployees.ReportsToColumn)
End Function
Public Sub SetReportsToNull()
Me(Me.tableEmployees.ReportsToColumn) = System.Convert.DBNull
End Sub
Public Function IsPhotoPathNull() As Boolean
Return Me.IsNull(Me.tableEmployees.PhotoPathColumn)
End Function
Public Sub SetPhotoPathNull()
Me(Me.tableEmployees.PhotoPathColumn) = System.Convert.DBNull
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class EmployeesRowChangeEvent
Inherits EventArgs
Private eventRow As EmployeesRow
Private eventAction As DataRowAction
Public Sub New(ByVal row As EmployeesRow, ByVal action As DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
Public ReadOnly Property Row As EmployeesRow
Get
Return Me.eventRow
End Get
End Property
Public ReadOnly Property Action As DataRowAction
Get
Return Me.eventAction
End Get
End Property
End Class
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -