'------------------------------------------------------------------------------
' <auto-generated>
'     此代码由工具生成。
'     运行时版本:2.0.50727.3649
'
'     对此文件的更改可能会导致不正确的行为，并且如果
'     重新生成代码，这些更改将会丢失。
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.Linq
Imports System.Data.Linq.Mapping
Imports System.Linq
Imports System.Linq.Expressions
Imports System.Reflection


<System.Data.Linq.Mapping.DatabaseAttribute(Name:="WebSiteII")>  _
Partial Public Class DB_ExchangeDataContext
	Inherits System.Data.Linq.DataContext
	
	Private Shared mappingSource As System.Data.Linq.Mapping.MappingSource = New AttributeMappingSource
	
  #Region "Extensibility Method Definitions"
  Partial Private Sub OnCreated()
  End Sub
  Partial Private Sub InsertGoodsFavorite(instance As GoodsFavorite)
    End Sub
  Partial Private Sub UpdateGoodsFavorite(instance As GoodsFavorite)
    End Sub
  Partial Private Sub DeleteGoodsFavorite(instance As GoodsFavorite)
    End Sub
  Partial Private Sub InsertGoodsUser(instance As GoodsUser)
    End Sub
  Partial Private Sub UpdateGoodsUser(instance As GoodsUser)
    End Sub
  Partial Private Sub DeleteGoodsUser(instance As GoodsUser)
    End Sub
  Partial Private Sub InsertGoodsArea(instance As GoodsArea)
    End Sub
  Partial Private Sub UpdateGoodsArea(instance As GoodsArea)
    End Sub
  Partial Private Sub DeleteGoodsArea(instance As GoodsArea)
    End Sub
  Partial Private Sub InsertGoodsClass(instance As GoodsClass)
    End Sub
  Partial Private Sub UpdateGoodsClass(instance As GoodsClass)
    End Sub
  Partial Private Sub DeleteGoodsClass(instance As GoodsClass)
    End Sub
  Partial Private Sub InsertGoodsProposal_Goods(instance As GoodsProposal_Goods)
    End Sub
  Partial Private Sub UpdateGoodsProposal_Goods(instance As GoodsProposal_Goods)
    End Sub
  Partial Private Sub DeleteGoodsProposal_Goods(instance As GoodsProposal_Goods)
    End Sub
  Partial Private Sub InsertGoodsProposal(instance As GoodsProposal)
    End Sub
  Partial Private Sub UpdateGoodsProposal(instance As GoodsProposal)
    End Sub
  Partial Private Sub DeleteGoodsProposal(instance As GoodsProposal)
    End Sub
  Partial Private Sub InsertGoodsAssess(instance As GoodsAssess)
    End Sub
  Partial Private Sub UpdateGoodsAssess(instance As GoodsAssess)
    End Sub
  Partial Private Sub DeleteGoodsAssess(instance As GoodsAssess)
    End Sub
  Partial Private Sub InsertGoodsRegister(instance As GoodsRegister)
    End Sub
  Partial Private Sub UpdateGoodsRegister(instance As GoodsRegister)
    End Sub
  Partial Private Sub DeleteGoodsRegister(instance As GoodsRegister)
    End Sub
  Partial Private Sub InsertGoodsTransRecords(instance As GoodsTransRecords)
    End Sub
  Partial Private Sub UpdateGoodsTransRecords(instance As GoodsTransRecords)
    End Sub
  Partial Private Sub DeleteGoodsTransRecords(instance As GoodsTransRecords)
    End Sub
  #End Region
	
	Public Sub New()
        MyBase.New(System.Web.Configuration.WebConfigurationManager.ConnectionStrings("XrenCRMConnString").ToString, mappingSource)
		OnCreated
	End Sub
	
	Public Sub New(ByVal connection As String)
		MyBase.New(connection, mappingSource)
		OnCreated
	End Sub
	
	Public Sub New(ByVal connection As System.Data.IDbConnection)
		MyBase.New(connection, mappingSource)
		OnCreated
	End Sub
	
	Public Sub New(ByVal connection As String, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
		MyBase.New(connection, mappingSource)
		OnCreated
	End Sub
	
	Public Sub New(ByVal connection As System.Data.IDbConnection, ByVal mappingSource As System.Data.Linq.Mapping.MappingSource)
		MyBase.New(connection, mappingSource)
		OnCreated
	End Sub
	
	Public ReadOnly Property GoodsFavorite() As System.Data.Linq.Table(Of GoodsFavorite)
		Get
			Return Me.GetTable(Of GoodsFavorite)
		End Get
	End Property
	
	Public ReadOnly Property GoodsUser() As System.Data.Linq.Table(Of GoodsUser)
		Get
			Return Me.GetTable(Of GoodsUser)
		End Get
	End Property
	
	Public ReadOnly Property GoodsArea() As System.Data.Linq.Table(Of GoodsArea)
		Get
			Return Me.GetTable(Of GoodsArea)
		End Get
	End Property
	
	Public ReadOnly Property GoodsClass() As System.Data.Linq.Table(Of GoodsClass)
		Get
			Return Me.GetTable(Of GoodsClass)
		End Get
	End Property
	
	Public ReadOnly Property GoodsProposal_Goods() As System.Data.Linq.Table(Of GoodsProposal_Goods)
		Get
			Return Me.GetTable(Of GoodsProposal_Goods)
		End Get
	End Property
	
	Public ReadOnly Property GoodsProposal() As System.Data.Linq.Table(Of GoodsProposal)
		Get
			Return Me.GetTable(Of GoodsProposal)
		End Get
	End Property
	
	Public ReadOnly Property GoodsAssess() As System.Data.Linq.Table(Of GoodsAssess)
		Get
			Return Me.GetTable(Of GoodsAssess)
		End Get
	End Property
	
	Public ReadOnly Property GoodsRegister() As System.Data.Linq.Table(Of GoodsRegister)
		Get
			Return Me.GetTable(Of GoodsRegister)
		End Get
	End Property
	
	Public ReadOnly Property GoodsTransRecords() As System.Data.Linq.Table(Of GoodsTransRecords)
		Get
			Return Me.GetTable(Of GoodsTransRecords)
		End Get
	End Property
End Class

<Table(Name:="dbo.GoodsFavorite")>  _
Partial Public Class GoodsFavorite
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _GoodsID As Integer
	
	Private _UserID As Integer
	
	Private _AddTime As Date
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnGoodsIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsIDChanged()
    End Sub
    Partial Private Sub OnUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnUserIDChanged()
    End Sub
    Partial Private Sub OnAddTimeChanging(value As Date)
    End Sub
    Partial Private Sub OnAddTimeChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ID() As Integer
		Get
			Return Me._ID
		End Get
		Set
			If ((Me._ID = value)  _
						= false) Then
				Me.OnIDChanging(value)
				Me.SendPropertyChanging
				Me._ID = value
				Me.SendPropertyChanged("ID")
				Me.OnIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsID", DbType:="Int NOT NULL")>  _
	Public Property GoodsID() As Integer
		Get
			Return Me._GoodsID
		End Get
		Set
			If ((Me._GoodsID = value)  _
						= false) Then
				Me.OnGoodsIDChanging(value)
				Me.SendPropertyChanging
				Me._GoodsID = value
				Me.SendPropertyChanged("GoodsID")
				Me.OnGoodsIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_UserID", DbType:="Int NOT NULL")>  _
	Public Property UserID() As Integer
		Get
			Return Me._UserID
		End Get
		Set
			If ((Me._UserID = value)  _
						= false) Then
				Me.OnUserIDChanging(value)
				Me.SendPropertyChanging
				Me._UserID = value
				Me.SendPropertyChanged("UserID")
				Me.OnUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AddTime", DbType:="DateTime NOT NULL")>  _
	Public Property AddTime() As Date
		Get
			Return Me._AddTime
		End Get
		Set
			If ((Me._AddTime = value)  _
						= false) Then
				Me.OnAddTimeChanging(value)
				Me.SendPropertyChanging
				Me._AddTime = value
				Me.SendPropertyChanged("AddTime")
				Me.OnAddTimeChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsUser")>  _
Partial Public Class GoodsUser
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _UserID As Integer
	
	Private _AreaID As Integer
	
	Private _QQ As String
	
	Private _EvaluateCount As Integer
	
	Private _EvaluateTotal As System.Nullable(Of Integer)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnUserIDChanged()
    End Sub
    Partial Private Sub OnAreaIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnAreaIDChanged()
    End Sub
    Partial Private Sub OnQQChanging(value As String)
    End Sub
    Partial Private Sub OnQQChanged()
    End Sub
    Partial Private Sub OnEvaluateCountChanging(value As Integer)
    End Sub
    Partial Private Sub OnEvaluateCountChanged()
    End Sub
    Partial Private Sub OnEvaluateTotalChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnEvaluateTotalChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_UserID", DbType:="Int NOT NULL", IsPrimaryKey:=true)>  _
	Public Property UserID() As Integer
		Get
			Return Me._UserID
		End Get
		Set
			If ((Me._UserID = value)  _
						= false) Then
				Me.OnUserIDChanging(value)
				Me.SendPropertyChanging
				Me._UserID = value
				Me.SendPropertyChanged("UserID")
				Me.OnUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AreaID", DbType:="Int NOT NULL")>  _
	Public Property AreaID() As Integer
		Get
			Return Me._AreaID
		End Get
		Set
			If ((Me._AreaID = value)  _
						= false) Then
				Me.OnAreaIDChanging(value)
				Me.SendPropertyChanging
				Me._AreaID = value
				Me.SendPropertyChanged("AreaID")
				Me.OnAreaIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_QQ", DbType:="NVarChar(20)")>  _
	Public Property QQ() As String
		Get
			Return Me._QQ
		End Get
		Set
			If (String.Equals(Me._QQ, value) = false) Then
				Me.OnQQChanging(value)
				Me.SendPropertyChanging
				Me._QQ = value
				Me.SendPropertyChanged("QQ")
				Me.OnQQChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EvaluateCount", DbType:="Int NOT NULL")>  _
	Public Property EvaluateCount() As Integer
		Get
			Return Me._EvaluateCount
		End Get
		Set
			If ((Me._EvaluateCount = value)  _
						= false) Then
				Me.OnEvaluateCountChanging(value)
				Me.SendPropertyChanging
				Me._EvaluateCount = value
				Me.SendPropertyChanged("EvaluateCount")
				Me.OnEvaluateCountChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EvaluateTotal", DbType:="Int")>  _
	Public Property EvaluateTotal() As System.Nullable(Of Integer)
		Get
			Return Me._EvaluateTotal
		End Get
		Set
			If (Me._EvaluateTotal.Equals(value) = false) Then
				Me.OnEvaluateTotalChanging(value)
				Me.SendPropertyChanging
				Me._EvaluateTotal = value
				Me.SendPropertyChanged("EvaluateTotal")
				Me.OnEvaluateTotalChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsArea")>  _
Partial Public Class GoodsArea
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ClassID As Integer
	
	Private _ClassName As String
	
	Private _TopID As System.Nullable(Of Integer)
	
	Private _ParentID As System.Nullable(Of Integer)
	
	Private _ClassLev As System.Nullable(Of Integer)
	
	Private _ChildCount As System.Nullable(Of Integer)
	
	Private _OrderID As System.Nullable(Of Integer)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnClassIDChanged()
    End Sub
    Partial Private Sub OnClassNameChanging(value As String)
    End Sub
    Partial Private Sub OnClassNameChanged()
    End Sub
    Partial Private Sub OnTopIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnTopIDChanged()
    End Sub
    Partial Private Sub OnParentIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnParentIDChanged()
    End Sub
    Partial Private Sub OnClassLevChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnClassLevChanged()
    End Sub
    Partial Private Sub OnChildCountChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnChildCountChanged()
    End Sub
    Partial Private Sub OnOrderIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnOrderIDChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ClassID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ClassID() As Integer
		Get
			Return Me._ClassID
		End Get
		Set
			If ((Me._ClassID = value)  _
						= false) Then
				Me.OnClassIDChanging(value)
				Me.SendPropertyChanging
				Me._ClassID = value
				Me.SendPropertyChanged("ClassID")
				Me.OnClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ClassName", DbType:="NVarChar(30) NOT NULL", CanBeNull:=false)>  _
	Public Property ClassName() As String
		Get
			Return Me._ClassName
		End Get
		Set
			If (String.Equals(Me._ClassName, value) = false) Then
				Me.OnClassNameChanging(value)
				Me.SendPropertyChanging
				Me._ClassName = value
				Me.SendPropertyChanged("ClassName")
				Me.OnClassNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TopID", DbType:="Int")>  _
	Public Property TopID() As System.Nullable(Of Integer)
		Get
			Return Me._TopID
		End Get
		Set
			If (Me._TopID.Equals(value) = false) Then
				Me.OnTopIDChanging(value)
				Me.SendPropertyChanging
				Me._TopID = value
				Me.SendPropertyChanged("TopID")
				Me.OnTopIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ParentID", DbType:="Int")>  _
	Public Property ParentID() As System.Nullable(Of Integer)
		Get
			Return Me._ParentID
		End Get
		Set
			If (Me._ParentID.Equals(value) = false) Then
				Me.OnParentIDChanging(value)
				Me.SendPropertyChanging
				Me._ParentID = value
				Me.SendPropertyChanged("ParentID")
				Me.OnParentIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ClassLev", DbType:="Int")>  _
	Public Property ClassLev() As System.Nullable(Of Integer)
		Get
			Return Me._ClassLev
		End Get
		Set
			If (Me._ClassLev.Equals(value) = false) Then
				Me.OnClassLevChanging(value)
				Me.SendPropertyChanging
				Me._ClassLev = value
				Me.SendPropertyChanged("ClassLev")
				Me.OnClassLevChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ChildCount", DbType:="Int")>  _
	Public Property ChildCount() As System.Nullable(Of Integer)
		Get
			Return Me._ChildCount
		End Get
		Set
			If (Me._ChildCount.Equals(value) = false) Then
				Me.OnChildCountChanging(value)
				Me.SendPropertyChanging
				Me._ChildCount = value
				Me.SendPropertyChanged("ChildCount")
				Me.OnChildCountChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_OrderID", DbType:="Int")>  _
	Public Property OrderID() As System.Nullable(Of Integer)
		Get
			Return Me._OrderID
		End Get
		Set
			If (Me._OrderID.Equals(value) = false) Then
				Me.OnOrderIDChanging(value)
				Me.SendPropertyChanging
				Me._OrderID = value
				Me.SendPropertyChanged("OrderID")
				Me.OnOrderIDChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsClass")>  _
Partial Public Class GoodsClass
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ClassID As Integer
	
	Private _SiteID As System.Nullable(Of Integer)
	
	Private _ClassName As String
	
	Private _TopID As System.Nullable(Of Integer)
	
	Private _ParentID As System.Nullable(Of Integer)
	
	Private _ClassLev As System.Nullable(Of Integer)
	
	Private _ChildCount As System.Nullable(Of Integer)
	
	Private _OrderID As System.Nullable(Of Integer)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnClassIDChanged()
    End Sub
    Partial Private Sub OnSiteIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnSiteIDChanged()
    End Sub
    Partial Private Sub OnClassNameChanging(value As String)
    End Sub
    Partial Private Sub OnClassNameChanged()
    End Sub
    Partial Private Sub OnTopIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnTopIDChanged()
    End Sub
    Partial Private Sub OnParentIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnParentIDChanged()
    End Sub
    Partial Private Sub OnClassLevChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnClassLevChanged()
    End Sub
    Partial Private Sub OnChildCountChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnChildCountChanged()
    End Sub
    Partial Private Sub OnOrderIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnOrderIDChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ClassID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ClassID() As Integer
		Get
			Return Me._ClassID
		End Get
		Set
			If ((Me._ClassID = value)  _
						= false) Then
				Me.OnClassIDChanging(value)
				Me.SendPropertyChanging
				Me._ClassID = value
				Me.SendPropertyChanged("ClassID")
				Me.OnClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SiteID", DbType:="Int")>  _
	Public Property SiteID() As System.Nullable(Of Integer)
		Get
			Return Me._SiteID
		End Get
		Set
			If (Me._SiteID.Equals(value) = false) Then
				Me.OnSiteIDChanging(value)
				Me.SendPropertyChanging
				Me._SiteID = value
				Me.SendPropertyChanged("SiteID")
				Me.OnSiteIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ClassName", DbType:="NVarChar(30) NOT NULL", CanBeNull:=false)>  _
	Public Property ClassName() As String
		Get
			Return Me._ClassName
		End Get
		Set
			If (String.Equals(Me._ClassName, value) = false) Then
				Me.OnClassNameChanging(value)
				Me.SendPropertyChanging
				Me._ClassName = value
				Me.SendPropertyChanged("ClassName")
				Me.OnClassNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TopID", DbType:="Int")>  _
	Public Property TopID() As System.Nullable(Of Integer)
		Get
			Return Me._TopID
		End Get
		Set
			If (Me._TopID.Equals(value) = false) Then
				Me.OnTopIDChanging(value)
				Me.SendPropertyChanging
				Me._TopID = value
				Me.SendPropertyChanged("TopID")
				Me.OnTopIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ParentID", DbType:="Int")>  _
	Public Property ParentID() As System.Nullable(Of Integer)
		Get
			Return Me._ParentID
		End Get
		Set
			If (Me._ParentID.Equals(value) = false) Then
				Me.OnParentIDChanging(value)
				Me.SendPropertyChanging
				Me._ParentID = value
				Me.SendPropertyChanged("ParentID")
				Me.OnParentIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ClassLev", DbType:="Int")>  _
	Public Property ClassLev() As System.Nullable(Of Integer)
		Get
			Return Me._ClassLev
		End Get
		Set
			If (Me._ClassLev.Equals(value) = false) Then
				Me.OnClassLevChanging(value)
				Me.SendPropertyChanging
				Me._ClassLev = value
				Me.SendPropertyChanged("ClassLev")
				Me.OnClassLevChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ChildCount", DbType:="Int")>  _
	Public Property ChildCount() As System.Nullable(Of Integer)
		Get
			Return Me._ChildCount
		End Get
		Set
			If (Me._ChildCount.Equals(value) = false) Then
				Me.OnChildCountChanging(value)
				Me.SendPropertyChanging
				Me._ChildCount = value
				Me.SendPropertyChanged("ChildCount")
				Me.OnChildCountChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_OrderID", DbType:="Int")>  _
	Public Property OrderID() As System.Nullable(Of Integer)
		Get
			Return Me._OrderID
		End Get
		Set
			If (Me._OrderID.Equals(value) = false) Then
				Me.OnOrderIDChanging(value)
				Me.SendPropertyChanging
				Me._OrderID = value
				Me.SendPropertyChanged("OrderID")
				Me.OnOrderIDChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsProposal_Goods")>  _
Partial Public Class GoodsProposal_Goods
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _ProposalID As Integer
	
	Private _GoodsID As Integer
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnProposalIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnProposalIDChanged()
    End Sub
    Partial Private Sub OnGoodsIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsIDChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ID() As Integer
		Get
			Return Me._ID
		End Get
		Set
			If ((Me._ID = value)  _
						= false) Then
				Me.OnIDChanging(value)
				Me.SendPropertyChanging
				Me._ID = value
				Me.SendPropertyChanged("ID")
				Me.OnIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ProposalID", DbType:="Int NOT NULL")>  _
	Public Property ProposalID() As Integer
		Get
			Return Me._ProposalID
		End Get
		Set
			If ((Me._ProposalID = value)  _
						= false) Then
				Me.OnProposalIDChanging(value)
				Me.SendPropertyChanging
				Me._ProposalID = value
				Me.SendPropertyChanged("ProposalID")
				Me.OnProposalIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsID", DbType:="Int NOT NULL")>  _
	Public Property GoodsID() As Integer
		Get
			Return Me._GoodsID
		End Get
		Set
			If ((Me._GoodsID = value)  _
						= false) Then
				Me.OnGoodsIDChanging(value)
				Me.SendPropertyChanging
				Me._GoodsID = value
				Me.SendPropertyChanged("GoodsID")
				Me.OnGoodsIDChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsProposal")>  _
Partial Public Class GoodsProposal
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _UserID As Integer
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnUserIDChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ID() As Integer
		Get
			Return Me._ID
		End Get
		Set
			If ((Me._ID = value)  _
						= false) Then
				Me.OnIDChanging(value)
				Me.SendPropertyChanging
				Me._ID = value
				Me.SendPropertyChanged("ID")
				Me.OnIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_UserID", DbType:="Int NOT NULL")>  _
	Public Property UserID() As Integer
		Get
			Return Me._UserID
		End Get
		Set
			If ((Me._UserID = value)  _
						= false) Then
				Me.OnUserIDChanging(value)
				Me.SendPropertyChanging
				Me._UserID = value
				Me.SendPropertyChanged("UserID")
				Me.OnUserIDChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsAssess")>  _
Partial Public Class GoodsAssess
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _GoodsID As Integer
	
	Private _GoodsClassID As Integer
	
	Private _UserID As Integer
	
	Private _GoodsName As String
	
	Private _Depreciation As Integer
	
	Private _OriginalPrice As Double
	
	Private _SellingPrice As Double
	
	Private _GoodsPic As String
	
	Private _GoodsState As Integer
	
	Private _Note As String
	
	Private _GoodsIntegrity As String
	
	Private _AddTime As Date
	
	Private _Assess As String
	
	Private _AssessPoint As System.Nullable(Of Integer)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnGoodsIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsIDChanged()
    End Sub
    Partial Private Sub OnGoodsClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsClassIDChanged()
    End Sub
    Partial Private Sub OnUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnUserIDChanged()
    End Sub
    Partial Private Sub OnGoodsNameChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsNameChanged()
    End Sub
    Partial Private Sub OnDepreciationChanging(value As Integer)
    End Sub
    Partial Private Sub OnDepreciationChanged()
    End Sub
    Partial Private Sub OnOriginalPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnOriginalPriceChanged()
    End Sub
    Partial Private Sub OnSellingPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnSellingPriceChanged()
    End Sub
    Partial Private Sub OnGoodsPicChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsPicChanged()
    End Sub
    Partial Private Sub OnGoodsStateChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsStateChanged()
    End Sub
    Partial Private Sub OnNoteChanging(value As String)
    End Sub
    Partial Private Sub OnNoteChanged()
    End Sub
    Partial Private Sub OnGoodsIntegrityChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsIntegrityChanged()
    End Sub
    Partial Private Sub OnAddTimeChanging(value As Date)
    End Sub
    Partial Private Sub OnAddTimeChanged()
    End Sub
    Partial Private Sub OnAssessChanging(value As String)
    End Sub
    Partial Private Sub OnAssessChanged()
    End Sub
    Partial Private Sub OnAssessPointChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAssessPointChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_GoodsID", DbType:="Int NOT NULL", IsPrimaryKey:=true)>  _
	Public Property GoodsID() As Integer
		Get
			Return Me._GoodsID
		End Get
		Set
			If ((Me._GoodsID = value)  _
						= false) Then
				Me.OnGoodsIDChanging(value)
				Me.SendPropertyChanging
				Me._GoodsID = value
				Me.SendPropertyChanged("GoodsID")
				Me.OnGoodsIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsClassID", DbType:="Int NOT NULL")>  _
	Public Property GoodsClassID() As Integer
		Get
			Return Me._GoodsClassID
		End Get
		Set
			If ((Me._GoodsClassID = value)  _
						= false) Then
				Me.OnGoodsClassIDChanging(value)
				Me.SendPropertyChanging
				Me._GoodsClassID = value
				Me.SendPropertyChanged("GoodsClassID")
				Me.OnGoodsClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_UserID", DbType:="Int NOT NULL")>  _
	Public Property UserID() As Integer
		Get
			Return Me._UserID
		End Get
		Set
			If ((Me._UserID = value)  _
						= false) Then
				Me.OnUserIDChanging(value)
				Me.SendPropertyChanging
				Me._UserID = value
				Me.SendPropertyChanged("UserID")
				Me.OnUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsName", DbType:="NVarChar(50) NOT NULL", CanBeNull:=false)>  _
	Public Property GoodsName() As String
		Get
			Return Me._GoodsName
		End Get
		Set
			If (String.Equals(Me._GoodsName, value) = false) Then
				Me.OnGoodsNameChanging(value)
				Me.SendPropertyChanging
				Me._GoodsName = value
				Me.SendPropertyChanged("GoodsName")
				Me.OnGoodsNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Depreciation", DbType:="Int NOT NULL")>  _
	Public Property Depreciation() As Integer
		Get
			Return Me._Depreciation
		End Get
		Set
			If ((Me._Depreciation = value)  _
						= false) Then
				Me.OnDepreciationChanging(value)
				Me.SendPropertyChanging
				Me._Depreciation = value
				Me.SendPropertyChanged("Depreciation")
				Me.OnDepreciationChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_OriginalPrice", DbType:="Float NOT NULL")>  _
	Public Property OriginalPrice() As Double
		Get
			Return Me._OriginalPrice
		End Get
		Set
			If ((Me._OriginalPrice = value)  _
						= false) Then
				Me.OnOriginalPriceChanging(value)
				Me.SendPropertyChanging
				Me._OriginalPrice = value
				Me.SendPropertyChanged("OriginalPrice")
				Me.OnOriginalPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SellingPrice", DbType:="Float NOT NULL")>  _
	Public Property SellingPrice() As Double
		Get
			Return Me._SellingPrice
		End Get
		Set
			If ((Me._SellingPrice = value)  _
						= false) Then
				Me.OnSellingPriceChanging(value)
				Me.SendPropertyChanging
				Me._SellingPrice = value
				Me.SendPropertyChanged("SellingPrice")
				Me.OnSellingPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsPic", DbType:="NVarChar(100)")>  _
	Public Property GoodsPic() As String
		Get
			Return Me._GoodsPic
		End Get
		Set
			If (String.Equals(Me._GoodsPic, value) = false) Then
				Me.OnGoodsPicChanging(value)
				Me.SendPropertyChanging
				Me._GoodsPic = value
				Me.SendPropertyChanged("GoodsPic")
				Me.OnGoodsPicChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsState", DbType:="Int NOT NULL")>  _
	Public Property GoodsState() As Integer
		Get
			Return Me._GoodsState
		End Get
		Set
			If ((Me._GoodsState = value)  _
						= false) Then
				Me.OnGoodsStateChanging(value)
				Me.SendPropertyChanging
				Me._GoodsState = value
				Me.SendPropertyChanged("GoodsState")
				Me.OnGoodsStateChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Note", DbType:="NVarChar(400)")>  _
	Public Property Note() As String
		Get
			Return Me._Note
		End Get
		Set
			If (String.Equals(Me._Note, value) = false) Then
				Me.OnNoteChanging(value)
				Me.SendPropertyChanging
				Me._Note = value
				Me.SendPropertyChanged("Note")
				Me.OnNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsIntegrity", DbType:="NVarChar(200) NOT NULL", CanBeNull:=false)>  _
	Public Property GoodsIntegrity() As String
		Get
			Return Me._GoodsIntegrity
		End Get
		Set
			If (String.Equals(Me._GoodsIntegrity, value) = false) Then
				Me.OnGoodsIntegrityChanging(value)
				Me.SendPropertyChanging
				Me._GoodsIntegrity = value
				Me.SendPropertyChanged("GoodsIntegrity")
				Me.OnGoodsIntegrityChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AddTime", DbType:="DateTime NOT NULL")>  _
	Public Property AddTime() As Date
		Get
			Return Me._AddTime
		End Get
		Set
			If ((Me._AddTime = value)  _
						= false) Then
				Me.OnAddTimeChanging(value)
				Me.SendPropertyChanging
				Me._AddTime = value
				Me.SendPropertyChanged("AddTime")
				Me.OnAddTimeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Assess", DbType:="NVarChar(200)")>  _
	Public Property Assess() As String
		Get
			Return Me._Assess
		End Get
		Set
			If (String.Equals(Me._Assess, value) = false) Then
				Me.OnAssessChanging(value)
				Me.SendPropertyChanging
				Me._Assess = value
				Me.SendPropertyChanged("Assess")
				Me.OnAssessChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AssessPoint", DbType:="Int")>  _
	Public Property AssessPoint() As System.Nullable(Of Integer)
		Get
			Return Me._AssessPoint
		End Get
		Set
			If (Me._AssessPoint.Equals(value) = false) Then
				Me.OnAssessPointChanging(value)
				Me.SendPropertyChanging
				Me._AssessPoint = value
				Me.SendPropertyChanged("AssessPoint")
				Me.OnAssessPointChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsRegister")>  _
Partial Public Class GoodsRegister
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _GoodsClassID As Integer
	
	Private _UserID As Integer
	
	Private _GoodsName As String
	
	Private _Depreciation As Integer
	
	Private _OriginalPrice As Double
	
	Private _SellingPrice As Double
	
	Private _GoodsPic As String
	
	Private _Note As String
	
	Private _GoodsIntegrity As String
	
	Private _ExClassID As System.Nullable(Of Integer)
	
	Private _ExLowPrice As System.Nullable(Of Double)
	
	Private _ExHightPrice As System.Nullable(Of Double)
	
	Private _ExDepreciation As System.Nullable(Of Integer)
	
	Private _ExArea As System.Nullable(Of Integer)
	
	Private _ExKeyWord As String
	
	Private _ExNote As String
	
	Private _Locked As System.Nullable(Of Boolean)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnGoodsClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnGoodsClassIDChanged()
    End Sub
    Partial Private Sub OnUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnUserIDChanged()
    End Sub
    Partial Private Sub OnGoodsNameChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsNameChanged()
    End Sub
    Partial Private Sub OnDepreciationChanging(value As Integer)
    End Sub
    Partial Private Sub OnDepreciationChanged()
    End Sub
    Partial Private Sub OnOriginalPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnOriginalPriceChanged()
    End Sub
    Partial Private Sub OnSellingPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnSellingPriceChanged()
    End Sub
    Partial Private Sub OnGoodsPicChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsPicChanged()
    End Sub
    Partial Private Sub OnNoteChanging(value As String)
    End Sub
    Partial Private Sub OnNoteChanged()
    End Sub
    Partial Private Sub OnGoodsIntegrityChanging(value As String)
    End Sub
    Partial Private Sub OnGoodsIntegrityChanged()
    End Sub
    Partial Private Sub OnExClassIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnExClassIDChanged()
    End Sub
    Partial Private Sub OnExLowPriceChanging(value As System.Nullable(Of Double))
    End Sub
    Partial Private Sub OnExLowPriceChanged()
    End Sub
    Partial Private Sub OnExHightPriceChanging(value As System.Nullable(Of Double))
    End Sub
    Partial Private Sub OnExHightPriceChanged()
    End Sub
    Partial Private Sub OnExDepreciationChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnExDepreciationChanged()
    End Sub
    Partial Private Sub OnExAreaChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnExAreaChanged()
    End Sub
    Partial Private Sub OnExKeyWordChanging(value As String)
    End Sub
    Partial Private Sub OnExKeyWordChanged()
    End Sub
    Partial Private Sub OnExNoteChanging(value As String)
    End Sub
    Partial Private Sub OnExNoteChanged()
    End Sub
    Partial Private Sub OnLockedChanging(value As System.Nullable(Of Boolean))
    End Sub
    Partial Private Sub OnLockedChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ID() As Integer
		Get
			Return Me._ID
		End Get
		Set
			If ((Me._ID = value)  _
						= false) Then
				Me.OnIDChanging(value)
				Me.SendPropertyChanging
				Me._ID = value
				Me.SendPropertyChanged("ID")
				Me.OnIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsClassID", DbType:="Int NOT NULL")>  _
	Public Property GoodsClassID() As Integer
		Get
			Return Me._GoodsClassID
		End Get
		Set
			If ((Me._GoodsClassID = value)  _
						= false) Then
				Me.OnGoodsClassIDChanging(value)
				Me.SendPropertyChanging
				Me._GoodsClassID = value
				Me.SendPropertyChanged("GoodsClassID")
				Me.OnGoodsClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_UserID", DbType:="Int NOT NULL")>  _
	Public Property UserID() As Integer
		Get
			Return Me._UserID
		End Get
		Set
			If ((Me._UserID = value)  _
						= false) Then
				Me.OnUserIDChanging(value)
				Me.SendPropertyChanging
				Me._UserID = value
				Me.SendPropertyChanged("UserID")
				Me.OnUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsName", DbType:="NVarChar(50) NOT NULL", CanBeNull:=false)>  _
	Public Property GoodsName() As String
		Get
			Return Me._GoodsName
		End Get
		Set
			If (String.Equals(Me._GoodsName, value) = false) Then
				Me.OnGoodsNameChanging(value)
				Me.SendPropertyChanging
				Me._GoodsName = value
				Me.SendPropertyChanged("GoodsName")
				Me.OnGoodsNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Depreciation", DbType:="Int NOT NULL")>  _
	Public Property Depreciation() As Integer
		Get
			Return Me._Depreciation
		End Get
		Set
			If ((Me._Depreciation = value)  _
						= false) Then
				Me.OnDepreciationChanging(value)
				Me.SendPropertyChanging
				Me._Depreciation = value
				Me.SendPropertyChanged("Depreciation")
				Me.OnDepreciationChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_OriginalPrice", DbType:="Float NOT NULL")>  _
	Public Property OriginalPrice() As Double
		Get
			Return Me._OriginalPrice
		End Get
		Set
			If ((Me._OriginalPrice = value)  _
						= false) Then
				Me.OnOriginalPriceChanging(value)
				Me.SendPropertyChanging
				Me._OriginalPrice = value
				Me.SendPropertyChanged("OriginalPrice")
				Me.OnOriginalPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SellingPrice", DbType:="Float NOT NULL")>  _
	Public Property SellingPrice() As Double
		Get
			Return Me._SellingPrice
		End Get
		Set
			If ((Me._SellingPrice = value)  _
						= false) Then
				Me.OnSellingPriceChanging(value)
				Me.SendPropertyChanging
				Me._SellingPrice = value
				Me.SendPropertyChanged("SellingPrice")
				Me.OnSellingPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsPic", DbType:="NVarChar(100)")>  _
	Public Property GoodsPic() As String
		Get
			Return Me._GoodsPic
		End Get
		Set
			If (String.Equals(Me._GoodsPic, value) = false) Then
				Me.OnGoodsPicChanging(value)
				Me.SendPropertyChanging
				Me._GoodsPic = value
				Me.SendPropertyChanged("GoodsPic")
				Me.OnGoodsPicChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Note", DbType:="NVarChar(400)")>  _
	Public Property Note() As String
		Get
			Return Me._Note
		End Get
		Set
			If (String.Equals(Me._Note, value) = false) Then
				Me.OnNoteChanging(value)
				Me.SendPropertyChanging
				Me._Note = value
				Me.SendPropertyChanged("Note")
				Me.OnNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_GoodsIntegrity", DbType:="NVarChar(200) NOT NULL", CanBeNull:=false)>  _
	Public Property GoodsIntegrity() As String
		Get
			Return Me._GoodsIntegrity
		End Get
		Set
			If (String.Equals(Me._GoodsIntegrity, value) = false) Then
				Me.OnGoodsIntegrityChanging(value)
				Me.SendPropertyChanging
				Me._GoodsIntegrity = value
				Me.SendPropertyChanged("GoodsIntegrity")
				Me.OnGoodsIntegrityChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExClassID", DbType:="Int")>  _
	Public Property ExClassID() As System.Nullable(Of Integer)
		Get
			Return Me._ExClassID
		End Get
		Set
			If (Me._ExClassID.Equals(value) = false) Then
				Me.OnExClassIDChanging(value)
				Me.SendPropertyChanging
				Me._ExClassID = value
				Me.SendPropertyChanged("ExClassID")
				Me.OnExClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExLowPrice", DbType:="Float")>  _
	Public Property ExLowPrice() As System.Nullable(Of Double)
		Get
			Return Me._ExLowPrice
		End Get
		Set
			If (Me._ExLowPrice.Equals(value) = false) Then
				Me.OnExLowPriceChanging(value)
				Me.SendPropertyChanging
				Me._ExLowPrice = value
				Me.SendPropertyChanged("ExLowPrice")
				Me.OnExLowPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExHightPrice", DbType:="Float")>  _
	Public Property ExHightPrice() As System.Nullable(Of Double)
		Get
			Return Me._ExHightPrice
		End Get
		Set
			If (Me._ExHightPrice.Equals(value) = false) Then
				Me.OnExHightPriceChanging(value)
				Me.SendPropertyChanging
				Me._ExHightPrice = value
				Me.SendPropertyChanged("ExHightPrice")
				Me.OnExHightPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExDepreciation", DbType:="Int")>  _
	Public Property ExDepreciation() As System.Nullable(Of Integer)
		Get
			Return Me._ExDepreciation
		End Get
		Set
			If (Me._ExDepreciation.Equals(value) = false) Then
				Me.OnExDepreciationChanging(value)
				Me.SendPropertyChanging
				Me._ExDepreciation = value
				Me.SendPropertyChanged("ExDepreciation")
				Me.OnExDepreciationChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExArea", DbType:="Int")>  _
	Public Property ExArea() As System.Nullable(Of Integer)
		Get
			Return Me._ExArea
		End Get
		Set
			If (Me._ExArea.Equals(value) = false) Then
				Me.OnExAreaChanging(value)
				Me.SendPropertyChanging
				Me._ExArea = value
				Me.SendPropertyChanged("ExArea")
				Me.OnExAreaChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExKeyWord", DbType:="NVarChar(100)")>  _
	Public Property ExKeyWord() As String
		Get
			Return Me._ExKeyWord
		End Get
		Set
			If (String.Equals(Me._ExKeyWord, value) = false) Then
				Me.OnExKeyWordChanging(value)
				Me.SendPropertyChanging
				Me._ExKeyWord = value
				Me.SendPropertyChanged("ExKeyWord")
				Me.OnExKeyWordChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ExNote", DbType:="NVarChar(400)")>  _
	Public Property ExNote() As String
		Get
			Return Me._ExNote
		End Get
		Set
			If (String.Equals(Me._ExNote, value) = false) Then
				Me.OnExNoteChanging(value)
				Me.SendPropertyChanging
				Me._ExNote = value
				Me.SendPropertyChanged("ExNote")
				Me.OnExNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Locked", DbType:="Bit")>  _
	Public Property Locked() As System.Nullable(Of Boolean)
		Get
			Return Me._Locked
		End Get
		Set
			If (Me._Locked.Equals(value) = false) Then
				Me.OnLockedChanging(value)
				Me.SendPropertyChanging
				Me._Locked = value
				Me.SendPropertyChanged("Locked")
				Me.OnLockedChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class

<Table(Name:="dbo.GoodsTransRecords")>  _
Partial Public Class GoodsTransRecords
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _SGoodsID As Integer
	
	Private _SUserID As Integer
	
	Private _SMessage As String
	
	Private _SAssessPoint As System.Nullable(Of Integer)
	
	Private _SAssessNote As String
	
	Private _STime As System.Nullable(Of Date)
	
	Private _EGoodsID As System.Nullable(Of Integer)
	
	Private _EUserID As System.Nullable(Of Integer)
	
	Private _EMessage As String
	
	Private _EAssessPoint As System.Nullable(Of Integer)
	
	Private _EAssessNote As String
	
	Private _ETime As System.Nullable(Of Date)
	
    #Region "Extensibility Method Definitions"
    Partial Private Sub OnLoaded()
    End Sub
    Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)
    End Sub
    Partial Private Sub OnCreated()
    End Sub
    Partial Private Sub OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnSGoodsIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnSGoodsIDChanged()
    End Sub
    Partial Private Sub OnSUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnSUserIDChanged()
    End Sub
    Partial Private Sub OnSMessageChanging(value As String)
    End Sub
    Partial Private Sub OnSMessageChanged()
    End Sub
    Partial Private Sub OnSAssessPointChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnSAssessPointChanged()
    End Sub
    Partial Private Sub OnSAssessNoteChanging(value As String)
    End Sub
    Partial Private Sub OnSAssessNoteChanged()
    End Sub
    Partial Private Sub OnSTimeChanging(value As System.Nullable(Of Date))
    End Sub
    Partial Private Sub OnSTimeChanged()
    End Sub
    Partial Private Sub OnEGoodsIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnEGoodsIDChanged()
    End Sub
    Partial Private Sub OnEUserIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnEUserIDChanged()
    End Sub
    Partial Private Sub OnEMessageChanging(value As String)
    End Sub
    Partial Private Sub OnEMessageChanged()
    End Sub
    Partial Private Sub OnEAssessPointChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnEAssessPointChanged()
    End Sub
    Partial Private Sub OnEAssessNoteChanging(value As String)
    End Sub
    Partial Private Sub OnEAssessNoteChanged()
    End Sub
    Partial Private Sub OnETimeChanging(value As System.Nullable(Of Date))
    End Sub
    Partial Private Sub OnETimeChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", AutoSync:=AutoSync.OnInsert, DbType:="Int NOT NULL IDENTITY", IsPrimaryKey:=true, IsDbGenerated:=true)>  _
	Public Property ID() As Integer
		Get
			Return Me._ID
		End Get
		Set
			If ((Me._ID = value)  _
						= false) Then
				Me.OnIDChanging(value)
				Me.SendPropertyChanging
				Me._ID = value
				Me.SendPropertyChanged("ID")
				Me.OnIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SGoodsID", DbType:="Int NOT NULL")>  _
	Public Property SGoodsID() As Integer
		Get
			Return Me._SGoodsID
		End Get
		Set
			If ((Me._SGoodsID = value)  _
						= false) Then
				Me.OnSGoodsIDChanging(value)
				Me.SendPropertyChanging
				Me._SGoodsID = value
				Me.SendPropertyChanged("SGoodsID")
				Me.OnSGoodsIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SUserID", DbType:="Int NOT NULL")>  _
	Public Property SUserID() As Integer
		Get
			Return Me._SUserID
		End Get
		Set
			If ((Me._SUserID = value)  _
						= false) Then
				Me.OnSUserIDChanging(value)
				Me.SendPropertyChanging
				Me._SUserID = value
				Me.SendPropertyChanged("SUserID")
				Me.OnSUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SMessage", DbType:="NVarChar(200)")>  _
	Public Property SMessage() As String
		Get
			Return Me._SMessage
		End Get
		Set
			If (String.Equals(Me._SMessage, value) = false) Then
				Me.OnSMessageChanging(value)
				Me.SendPropertyChanging
				Me._SMessage = value
				Me.SendPropertyChanged("SMessage")
				Me.OnSMessageChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SAssessPoint", DbType:="Int")>  _
	Public Property SAssessPoint() As System.Nullable(Of Integer)
		Get
			Return Me._SAssessPoint
		End Get
		Set
			If (Me._SAssessPoint.Equals(value) = false) Then
				Me.OnSAssessPointChanging(value)
				Me.SendPropertyChanging
				Me._SAssessPoint = value
				Me.SendPropertyChanged("SAssessPoint")
				Me.OnSAssessPointChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_SAssessNote", DbType:="NVarChar(200)")>  _
	Public Property SAssessNote() As String
		Get
			Return Me._SAssessNote
		End Get
		Set
			If (String.Equals(Me._SAssessNote, value) = false) Then
				Me.OnSAssessNoteChanging(value)
				Me.SendPropertyChanging
				Me._SAssessNote = value
				Me.SendPropertyChanged("SAssessNote")
				Me.OnSAssessNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_STime", DbType:="DateTime")>  _
	Public Property STime() As System.Nullable(Of Date)
		Get
			Return Me._STime
		End Get
		Set
			If (Me._STime.Equals(value) = false) Then
				Me.OnSTimeChanging(value)
				Me.SendPropertyChanging
				Me._STime = value
				Me.SendPropertyChanged("STime")
				Me.OnSTimeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EGoodsID", DbType:="Int")>  _
	Public Property EGoodsID() As System.Nullable(Of Integer)
		Get
			Return Me._EGoodsID
		End Get
		Set
			If (Me._EGoodsID.Equals(value) = false) Then
				Me.OnEGoodsIDChanging(value)
				Me.SendPropertyChanging
				Me._EGoodsID = value
				Me.SendPropertyChanged("EGoodsID")
				Me.OnEGoodsIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EUserID", DbType:="Int")>  _
	Public Property EUserID() As System.Nullable(Of Integer)
		Get
			Return Me._EUserID
		End Get
		Set
			If (Me._EUserID.Equals(value) = false) Then
				Me.OnEUserIDChanging(value)
				Me.SendPropertyChanging
				Me._EUserID = value
				Me.SendPropertyChanged("EUserID")
				Me.OnEUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EMessage", DbType:="NVarChar(200)")>  _
	Public Property EMessage() As String
		Get
			Return Me._EMessage
		End Get
		Set
			If (String.Equals(Me._EMessage, value) = false) Then
				Me.OnEMessageChanging(value)
				Me.SendPropertyChanging
				Me._EMessage = value
				Me.SendPropertyChanged("EMessage")
				Me.OnEMessageChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EAssessPoint", DbType:="Int")>  _
	Public Property EAssessPoint() As System.Nullable(Of Integer)
		Get
			Return Me._EAssessPoint
		End Get
		Set
			If (Me._EAssessPoint.Equals(value) = false) Then
				Me.OnEAssessPointChanging(value)
				Me.SendPropertyChanging
				Me._EAssessPoint = value
				Me.SendPropertyChanged("EAssessPoint")
				Me.OnEAssessPointChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_EAssessNote", DbType:="NVarChar(200)")>  _
	Public Property EAssessNote() As String
		Get
			Return Me._EAssessNote
		End Get
		Set
			If (String.Equals(Me._EAssessNote, value) = false) Then
				Me.OnEAssessNoteChanging(value)
				Me.SendPropertyChanging
				Me._EAssessNote = value
				Me.SendPropertyChanged("EAssessNote")
				Me.OnEAssessNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ETime", DbType:="DateTime")>  _
	Public Property ETime() As System.Nullable(Of Date)
		Get
			Return Me._ETime
		End Get
		Set
			If (Me._ETime.Equals(value) = false) Then
				Me.OnETimeChanging(value)
				Me.SendPropertyChanging
				Me._ETime = value
				Me.SendPropertyChanged("ETime")
				Me.OnETimeChanged
			End If
		End Set
	End Property
	
	Public Event PropertyChanging As PropertyChangingEventHandler Implements System.ComponentModel.INotifyPropertyChanging.PropertyChanging
	
	Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
	
	Protected Overridable Sub SendPropertyChanging()
		If ((Me.PropertyChangingEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanging(Me, emptyChangingEventArgs)
		End If
	End Sub
	
	Protected Overridable Sub SendPropertyChanged(ByVal propertyName As [String])
		If ((Me.PropertyChangedEvent Is Nothing)  _
					= false) Then
			RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
		End If
	End Sub
End Class
