📄 adventureworksdataset.designer.vb
字号:
Return Me.columnPasswordSalt
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property AdditionalContactInfoColumn() As System.Data.DataColumn
Get
Return Me.columnAdditionalContactInfo
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property rowguidColumn() As System.Data.DataColumn
Get
Return Me.columnrowguid
End Get
End Property
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public ReadOnly Property ModifiedDateColumn() As System.Data.DataColumn
Get
Return Me.columnModifiedDate
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 ContactRow
Get
Return CType(Me.Rows(index),ContactRow)
End Get
End Property
Public Event ContactRowChanging As ContactRowChangeEventHandler
Public Event ContactRowChanged As ContactRowChangeEventHandler
Public Event ContactRowDeleting As ContactRowChangeEventHandler
Public Event ContactRowDeleted As ContactRowChangeEventHandler
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Sub AddContactRow(ByVal row As ContactRow)
Me.Rows.Add(row)
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Overloads Function AddContactRow(ByVal NameStyle As Boolean, ByVal Title As String, ByVal FirstName As String, ByVal MiddleName As String, ByVal LastName As String, ByVal Suffix As String, ByVal EmailAddress As String, ByVal EmailPromotion As Integer, ByVal Phone As String, ByVal PasswordHash As String, ByVal PasswordSalt As String, ByVal AdditionalContactInfo As String, ByVal rowguid As System.Guid, ByVal ModifiedDate As Date) As ContactRow
Dim rowContactRow As ContactRow = CType(Me.NewRow,ContactRow)
rowContactRow.ItemArray = New Object() {Nothing, NameStyle, Title, FirstName, MiddleName, LastName, Suffix, EmailAddress, EmailPromotion, Phone, PasswordHash, PasswordSalt, AdditionalContactInfo, rowguid, ModifiedDate}
Me.Rows.Add(rowContactRow)
Return rowContactRow
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function FindByContactID(ByVal ContactID As Integer) As ContactRow
Return CType(Me.Rows.Find(New Object() {ContactID}),ContactRow)
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 ContactDataTable = CType(MyBase.Clone,ContactDataTable)
cln.InitVars
Return cln
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function CreateInstance() As System.Data.DataTable
Return New ContactDataTable
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Sub InitVars()
Me.columnContactID = MyBase.Columns("ContactID")
Me.columnNameStyle = MyBase.Columns("NameStyle")
Me.columnTitle = MyBase.Columns("Title")
Me.columnFirstName = MyBase.Columns("FirstName")
Me.columnMiddleName = MyBase.Columns("MiddleName")
Me.columnLastName = MyBase.Columns("LastName")
Me.columnSuffix = MyBase.Columns("Suffix")
Me.columnEmailAddress = MyBase.Columns("EmailAddress")
Me.columnEmailPromotion = MyBase.Columns("EmailPromotion")
Me.columnPhone = MyBase.Columns("Phone")
Me.columnPasswordHash = MyBase.Columns("PasswordHash")
Me.columnPasswordSalt = MyBase.Columns("PasswordSalt")
Me.columnAdditionalContactInfo = MyBase.Columns("AdditionalContactInfo")
Me.columnrowguid = MyBase.Columns("rowguid")
Me.columnModifiedDate = MyBase.Columns("ModifiedDate")
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Private Sub InitClass()
Me.columnContactID = New System.Data.DataColumn("ContactID", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnContactID)
Me.columnNameStyle = New System.Data.DataColumn("NameStyle", GetType(Boolean), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnNameStyle)
Me.columnTitle = New System.Data.DataColumn("Title", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnTitle)
Me.columnFirstName = New System.Data.DataColumn("FirstName", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnFirstName)
Me.columnMiddleName = New System.Data.DataColumn("MiddleName", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnMiddleName)
Me.columnLastName = New System.Data.DataColumn("LastName", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnLastName)
Me.columnSuffix = New System.Data.DataColumn("Suffix", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnSuffix)
Me.columnEmailAddress = New System.Data.DataColumn("EmailAddress", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnEmailAddress)
Me.columnEmailPromotion = New System.Data.DataColumn("EmailPromotion", GetType(Integer), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnEmailPromotion)
Me.columnPhone = New System.Data.DataColumn("Phone", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnPhone)
Me.columnPasswordHash = New System.Data.DataColumn("PasswordHash", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnPasswordHash)
Me.columnPasswordSalt = New System.Data.DataColumn("PasswordSalt", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnPasswordSalt)
Me.columnAdditionalContactInfo = New System.Data.DataColumn("AdditionalContactInfo", GetType(String), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnAdditionalContactInfo)
Me.columnrowguid = New System.Data.DataColumn("rowguid", GetType(System.Guid), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnrowguid)
Me.columnModifiedDate = New System.Data.DataColumn("ModifiedDate", GetType(Date), Nothing, System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnModifiedDate)
Me.Constraints.Add(New System.Data.UniqueConstraint("Constraint1", New System.Data.DataColumn() {Me.columnContactID}, true))
Me.columnContactID.AutoIncrement = true
Me.columnContactID.AllowDBNull = false
Me.columnContactID.ReadOnly = true
Me.columnContactID.Unique = true
Me.columnNameStyle.AllowDBNull = false
Me.columnTitle.MaxLength = 8
Me.columnFirstName.AllowDBNull = false
Me.columnFirstName.MaxLength = 50
Me.columnMiddleName.MaxLength = 50
Me.columnLastName.AllowDBNull = false
Me.columnLastName.MaxLength = 50
Me.columnSuffix.MaxLength = 10
Me.columnEmailAddress.MaxLength = 50
Me.columnEmailPromotion.AllowDBNull = false
Me.columnPhone.MaxLength = 25
Me.columnPasswordHash.AllowDBNull = false
Me.columnPasswordHash.MaxLength = 40
Me.columnPasswordSalt.AllowDBNull = false
Me.columnPasswordSalt.MaxLength = 10
Me.columnAdditionalContactInfo.MaxLength = 2147483647
Me.columnrowguid.AllowDBNull = false
Me.columnModifiedDate.AllowDBNull = false
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Function NewContactRow() As ContactRow
Return CType(Me.NewRow,ContactRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function NewRowFromBuilder(ByVal builder As System.Data.DataRowBuilder) As System.Data.DataRow
Return New ContactRow(builder)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Function GetRowType() As System.Type
Return GetType(ContactRow)
End Function
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Protected Overrides Sub OnRowChanged(ByVal e As System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.ContactRowChangedEvent) Is Nothing) Then
RaiseEvent ContactRowChanged(Me, New ContactRowChangeEvent(CType(e.Row,ContactRow), 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.ContactRowChangingEvent) Is Nothing) Then
RaiseEvent ContactRowChanging(Me, New ContactRowChangeEvent(CType(e.Row,ContactRow), 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.ContactRowDeletedEvent) Is Nothing) Then
RaiseEvent ContactRowDeleted(Me, New ContactRowChangeEvent(CType(e.Row,ContactRow), 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.ContactRowDeletingEvent) Is Nothing) Then
RaiseEvent ContactRowDeleting(Me, New ContactRowChangeEvent(CType(e.Row,ContactRow), e.Action))
End If
End Sub
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub RemoveContactRow(ByVal row As ContactRow)
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 AdventureWorksDataSet = New AdventureWorksDataSet
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 = "ContactDataTable"
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 CustomerDataTable
Inherits System.Data.DataTable
Implements System.Collections.IEnumerable
Private columnCustomerID As System.Data.DataColumn
Private columnTerritoryID As System.Data.DataColumn
Private columnAccountNumber As System.Data.DataColumn
Private columnCustomerType As System.Data.DataColumn
Private columnrowguid As System.Data.DataColumn
Private columnModifiedDate As System.Data.DataColumn
<System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Public Sub New()
MyBase.New
Me.TableName = "Customer"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -