'------------------------------------------------------------------------------
' <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_TaskDataContext
	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 InsertTaskAccepter(instance As TaskAccepter)
    End Sub
  Partial Private Sub UpdateTaskAccepter(instance As TaskAccepter)
    End Sub
  Partial Private Sub DeleteTaskAccepter(instance As TaskAccepter)
    End Sub
  Partial Private Sub InsertTaskUserGroup(instance As TaskUserGroup)
    End Sub
  Partial Private Sub UpdateTaskUserGroup(instance As TaskUserGroup)
    End Sub
  Partial Private Sub DeleteTaskUserGroup(instance As TaskUserGroup)
    End Sub
  Partial Private Sub InsertTaskClass(instance As TaskClass)
    End Sub
  Partial Private Sub UpdateTaskClass(instance As TaskClass)
    End Sub
  Partial Private Sub DeleteTaskClass(instance As TaskClass)
    End Sub
  Partial Private Sub InsertTaskList(instance As TaskList)
    End Sub
  Partial Private Sub UpdateTaskList(instance As TaskList)
    End Sub
  Partial Private Sub DeleteTaskList(instance As TaskList)
    End Sub
  Partial Private Sub InsertTaskTemplate(instance As TaskTemplate)
    End Sub
  Partial Private Sub UpdateTaskTemplate(instance As TaskTemplate)
    End Sub
  Partial Private Sub DeleteTaskTemplate(instance As TaskTemplate)
    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 TaskAccepter() As System.Data.Linq.Table(Of TaskAccepter)
		Get
			Return Me.GetTable(Of TaskAccepter)
		End Get
	End Property
	
	Public ReadOnly Property TaskUserGroup() As System.Data.Linq.Table(Of TaskUserGroup)
		Get
			Return Me.GetTable(Of TaskUserGroup)
		End Get
	End Property
	
	Public ReadOnly Property TaskClass() As System.Data.Linq.Table(Of TaskClass)
		Get
			Return Me.GetTable(Of TaskClass)
		End Get
	End Property
	
	Public ReadOnly Property TaskList() As System.Data.Linq.Table(Of TaskList)
		Get
			Return Me.GetTable(Of TaskList)
		End Get
	End Property
	
	Public ReadOnly Property TaskTemplate() As System.Data.Linq.Table(Of TaskTemplate)
		Get
			Return Me.GetTable(Of TaskTemplate)
		End Get
	End Property
End Class

<Table(Name:="dbo.TaskAccepter")>  _
Partial Public Class TaskAccepter
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _SiteID As System.Nullable(Of Integer)
	
	Private _TaskID As Integer
	
	Private _AccepterID As Integer
	
	Private _BidPrice As Double
	
	Private _BidNote As String
	
    #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 OnSiteIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnSiteIDChanged()
    End Sub
    Partial Private Sub OnTaskIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskIDChanged()
    End Sub
    Partial Private Sub OnAccepterIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnAccepterIDChanged()
    End Sub
    Partial Private Sub OnBidPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnBidPriceChanged()
    End Sub
    Partial Private Sub OnBidNoteChanging(value As String)
    End Sub
    Partial Private Sub OnBidNoteChanged()
    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:="_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:="_TaskID", DbType:="Int NOT NULL")>  _
	Public Property TaskID() As Integer
		Get
			Return Me._TaskID
		End Get
		Set
			If ((Me._TaskID = value)  _
						= false) Then
				Me.OnTaskIDChanging(value)
				Me.SendPropertyChanging
				Me._TaskID = value
				Me.SendPropertyChanged("TaskID")
				Me.OnTaskIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepterID", DbType:="Int NOT NULL")>  _
	Public Property AccepterID() As Integer
		Get
			Return Me._AccepterID
		End Get
		Set
			If ((Me._AccepterID = value)  _
						= false) Then
				Me.OnAccepterIDChanging(value)
				Me.SendPropertyChanging
				Me._AccepterID = value
				Me.SendPropertyChanged("AccepterID")
				Me.OnAccepterIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_BidPrice", DbType:="Float NOT NULL")>  _
	Public Property BidPrice() As Double
		Get
			Return Me._BidPrice
		End Get
		Set
			If ((Me._BidPrice = value)  _
						= false) Then
				Me.OnBidPriceChanging(value)
				Me.SendPropertyChanging
				Me._BidPrice = value
				Me.SendPropertyChanged("BidPrice")
				Me.OnBidPriceChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_BidNote", DbType:="NVarChar(400)")>  _
	Public Property BidNote() As String
		Get
			Return Me._BidNote
		End Get
		Set
			If (String.Equals(Me._BidNote, value) = false) Then
				Me.OnBidNoteChanging(value)
				Me.SendPropertyChanging
				Me._BidNote = value
				Me.SendPropertyChanged("BidNote")
				Me.OnBidNoteChanged
			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.TaskUserGroup")>  _
