'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.1433
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </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:="MAN_DREP")>  _
Partial Public Class DataClassesDataContext
	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
  #End Region
	
	Public Sub New()
		MyBase.New(Global.System.Configuration.ConfigurationManager.ConnectionStrings("MAN_DREPConnectionString").ConnectionString, 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 problems_tables() As System.Data.Linq.Table(Of problems_table)
		Get
			Return Me.GetTable(Of problems_table)
		End Get
	End Property
End Class

<Table(Name:="dbo.problems_table")>  _
Partial Public Class problems_table
	
	Private _niin As String
	
	Private _P_N As String
	
	Private _TMS As String
	
	Private _Forecast As String
	
	Private _Cont_forecast As String
	
	Private _Act_FD As System.Nullable(Of Double)
	
	Private _AWP_F As System.Nullable(Of Double)
	
	Private _Contract_OWO As System.Nullable(Of Integer)
	
	Private _Parts_Problem As String
	
	Private _Other As String
	
	Private _Cont_Prod As System.Nullable(Of Double)
	
	Private _Equip_1 As String
	
	Private _Equip_2 As String
	
	Private _Equip_3 As String
	
	Private _Equip_4 As String
	
	Private _Equip_5 As String
	
	Private _Equip_6 As String
	
	Private _Personnel As String
	
	Private _contract_cri As System.Nullable(Of Integer)
	
	Private _I_S As String
	
	Private _Awp_G As System.Nullable(Of Integer)
	
	Private _AWP_Days As System.Nullable(Of Integer)
	
	Private _SSMA_TimeStamp As System.Data.Linq.Binary
	
	Public Sub New()
		MyBase.New
	End Sub
	
	<Column(Storage:="_niin", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property niin() As String
		Get
			Return Me._niin
		End Get
		Set
			If (String.Equals(Me._niin, value) = false) Then
				Me._niin = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_P_N", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property P_N() As String
		Get
			Return Me._P_N
		End Get
		Set
			If (String.Equals(Me._P_N, value) = false) Then
				Me._P_N = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_TMS", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property TMS() As String
		Get
			Return Me._TMS
		End Get
		Set
			If (String.Equals(Me._TMS, value) = false) Then
				Me._TMS = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Forecast", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Forecast() As String
		Get
			Return Me._Forecast
		End Get
		Set
			If (String.Equals(Me._Forecast, value) = false) Then
				Me._Forecast = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Cont_forecast", DbType:="NVarChar(50)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Cont_forecast() As String
		Get
			Return Me._Cont_forecast
		End Get
		Set
			If (String.Equals(Me._Cont_forecast, value) = false) Then
				Me._Cont_forecast = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Act_FD", DbType:="Float", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Act_FD() As System.Nullable(Of Double)
		Get
			Return Me._Act_FD
		End Get
		Set
			If (Me._Act_FD.Equals(value) = false) Then
				Me._Act_FD = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_AWP_F", DbType:="Float", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property AWP_F() As System.Nullable(Of Double)
		Get
			Return Me._AWP_F
		End Get
		Set
			If (Me._AWP_F.Equals(value) = false) Then
				Me._AWP_F = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Contract_OWO", DbType:="Int", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Contract_OWO() As System.Nullable(Of Integer)
		Get
			Return Me._Contract_OWO
		End Get
		Set
			If (Me._Contract_OWO.Equals(value) = false) Then
				Me._Contract_OWO = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Parts Problem]", Storage:="_Parts_Problem", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Parts_Problem() As String
		Get
			Return Me._Parts_Problem
		End Get
		Set
			If (String.Equals(Me._Parts_Problem, value) = false) Then
				Me._Parts_Problem = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Other", DbType:="NVarChar(MAX)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Other() As String
		Get
			Return Me._Other
		End Get
		Set
			If (String.Equals(Me._Other, value) = false) Then
				Me._Other = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Cont_Prod", DbType:="Float", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Cont_Prod() As System.Nullable(Of Double)
		Get
			Return Me._Cont_Prod
		End Get
		Set
			If (Me._Cont_Prod.Equals(value) = false) Then
				Me._Cont_Prod = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 1]", Storage:="_Equip_1", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_1() As String
		Get
			Return Me._Equip_1
		End Get
		Set
			If (String.Equals(Me._Equip_1, value) = false) Then
				Me._Equip_1 = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 2]", Storage:="_Equip_2", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_2() As String
		Get
			Return Me._Equip_2
		End Get
		Set
			If (String.Equals(Me._Equip_2, value) = false) Then
				Me._Equip_2 = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 3]", Storage:="_Equip_3", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_3() As String
		Get
			Return Me._Equip_3
		End Get
		Set
			If (String.Equals(Me._Equip_3, value) = false) Then
				Me._Equip_3 = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 4]", Storage:="_Equip_4", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_4() As String
		Get
			Return Me._Equip_4
		End Get
		Set
			If (String.Equals(Me._Equip_4, value) = false) Then
				Me._Equip_4 = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 5]", Storage:="_Equip_5", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_5() As String
		Get
			Return Me._Equip_5
		End Get
		Set
			If (String.Equals(Me._Equip_5, value) = false) Then
				Me._Equip_5 = value
			End If
		End Set
	End Property
	
	<Column(Name:="[Equip 6]", Storage:="_Equip_6", DbType:="NVarChar(255)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Equip_6() As String
		Get
			Return Me._Equip_6
		End Get
		Set
			If (String.Equals(Me._Equip_6, value) = false) Then
				Me._Equip_6 = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Personnel", DbType:="NVarChar(50)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Personnel() As String
		Get
			Return Me._Personnel
		End Get
		Set
			If (String.Equals(Me._Personnel, value) = false) Then
				Me._Personnel = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_contract_cri", DbType:="Int", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property contract_cri() As System.Nullable(Of Integer)
		Get
			Return Me._contract_cri
		End Get
		Set
			If (Me._contract_cri.Equals(value) = false) Then
				Me._contract_cri = value
			End If
		End Set
	End Property
	
	<Column(Name:="[I&S]", Storage:="_I_S", DbType:="NVarChar(150)", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property I_S() As String
		Get
			Return Me._I_S
		End Get
		Set
			If (String.Equals(Me._I_S, value) = false) Then
				Me._I_S = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_Awp_G", DbType:="Int", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property Awp_G() As System.Nullable(Of Integer)
		Get
			Return Me._Awp_G
		End Get
		Set
			If (Me._Awp_G.Equals(value) = false) Then
				Me._Awp_G = value
			End If
		End Set
	End Property
	
	<Column(Name:="[AWP Days]", Storage:="_AWP_Days", DbType:="Int", UpdateCheck:=UpdateCheck.Never)>  _
	Public Property AWP_Days() As System.Nullable(Of Integer)
		Get
			Return Me._AWP_Days
		End Get
		Set
			If (Me._AWP_Days.Equals(value) = false) Then
				Me._AWP_Days = value
			End If
		End Set
	End Property
	
	<Column(Storage:="_SSMA_TimeStamp", AutoSync:=AutoSync.Always, DbType:="rowversion NOT NULL", CanBeNull:=false, IsDbGenerated:=true, IsVersion:=true, UpdateCheck:=UpdateCheck.Never)>  _
	Public Property SSMA_TimeStamp() As System.Data.Linq.Binary
		Get
			Return Me._SSMA_TimeStamp
		End Get
		Set
			If (Object.Equals(Me._SSMA_TimeStamp, value) = false) Then
				Me._SSMA_TimeStamp = value
			End If
		End Set
	End Property
End Class