Partial Public Class TaskUserGroup
	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.TaskClass")>  _
Partial Public Class TaskClass
	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.TaskList")>  _
Partial Public Class TaskList
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _SiteID As System.Nullable(Of Integer)
	
	Private _TaskName As String
	
	Private _TaskClassID As Integer
	
	Private _TaskNote As String
	
	Private _TaskPrice As Double
	
	Private _AddTime As Date
	
	Private _AddUserID As Integer
	
	Private _TaskType As Integer
	
	Private _AccepeterID As System.Nullable(Of Integer)
	
	Private _AccepeterGroupID As System.Nullable(Of Integer)
	
	Private _TaskLimit As Integer
	
	Private _ValidLimit As Integer
	
	Private _AccepetTime As System.Nullable(Of Date)
	
	Private _CompleteTime As System.Nullable(Of Date)
	
	Private _AppraisePoint As System.Nullable(Of Integer)
	
	Private _AppraiseNote As String
	
	Private _TaskState As Integer
	
	Private _Attachment As String
	
    #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 OnSiteIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnSiteIDChanged()
    End Sub
    Partial Private Sub OnTaskNameChanging(value As String)
    End Sub
    Partial Private Sub OnTaskNameChanged()
    End Sub
    Partial Private Sub OnTaskClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskClassIDChanged()
    End Sub
    Partial Private Sub OnTaskNoteChanging(value As String)
    End Sub
    Partial Private Sub OnTaskNoteChanged()
    End Sub
    Partial Private Sub OnTaskPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnTaskPriceChanged()
    End Sub
    Partial Private Sub OnAddTimeChanging(value As Date)
    End Sub
    Partial Private Sub OnAddTimeChanged()
    End Sub
    Partial Private Sub OnAddUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnAddUserIDChanged()
    End Sub
    Partial Private Sub OnTaskTypeChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskTypeChanged()
    End Sub
    Partial Private Sub OnAccepeterIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAccepeterIDChanged()
    End Sub
    Partial Private Sub OnAccepeterGroupIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAccepeterGroupIDChanged()
    End Sub
    Partial Private Sub OnTaskLimitChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskLimitChanged()
    End Sub
    Partial Private Sub OnValidLimitChanging(value As Integer)
    End Sub
    Partial Private Sub OnValidLimitChanged()
    End Sub
    Partial Private Sub OnAccepetTimeChanging(value As System.Nullable(Of Date))
    End Sub
    Partial Private Sub OnAccepetTimeChanged()
    End Sub
    Partial Private Sub OnCompleteTimeChanging(value As System.Nullable(Of Date))
    End Sub
    Partial Private Sub OnCompleteTimeChanged()
    End Sub
    Partial Private Sub OnAppraisePointChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAppraisePointChanged()
    End Sub
    Partial Private Sub OnAppraiseNoteChanging(value As String)
    End Sub
    Partial Private Sub OnAppraiseNoteChanged()
    End Sub
    Partial Private Sub OnTaskStateChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskStateChanged()
    End Sub
    Partial Private Sub OnAttachmentChanging(value As String)
    End Sub
    Partial Private Sub OnAttachmentChanged()
    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:="_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:="_TaskName", DbType:="NVarChar(50) NOT NULL", CanBeNull:=false)>  _
	Public Property TaskName() As String
		Get
			Return Me._TaskName
		End Get
		Set
			If (String.Equals(Me._TaskName, value) = false) Then
				Me.OnTaskNameChanging(value)
				Me.SendPropertyChanging
				Me._TaskName = value
				Me.SendPropertyChanged("TaskName")
				Me.OnTaskNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskClassID", DbType:="Int NOT NULL")>  _
	Public Property TaskClassID() As Integer
		Get
			Return Me._TaskClassID
		End Get
		Set
			If ((Me._TaskClassID = value)  _
						= false) Then
				Me.OnTaskClassIDChanging(value)
				Me.SendPropertyChanging
				Me._TaskClassID = value
				Me.SendPropertyChanged("TaskClassID")
				Me.OnTaskClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskNote", DbType:="NVarChar(1000)")>  _
	Public Property TaskNote() As String
		Get
			Return Me._TaskNote
		End Get
		Set
			If (String.Equals(Me._TaskNote, value) = false) Then
				Me.OnTaskNoteChanging(value)
				Me.SendPropertyChanging
				Me._TaskNote = value
				Me.SendPropertyChanged("TaskNote")
				Me.OnTaskNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskPrice", DbType:="Float NOT NULL")>  _
	Public Property TaskPrice() As Double
		Get
			Return Me._TaskPrice
		End Get
		Set
			If ((Me._TaskPrice = value)  _
						= false) Then
				Me.OnTaskPriceChanging(value)
				Me.SendPropertyChanging
				Me._TaskPrice = value
				Me.SendPropertyChanged("TaskPrice")
				Me.OnTaskPriceChanged
			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:="_AddUserID", DbType:="Int NOT NULL")>  _
	Public Property AddUserID() As Integer
		Get
			Return Me._AddUserID
		End Get
		Set
			If ((Me._AddUserID = value)  _
						= false) Then
				Me.OnAddUserIDChanging(value)
				Me.SendPropertyChanging
				Me._AddUserID = value
				Me.SendPropertyChanged("AddUserID")
				Me.OnAddUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskType", DbType:="Int NOT NULL")>  _
	Public Property TaskType() As Integer
		Get
			Return Me._TaskType
		End Get
		Set
			If ((Me._TaskType = value)  _
						= false) Then
				Me.OnTaskTypeChanging(value)
				Me.SendPropertyChanging
				Me._TaskType = value
				Me.SendPropertyChanged("TaskType")
				Me.OnTaskTypeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepeterID", DbType:="Int")>  _
	Public Property AccepeterID() As System.Nullable(Of Integer)
		Get
			Return Me._AccepeterID
		End Get
		Set
			If (Me._AccepeterID.Equals(value) = false) Then
				Me.OnAccepeterIDChanging(value)
				Me.SendPropertyChanging
				Me._AccepeterID = value
				Me.SendPropertyChanged("AccepeterID")
				Me.OnAccepeterIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepeterGroupID", DbType:="Int")>  _
	Public Property AccepeterGroupID() As System.Nullable(Of Integer)
		Get
			Return Me._AccepeterGroupID
		End Get
		Set
			If (Me._AccepeterGroupID.Equals(value) = false) Then
				Me.OnAccepeterGroupIDChanging(value)
				Me.SendPropertyChanging
				Me._AccepeterGroupID = value
				Me.SendPropertyChanged("AccepeterGroupID")
				Me.OnAccepeterGroupIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskLimit", DbType:="Int NOT NULL")>  _
	Public Property TaskLimit() As Integer
		Get
			Return Me._TaskLimit
		End Get
		Set
			If ((Me._TaskLimit = value)  _
						= false) Then
				Me.OnTaskLimitChanging(value)
				Me.SendPropertyChanging
				Me._TaskLimit = value
				Me.SendPropertyChanged("TaskLimit")
				Me.OnTaskLimitChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ValidLimit", DbType:="Int NOT NULL")>  _
	Public Property ValidLimit() As Integer
		Get
			Return Me._ValidLimit
		End Get
		Set
			If ((Me._ValidLimit = value)  _
						= false) Then
				Me.OnValidLimitChanging(value)
				Me.SendPropertyChanging
				Me._ValidLimit = value
				Me.SendPropertyChanged("ValidLimit")
				Me.OnValidLimitChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepetTime", DbType:="DateTime")>  _
	Public Property AccepetTime() As System.Nullable(Of Date)
		Get
			Return Me._AccepetTime
		End Get
		Set
			If (Me._AccepetTime.Equals(value) = false) Then
				Me.OnAccepetTimeChanging(value)
				Me.SendPropertyChanging
				Me._AccepetTime = value
				Me.SendPropertyChanged("AccepetTime")
				Me.OnAccepetTimeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_CompleteTime", DbType:="DateTime")>  _
	Public Property CompleteTime() As System.Nullable(Of Date)
		Get
			Return Me._CompleteTime
		End Get
		Set
			If (Me._CompleteTime.Equals(value) = false) Then
				Me.OnCompleteTimeChanging(value)
				Me.SendPropertyChanging
				Me._CompleteTime = value
				Me.SendPropertyChanged("CompleteTime")
				Me.OnCompleteTimeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AppraisePoint", DbType:="Int")>  _
	Public Property AppraisePoint() As System.Nullable(Of Integer)
		Get
			Return Me._AppraisePoint
		End Get
		Set
			If (Me._AppraisePoint.Equals(value) = false) Then
				Me.OnAppraisePointChanging(value)
				Me.SendPropertyChanging
				Me._AppraisePoint = value
				Me.SendPropertyChanged("AppraisePoint")
				Me.OnAppraisePointChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AppraiseNote", DbType:="NVarChar(200)")>  _
	Public Property AppraiseNote() As String
		Get
			Return Me._AppraiseNote
		End Get
		Set
			If (String.Equals(Me._AppraiseNote, value) = false) Then
				Me.OnAppraiseNoteChanging(value)
				Me.SendPropertyChanging
				Me._AppraiseNote = value
				Me.SendPropertyChanged("AppraiseNote")
				Me.OnAppraiseNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskState", DbType:="Int NOT NULL")>  _
	Public Property TaskState() As Integer
		Get
			Return Me._TaskState
		End Get
		Set
			If ((Me._TaskState = value)  _
						= false) Then
				Me.OnTaskStateChanging(value)
				Me.SendPropertyChanging
				Me._TaskState = value
				Me.SendPropertyChanged("TaskState")
				Me.OnTaskStateChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Attachment", DbType:="NVarChar(100)")>  _
	Public Property Attachment() As String
		Get
			Return Me._Attachment
		End Get
		Set
			If (String.Equals(Me._Attachment, value) = false) Then
				Me.OnAttachmentChanging(value)
				Me.SendPropertyChanging
				Me._Attachment = value
				Me.SendPropertyChanged("Attachment")
				Me.OnAttachmentChanged
			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.TaskTemplate")>  _
Partial Public Class TaskTemplate
	Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
	
	Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)
	
	Private _ID As Integer
	
	Private _SiteID As System.Nullable(Of Integer)
	
	Private _TaskName As String
	
	Private _TaskClassID As Integer
	
	Private _TaskNote As String
	
	Private _TaskPrice As Double
	
	Private _AddTime As Date
	
	Private _AddUserID As Integer
	
	Private _TaskType As Integer
	
	Private _AccepeterID As System.Nullable(Of Integer)
	
	Private _AccepeterGroupID As System.Nullable(Of Integer)
	
	Private _TaskLimit As Integer
	
	Private _ValidLimit As Integer
	
	Private _AppraisePoint As Integer
	
	Private _AppraiseNote As String
	
	Private _Attachment As String
	
	Private _ReleaseInterval As System.Nullable(Of Integer)
	
	Private _ReleaseType 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 OnIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnIDChanged()
    End Sub
    Partial Private Sub OnSiteIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnSiteIDChanged()
    End Sub
    Partial Private Sub OnTaskNameChanging(value As String)
    End Sub
    Partial Private Sub OnTaskNameChanged()
    End Sub
    Partial Private Sub OnTaskClassIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskClassIDChanged()
    End Sub
    Partial Private Sub OnTaskNoteChanging(value As String)
    End Sub
    Partial Private Sub OnTaskNoteChanged()
    End Sub
    Partial Private Sub OnTaskPriceChanging(value As Double)
    End Sub
    Partial Private Sub OnTaskPriceChanged()
    End Sub
    Partial Private Sub OnAddTimeChanging(value As Date)
    End Sub
    Partial Private Sub OnAddTimeChanged()
    End Sub
    Partial Private Sub OnAddUserIDChanging(value As Integer)
    End Sub
    Partial Private Sub OnAddUserIDChanged()
    End Sub
    Partial Private Sub OnTaskTypeChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskTypeChanged()
    End Sub
    Partial Private Sub OnAccepeterIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAccepeterIDChanged()
    End Sub
    Partial Private Sub OnAccepeterGroupIDChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnAccepeterGroupIDChanged()
    End Sub
    Partial Private Sub OnTaskLimitChanging(value As Integer)
    End Sub
    Partial Private Sub OnTaskLimitChanged()
    End Sub
    Partial Private Sub OnValidLimitChanging(value As Integer)
    End Sub
    Partial Private Sub OnValidLimitChanged()
    End Sub
    Partial Private Sub OnAppraisePointChanging(value As Integer)
    End Sub
    Partial Private Sub OnAppraisePointChanged()
    End Sub
    Partial Private Sub OnAppraiseNoteChanging(value As String)
    End Sub
    Partial Private Sub OnAppraiseNoteChanged()
    End Sub
    Partial Private Sub OnAttachmentChanging(value As String)
    End Sub
    Partial Private Sub OnAttachmentChanged()
    End Sub
    Partial Private Sub OnReleaseIntervalChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnReleaseIntervalChanged()
    End Sub
    Partial Private Sub OnReleaseTypeChanging(value As System.Nullable(Of Integer))
    End Sub
    Partial Private Sub OnReleaseTypeChanged()
    End Sub
    #End Region
	
	Public Sub New()
		MyBase.New
		OnCreated
	End Sub
	
	<Column(Storage:="_ID", DbType:="Int NOT NULL", IsPrimaryKey:=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:="_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:="_TaskName", DbType:="NVarChar(50) NOT NULL", CanBeNull:=false)>  _
	Public Property TaskName() As String
		Get
			Return Me._TaskName
		End Get
		Set
			If (String.Equals(Me._TaskName, value) = false) Then
				Me.OnTaskNameChanging(value)
				Me.SendPropertyChanging
				Me._TaskName = value
				Me.SendPropertyChanged("TaskName")
				Me.OnTaskNameChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskClassID", DbType:="Int NOT NULL")>  _
	Public Property TaskClassID() As Integer
		Get
			Return Me._TaskClassID
		End Get
		Set
			If ((Me._TaskClassID = value)  _
						= false) Then
				Me.OnTaskClassIDChanging(value)
				Me.SendPropertyChanging
				Me._TaskClassID = value
				Me.SendPropertyChanged("TaskClassID")
				Me.OnTaskClassIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskNote", DbType:="NVarChar(1000)")>  _
	Public Property TaskNote() As String
		Get
			Return Me._TaskNote
		End Get
		Set
			If (String.Equals(Me._TaskNote, value) = false) Then
				Me.OnTaskNoteChanging(value)
				Me.SendPropertyChanging
				Me._TaskNote = value
				Me.SendPropertyChanged("TaskNote")
				Me.OnTaskNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskPrice", DbType:="Float NOT NULL")>  _
	Public Property TaskPrice() As Double
		Get
			Return Me._TaskPrice
		End Get
		Set
			If ((Me._TaskPrice = value)  _
						= false) Then
				Me.OnTaskPriceChanging(value)
				Me.SendPropertyChanging
				Me._TaskPrice = value
				Me.SendPropertyChanged("TaskPrice")
				Me.OnTaskPriceChanged
			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:="_AddUserID", DbType:="Int NOT NULL")>  _
	Public Property AddUserID() As Integer
		Get
			Return Me._AddUserID
		End Get
		Set
			If ((Me._AddUserID = value)  _
						= false) Then
				Me.OnAddUserIDChanging(value)
				Me.SendPropertyChanging
				Me._AddUserID = value
				Me.SendPropertyChanged("AddUserID")
				Me.OnAddUserIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskType", DbType:="Int NOT NULL")>  _
	Public Property TaskType() As Integer
		Get
			Return Me._TaskType
		End Get
		Set
			If ((Me._TaskType = value)  _
						= false) Then
				Me.OnTaskTypeChanging(value)
				Me.SendPropertyChanging
				Me._TaskType = value
				Me.SendPropertyChanged("TaskType")
				Me.OnTaskTypeChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepeterID", DbType:="Int")>  _
	Public Property AccepeterID() As System.Nullable(Of Integer)
		Get
			Return Me._AccepeterID
		End Get
		Set
			If (Me._AccepeterID.Equals(value) = false) Then
				Me.OnAccepeterIDChanging(value)
				Me.SendPropertyChanging
				Me._AccepeterID = value
				Me.SendPropertyChanged("AccepeterID")
				Me.OnAccepeterIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AccepeterGroupID", DbType:="Int")>  _
	Public Property AccepeterGroupID() As System.Nullable(Of Integer)
		Get
			Return Me._AccepeterGroupID
		End Get
		Set
			If (Me._AccepeterGroupID.Equals(value) = false) Then
				Me.OnAccepeterGroupIDChanging(value)
				Me.SendPropertyChanging
				Me._AccepeterGroupID = value
				Me.SendPropertyChanged("AccepeterGroupID")
				Me.OnAccepeterGroupIDChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_TaskLimit", DbType:="Int NOT NULL")>  _
	Public Property TaskLimit() As Integer
		Get
			Return Me._TaskLimit
		End Get
		Set
			If ((Me._TaskLimit = value)  _
						= false) Then
				Me.OnTaskLimitChanging(value)
				Me.SendPropertyChanging
				Me._TaskLimit = value
				Me.SendPropertyChanged("TaskLimit")
				Me.OnTaskLimitChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ValidLimit", DbType:="Int NOT NULL")>  _
	Public Property ValidLimit() As Integer
		Get
			Return Me._ValidLimit
		End Get
		Set
			If ((Me._ValidLimit = value)  _
						= false) Then
				Me.OnValidLimitChanging(value)
				Me.SendPropertyChanging
				Me._ValidLimit = value
				Me.SendPropertyChanged("ValidLimit")
				Me.OnValidLimitChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AppraisePoint", AutoSync:=AutoSync.Always, DbType:="Int NOT NULL IDENTITY", IsDbGenerated:=true)>  _
	Public Property AppraisePoint() As Integer
		Get
			Return Me._AppraisePoint
		End Get
		Set
			If ((Me._AppraisePoint = value)  _
						= false) Then
				Me.OnAppraisePointChanging(value)
				Me.SendPropertyChanging
				Me._AppraisePoint = value
				Me.SendPropertyChanged("AppraisePoint")
				Me.OnAppraisePointChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_AppraiseNote", DbType:="NVarChar(200)")>  _
	Public Property AppraiseNote() As String
		Get
			Return Me._AppraiseNote
		End Get
		Set
			If (String.Equals(Me._AppraiseNote, value) = false) Then
				Me.OnAppraiseNoteChanging(value)
				Me.SendPropertyChanging
				Me._AppraiseNote = value
				Me.SendPropertyChanged("AppraiseNote")
				Me.OnAppraiseNoteChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_Attachment", DbType:="NVarChar(100)")>  _
	Public Property Attachment() As String
		Get
			Return Me._Attachment
		End Get
		Set
			If (String.Equals(Me._Attachment, value) = false) Then
				Me.OnAttachmentChanging(value)
				Me.SendPropertyChanging
				Me._Attachment = value
				Me.SendPropertyChanged("Attachment")
				Me.OnAttachmentChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ReleaseInterval", DbType:="Int")>  _
	Public Property ReleaseInterval() As System.Nullable(Of Integer)
		Get
			Return Me._ReleaseInterval
		End Get
		Set
			If (Me._ReleaseInterval.Equals(value) = false) Then
				Me.OnReleaseIntervalChanging(value)
				Me.SendPropertyChanging
				Me._ReleaseInterval = value
				Me.SendPropertyChanged("ReleaseInterval")
				Me.OnReleaseIntervalChanged
			End If
		End Set
	End Property
	
	<Column(Storage:="_ReleaseType", DbType:="Int")>  _
	Public Property ReleaseType() As System.Nullable(Of Integer)
		Get
			Return Me._ReleaseType
		End Get
		Set
			If (Me._ReleaseType.Equals(value) = false) Then
				Me.OnReleaseTypeChanging(value)
				Me.SendPropertyChanging
				Me._ReleaseType = value
				Me.SendPropertyChanged("ReleaseType")
				Me.OnReleaseTypeChanged
			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
