'------------------------------------------------------------------------------
' <auto-generated>
'     Dieser Code wurde von einem Tool generiert.
'     Laufzeitversion:2.0.50727.4927
'
'     Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
'     der Code erneut generiert wird.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

<Assembly: Global.System.Data.Objects.DataClasses.EdmSchemaAttribute("5e95eaeb-0c72-4459-8288-c1f607946c1d"),  _
 Assembly: Global.System.Data.Objects.DataClasses.EdmRelationshipAttribute("NordwindModel", "FK_Order_Details_Orders", "Orders", Global.System.Data.Metadata.Edm.RelationshipMultiplicity.One, GetType(Orders), "Order_Details", Global.System.Data.Metadata.Edm.RelationshipMultiplicity.Many, GetType(Order_Details)),  _
 Assembly: Global.System.Data.Objects.DataClasses.EdmRelationshipAttribute("NordwindModel", "FK_Order_Details_Products", "Products", Global.System.Data.Metadata.Edm.RelationshipMultiplicity.One, GetType(Products), "Order_Details", Global.System.Data.Metadata.Edm.RelationshipMultiplicity.Many, GetType(Order_Details))> 

'Name der Ursprungsdatei:
'Erstellungsdatum: 27.02.2010 12:05:05
'''<summary>
'''Es gibt keine Kommentare für NordwindEntities im Schema.
'''</summary>
Partial Public Class NordwindEntities
    Inherits Global.System.Data.Objects.ObjectContext
    '''<summary>
    '''Initialisiert ein neues NordwindEntities-Objekt mithilfe der in Abschnitt 'NordwindEntities' der Anwendungskonfigurationsdatei gefundenen Verbindungszeichenfolge.
    '''</summary>
    Public Sub New()
        MyBase.New("name=NordwindEntities", "NordwindEntities")
        Me.OnContextCreated
    End Sub
    '''<summary>
    '''Initialisiert ein neues NordwindEntities-Objekt.
    '''</summary>
    Public Sub New(ByVal connectionString As String)
        MyBase.New(connectionString, "NordwindEntities")
        Me.OnContextCreated
    End Sub
    '''<summary>
    '''Initialisiert ein neues NordwindEntities-Objekt.
    '''</summary>
    Public Sub New(ByVal connection As Global.System.Data.EntityClient.EntityConnection)
        MyBase.New(connection, "NordwindEntities")
        Me.OnContextCreated
    End Sub
    Partial Private Sub OnContextCreated()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Order_Details im Schema.
    '''</summary>
    Public ReadOnly Property Order_Details() As Global.System.Data.Objects.ObjectQuery(Of Order_Details)
        Get
            If (Me._Order_Details Is Nothing) Then
                Me._Order_Details = MyBase.CreateQuery(Of Order_Details)("[Order_Details]")
            End If
            Return Me._Order_Details
        End Get
    End Property
    Private _Order_Details As Global.System.Data.Objects.ObjectQuery(Of Order_Details)
    '''<summary>
    '''Es gibt keine Kommentare für Orders im Schema.
    '''</summary>
    Public ReadOnly Property Orders() As Global.System.Data.Objects.ObjectQuery(Of Orders)
        Get
            If (Me._Orders Is Nothing) Then
                Me._Orders = MyBase.CreateQuery(Of Orders)("[Orders]")
            End If
            Return Me._Orders
        End Get
    End Property
    Private _Orders As Global.System.Data.Objects.ObjectQuery(Of Orders)
    '''<summary>
    '''Es gibt keine Kommentare für Products im Schema.
    '''</summary>
    Public ReadOnly Property Products() As Global.System.Data.Objects.ObjectQuery(Of Products)
        Get
            If (Me._Products Is Nothing) Then
                Me._Products = MyBase.CreateQuery(Of Products)("[Products]")
            End If
            Return Me._Products
        End Get
    End Property
    Private _Products As Global.System.Data.Objects.ObjectQuery(Of Products)
    '''<summary>
    '''Es gibt keine Kommentare für Order_Details im Schema.
    '''</summary>
    Public Sub AddToOrder_Details(ByVal order_Details As Order_Details)
        MyBase.AddObject("Order_Details", order_Details)
    End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Orders im Schema.
    '''</summary>
    Public Sub AddToOrders(ByVal orders As Orders)
        MyBase.AddObject("Orders", orders)
    End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Products im Schema.
    '''</summary>
    Public Sub AddToProducts(ByVal products As Products)
        MyBase.AddObject("Products", products)
    End Sub
End Class
'''<summary>
'''Es gibt keine Kommentare für NordwindModel.Order_Details im Schema.
'''</summary>
'''<KeyProperties>
'''OrderID
'''ProductID
'''</KeyProperties>
<Global.System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName:="NordwindModel", Name:="Order_Details"),  _
 Global.System.Runtime.Serialization.DataContractAttribute(IsReference:=true),  _
 Global.System.Serializable()>  _
Partial Public Class Order_Details
    Inherits Global.System.Data.Objects.DataClasses.EntityObject
    '''<summary>
    '''Erstellt ein neues Order_Details-Objekt.
    '''</summary>
    '''<param name="discount">Anfangswert von Discount.</param>
    '''<param name="orderID">Anfangswert von OrderID.</param>
    '''<param name="productID">Anfangswert von ProductID.</param>
    '''<param name="quantity">Anfangswert von Quantity.</param>
    '''<param name="unitPrice">Anfangswert von UnitPrice.</param>
    Public Shared Function CreateOrder_Details(ByVal discount As Single, ByVal orderID As Integer, ByVal productID As Integer, ByVal quantity As Short, ByVal unitPrice As Decimal) As Order_Details
        Dim order_Details As Order_Details = New Order_Details
        order_Details.Discount = discount
        order_Details.OrderID = orderID
        order_Details.ProductID = productID
        order_Details.Quantity = quantity
        order_Details.UnitPrice = unitPrice
        Return order_Details
    End Function
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft Discount im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Discount() As Single
        Get
            Return Me._Discount
        End Get
        Set
            Me.OnDiscountChanging(value)
            Me.ReportPropertyChanging("Discount")
            Me._Discount = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("Discount")
            Me.OnDiscountChanged
        End Set
    End Property
    Private _Discount As Single
    Partial Private Sub OnDiscountChanging(ByVal value As Single)
        End Sub
    Partial Private Sub OnDiscountChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft OrderID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty:=true, IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property OrderID() As Integer
        Get
            Return Me._OrderID
        End Get
        Set
            Me.OnOrderIDChanging(value)
            Me.ReportPropertyChanging("OrderID")
            Me._OrderID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("OrderID")
            Me.OnOrderIDChanged
        End Set
    End Property
    Private _OrderID As Integer
    Partial Private Sub OnOrderIDChanging(ByVal value As Integer)
        End Sub
    Partial Private Sub OnOrderIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ProductID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty:=true, IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ProductID() As Integer
        Get
            Return Me._ProductID
        End Get
        Set
            Me.OnProductIDChanging(value)
            Me.ReportPropertyChanging("ProductID")
            Me._ProductID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("ProductID")
            Me.OnProductIDChanged
        End Set
    End Property
    Private _ProductID As Integer
    Partial Private Sub OnProductIDChanging(ByVal value As Integer)
        End Sub
    Partial Private Sub OnProductIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft Quantity im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Quantity() As Short
        Get
            Return Me._Quantity
        End Get
        Set
            Me.OnQuantityChanging(value)
            Me.ReportPropertyChanging("Quantity")
            Me._Quantity = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("Quantity")
            Me.OnQuantityChanged
        End Set
    End Property
    Private _Quantity As Short
    Partial Private Sub OnQuantityChanging(ByVal value As Short)
        End Sub
    Partial Private Sub OnQuantityChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft UnitPrice im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property UnitPrice() As Decimal
        Get
            Return Me._UnitPrice
        End Get
        Set
            Me.OnUnitPriceChanging(value)
            Me.ReportPropertyChanging("UnitPrice")
            Me._UnitPrice = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("UnitPrice")
            Me.OnUnitPriceChanged
        End Set
    End Property
    Private _UnitPrice As Decimal
    Partial Private Sub OnUnitPriceChanging(ByVal value As Decimal)
        End Sub
    Partial Private Sub OnUnitPriceChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Orders im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NordwindModel", "FK_Order_Details_Orders", "Orders"),  _
     Global.System.Xml.Serialization.XmlIgnoreAttribute(),  _
     Global.System.Xml.Serialization.SoapIgnoreAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Orders() As Orders
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Orders)("NordwindModel.FK_Order_Details_Orders", "Orders").Value
        End Get
        Set
            CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Orders)("NordwindModel.FK_Order_Details_Orders", "Orders").Value = value
        End Set
    End Property
    '''<summary>
    '''Es gibt keine Kommentare für Orders im Schema.
    '''</summary>
    <Global.System.ComponentModel.BrowsableAttribute(false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property OrdersReference() As Global.System.Data.Objects.DataClasses.EntityReference(Of Orders)
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Orders)("NordwindModel.FK_Order_Details_Orders", "Orders")
        End Get
        Set
            If (Not (value) Is Nothing) Then
                CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.InitializeRelatedReference(Of Orders)("NordwindModel.FK_Order_Details_Orders", "Orders", value)
            End If
        End Set
    End Property
    '''<summary>
    '''Es gibt keine Kommentare für Products im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NordwindModel", "FK_Order_Details_Products", "Products"),  _
     Global.System.Xml.Serialization.XmlIgnoreAttribute(),  _
     Global.System.Xml.Serialization.SoapIgnoreAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Products() As Products
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Products)("NordwindModel.FK_Order_Details_Products", "Products").Value
        End Get
        Set
            CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Products)("NordwindModel.FK_Order_Details_Products", "Products").Value = value
        End Set
    End Property
    '''<summary>
    '''Es gibt keine Kommentare für Products im Schema.
    '''</summary>
    <Global.System.ComponentModel.BrowsableAttribute(false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ProductsReference() As Global.System.Data.Objects.DataClasses.EntityReference(Of Products)
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedReference(Of Products)("NordwindModel.FK_Order_Details_Products", "Products")
        End Get
        Set
            If (Not (value) Is Nothing) Then
                CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.InitializeRelatedReference(Of Products)("NordwindModel.FK_Order_Details_Products", "Products", value)
            End If
        End Set
    End Property
End Class
'''<summary>
'''Es gibt keine Kommentare für NordwindModel.Orders im Schema.
'''</summary>
'''<KeyProperties>
'''OrderID
'''</KeyProperties>
<Global.System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName:="NordwindModel", Name:="Orders"),  _
 Global.System.Runtime.Serialization.DataContractAttribute(IsReference:=true),  _
 Global.System.Serializable()>  _
Partial Public Class Orders
    Inherits Global.System.Data.Objects.DataClasses.EntityObject
    '''<summary>
    '''Erstellt ein neues Orders-Objekt.
    '''</summary>
    '''<param name="orderID">Anfangswert von OrderID.</param>
    Public Shared Function CreateOrders(ByVal orderID As Integer) As Orders
        Dim orders As Orders = New Orders
        orders.OrderID = orderID
        Return orders
    End Function
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft CustomerID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property CustomerID() As String
        Get
            Return Me._CustomerID
        End Get
        Set
            Me.OnCustomerIDChanging(value)
            Me.ReportPropertyChanging("CustomerID")
            Me._CustomerID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("CustomerID")
            Me.OnCustomerIDChanged
        End Set
    End Property
    Private _CustomerID As String
    Partial Private Sub OnCustomerIDChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnCustomerIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft EmployeeID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property EmployeeID() As Global.System.Nullable(Of Integer)
        Get
            Return Me._EmployeeID
        End Get
        Set
            Me.OnEmployeeIDChanging(value)
            Me.ReportPropertyChanging("EmployeeID")
            Me._EmployeeID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("EmployeeID")
            Me.OnEmployeeIDChanged
        End Set
    End Property
    Private _EmployeeID As Global.System.Nullable(Of Integer)
    Partial Private Sub OnEmployeeIDChanging(ByVal value As Global.System.Nullable(Of Integer))
        End Sub
    Partial Private Sub OnEmployeeIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft Freight im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Freight() As Global.System.Nullable(Of Decimal)
        Get
            Return Me._Freight
        End Get
        Set
            Me.OnFreightChanging(value)
            Me.ReportPropertyChanging("Freight")
            Me._Freight = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("Freight")
            Me.OnFreightChanged
        End Set
    End Property
    Private _Freight As Global.System.Nullable(Of Decimal)
    Partial Private Sub OnFreightChanging(ByVal value As Global.System.Nullable(Of Decimal))
        End Sub
    Partial Private Sub OnFreightChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft OrderDate im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property OrderDate() As Global.System.Nullable(Of Date)
        Get
            Return Me._OrderDate
        End Get
        Set
            Me.OnOrderDateChanging(value)
            Me.ReportPropertyChanging("OrderDate")
            Me._OrderDate = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("OrderDate")
            Me.OnOrderDateChanged
        End Set
    End Property
    Private _OrderDate As Global.System.Nullable(Of Date)
    Partial Private Sub OnOrderDateChanging(ByVal value As Global.System.Nullable(Of Date))
        End Sub
    Partial Private Sub OnOrderDateChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft OrderID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty:=true, IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property OrderID() As Integer
        Get
            Return Me._OrderID
        End Get
        Set
            Me.OnOrderIDChanging(value)
            Me.ReportPropertyChanging("OrderID")
            Me._OrderID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("OrderID")
            Me.OnOrderIDChanged
        End Set
    End Property
    Private _OrderID As Integer
    Partial Private Sub OnOrderIDChanging(ByVal value As Integer)
        End Sub
    Partial Private Sub OnOrderIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft RequiredDate im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property RequiredDate() As Global.System.Nullable(Of Date)
        Get
            Return Me._RequiredDate
        End Get
        Set
            Me.OnRequiredDateChanging(value)
            Me.ReportPropertyChanging("RequiredDate")
            Me._RequiredDate = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("RequiredDate")
            Me.OnRequiredDateChanged
        End Set
    End Property
    Private _RequiredDate As Global.System.Nullable(Of Date)
    Partial Private Sub OnRequiredDateChanging(ByVal value As Global.System.Nullable(Of Date))
        End Sub
    Partial Private Sub OnRequiredDateChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipAddress im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipAddress() As String
        Get
            Return Me._ShipAddress
        End Get
        Set
            Me.OnShipAddressChanging(value)
            Me.ReportPropertyChanging("ShipAddress")
            Me._ShipAddress = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipAddress")
            Me.OnShipAddressChanged
        End Set
    End Property
    Private _ShipAddress As String
    Partial Private Sub OnShipAddressChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipAddressChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipCity im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipCity() As String
        Get
            Return Me._ShipCity
        End Get
        Set
            Me.OnShipCityChanging(value)
            Me.ReportPropertyChanging("ShipCity")
            Me._ShipCity = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipCity")
            Me.OnShipCityChanged
        End Set
    End Property
    Private _ShipCity As String
    Partial Private Sub OnShipCityChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipCityChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipCountry im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipCountry() As String
        Get
            Return Me._ShipCountry
        End Get
        Set
            Me.OnShipCountryChanging(value)
            Me.ReportPropertyChanging("ShipCountry")
            Me._ShipCountry = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipCountry")
            Me.OnShipCountryChanged
        End Set
    End Property
    Private _ShipCountry As String
    Partial Private Sub OnShipCountryChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipCountryChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipName im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipName() As String
        Get
            Return Me._ShipName
        End Get
        Set
            Me.OnShipNameChanging(value)
            Me.ReportPropertyChanging("ShipName")
            Me._ShipName = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipName")
            Me.OnShipNameChanged
        End Set
    End Property
    Private _ShipName As String
    Partial Private Sub OnShipNameChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipNameChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShippedDate im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShippedDate() As Global.System.Nullable(Of Date)
        Get
            Return Me._ShippedDate
        End Get
        Set
            Me.OnShippedDateChanging(value)
            Me.ReportPropertyChanging("ShippedDate")
            Me._ShippedDate = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("ShippedDate")
            Me.OnShippedDateChanged
        End Set
    End Property
    Private _ShippedDate As Global.System.Nullable(Of Date)
    Partial Private Sub OnShippedDateChanging(ByVal value As Global.System.Nullable(Of Date))
        End Sub
    Partial Private Sub OnShippedDateChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipPostalCode im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipPostalCode() As String
        Get
            Return Me._ShipPostalCode
        End Get
        Set
            Me.OnShipPostalCodeChanging(value)
            Me.ReportPropertyChanging("ShipPostalCode")
            Me._ShipPostalCode = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipPostalCode")
            Me.OnShipPostalCodeChanged
        End Set
    End Property
    Private _ShipPostalCode As String
    Partial Private Sub OnShipPostalCodeChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipPostalCodeChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipRegion im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipRegion() As String
        Get
            Return Me._ShipRegion
        End Get
        Set
            Me.OnShipRegionChanging(value)
            Me.ReportPropertyChanging("ShipRegion")
            Me._ShipRegion = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("ShipRegion")
            Me.OnShipRegionChanged
        End Set
    End Property
    Private _ShipRegion As String
    Partial Private Sub OnShipRegionChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnShipRegionChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ShipVia im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ShipVia() As Global.System.Nullable(Of Integer)
        Get
            Return Me._ShipVia
        End Get
        Set
            Me.OnShipViaChanging(value)
            Me.ReportPropertyChanging("ShipVia")
            Me._ShipVia = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("ShipVia")
            Me.OnShipViaChanged
        End Set
    End Property
    Private _ShipVia As Global.System.Nullable(Of Integer)
    Partial Private Sub OnShipViaChanging(ByVal value As Global.System.Nullable(Of Integer))
        End Sub
    Partial Private Sub OnShipViaChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Order_Details im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NordwindModel", "FK_Order_Details_Orders", "Order_Details"),  _
     Global.System.Xml.Serialization.XmlIgnoreAttribute(),  _
     Global.System.Xml.Serialization.SoapIgnoreAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Order_Details() As Global.System.Data.Objects.DataClasses.EntityCollection(Of Order_Details)
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedCollection(Of Order_Details)("NordwindModel.FK_Order_Details_Orders", "Order_Details")
        End Get
        Set
            If (Not (value) Is Nothing) Then
                CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.InitializeRelatedCollection(Of Order_Details)("NordwindModel.FK_Order_Details_Orders", "Order_Details", value)
            End If
        End Set
    End Property
End Class
'''<summary>
'''Es gibt keine Kommentare für NordwindModel.Products im Schema.
'''</summary>
'''<KeyProperties>
'''ProductID
'''</KeyProperties>
<Global.System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName:="NordwindModel", Name:="Products"),  _
 Global.System.Runtime.Serialization.DataContractAttribute(IsReference:=true),  _
 Global.System.Serializable()>  _
Partial Public Class Products
    Inherits Global.System.Data.Objects.DataClasses.EntityObject
    '''<summary>
    '''Erstellt ein neues Products-Objekt.
    '''</summary>
    '''<param name="discontinued">Anfangswert von Discontinued.</param>
    '''<param name="productID">Anfangswert von ProductID.</param>
    '''<param name="productName">Anfangswert von ProductName.</param>
    Public Shared Function CreateProducts(ByVal discontinued As Boolean, ByVal productID As Integer, ByVal productName As String) As Products
        Dim products As Products = New Products
        products.Discontinued = discontinued
        products.ProductID = productID
        products.ProductName = productName
        Return products
    End Function
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft CategoryID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property CategoryID() As Global.System.Nullable(Of Integer)
        Get
            Return Me._CategoryID
        End Get
        Set
            Me.OnCategoryIDChanging(value)
            Me.ReportPropertyChanging("CategoryID")
            Me._CategoryID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("CategoryID")
            Me.OnCategoryIDChanged
        End Set
    End Property
    Private _CategoryID As Global.System.Nullable(Of Integer)
    Partial Private Sub OnCategoryIDChanging(ByVal value As Global.System.Nullable(Of Integer))
        End Sub
    Partial Private Sub OnCategoryIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft Discontinued im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Discontinued() As Boolean
        Get
            Return Me._Discontinued
        End Get
        Set
            Me.OnDiscontinuedChanging(value)
            Me.ReportPropertyChanging("Discontinued")
            Me._Discontinued = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("Discontinued")
            Me.OnDiscontinuedChanged
        End Set
    End Property
    Private _Discontinued As Boolean
    Partial Private Sub OnDiscontinuedChanging(ByVal value As Boolean)
        End Sub
    Partial Private Sub OnDiscontinuedChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ProductID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty:=true, IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ProductID() As Integer
        Get
            Return Me._ProductID
        End Get
        Set
            Me.OnProductIDChanging(value)
            Me.ReportPropertyChanging("ProductID")
            Me._ProductID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("ProductID")
            Me.OnProductIDChanged
        End Set
    End Property
    Private _ProductID As Integer
    Partial Private Sub OnProductIDChanging(ByVal value As Integer)
        End Sub
    Partial Private Sub OnProductIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ProductName im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable:=false),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ProductName() As String
        Get
            Return Me._ProductName
        End Get
        Set
            Me.OnProductNameChanging(value)
            Me.ReportPropertyChanging("ProductName")
            Me._ProductName = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false)
            Me.ReportPropertyChanged("ProductName")
            Me.OnProductNameChanged
        End Set
    End Property
    Private _ProductName As String
    Partial Private Sub OnProductNameChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnProductNameChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft QuantityPerUnit im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property QuantityPerUnit() As String
        Get
            Return Me._QuantityPerUnit
        End Get
        Set
            Me.OnQuantityPerUnitChanging(value)
            Me.ReportPropertyChanging("QuantityPerUnit")
            Me._QuantityPerUnit = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true)
            Me.ReportPropertyChanged("QuantityPerUnit")
            Me.OnQuantityPerUnitChanged
        End Set
    End Property
    Private _QuantityPerUnit As String
    Partial Private Sub OnQuantityPerUnitChanging(ByVal value As String)
        End Sub
    Partial Private Sub OnQuantityPerUnitChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft ReorderLevel im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property ReorderLevel() As Global.System.Nullable(Of Short)
        Get
            Return Me._ReorderLevel
        End Get
        Set
            Me.OnReorderLevelChanging(value)
            Me.ReportPropertyChanging("ReorderLevel")
            Me._ReorderLevel = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("ReorderLevel")
            Me.OnReorderLevelChanged
        End Set
    End Property
    Private _ReorderLevel As Global.System.Nullable(Of Short)
    Partial Private Sub OnReorderLevelChanging(ByVal value As Global.System.Nullable(Of Short))
        End Sub
    Partial Private Sub OnReorderLevelChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft SupplierID im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property SupplierID() As Global.System.Nullable(Of Integer)
        Get
            Return Me._SupplierID
        End Get
        Set
            Me.OnSupplierIDChanging(value)
            Me.ReportPropertyChanging("SupplierID")
            Me._SupplierID = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("SupplierID")
            Me.OnSupplierIDChanged
        End Set
    End Property
    Private _SupplierID As Global.System.Nullable(Of Integer)
    Partial Private Sub OnSupplierIDChanging(ByVal value As Global.System.Nullable(Of Integer))
        End Sub
    Partial Private Sub OnSupplierIDChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft UnitPrice im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property UnitPrice() As Global.System.Nullable(Of Decimal)
        Get
            Return Me._UnitPrice
        End Get
        Set
            Me.OnUnitPriceChanging(value)
            Me.ReportPropertyChanging("UnitPrice")
            Me._UnitPrice = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("UnitPrice")
            Me.OnUnitPriceChanged
        End Set
    End Property
    Private _UnitPrice As Global.System.Nullable(Of Decimal)
    Partial Private Sub OnUnitPriceChanging(ByVal value As Global.System.Nullable(Of Decimal))
        End Sub
    Partial Private Sub OnUnitPriceChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft UnitsInStock im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property UnitsInStock() As Global.System.Nullable(Of Short)
        Get
            Return Me._UnitsInStock
        End Get
        Set
            Me.OnUnitsInStockChanging(value)
            Me.ReportPropertyChanging("UnitsInStock")
            Me._UnitsInStock = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("UnitsInStock")
            Me.OnUnitsInStockChanged
        End Set
    End Property
    Private _UnitsInStock As Global.System.Nullable(Of Short)
    Partial Private Sub OnUnitsInStockChanging(ByVal value As Global.System.Nullable(Of Short))
        End Sub
    Partial Private Sub OnUnitsInStockChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Eigenschaft UnitsOnOrder im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property UnitsOnOrder() As Global.System.Nullable(Of Short)
        Get
            Return Me._UnitsOnOrder
        End Get
        Set
            Me.OnUnitsOnOrderChanging(value)
            Me.ReportPropertyChanging("UnitsOnOrder")
            Me._UnitsOnOrder = Global.System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value)
            Me.ReportPropertyChanged("UnitsOnOrder")
            Me.OnUnitsOnOrderChanged
        End Set
    End Property
    Private _UnitsOnOrder As Global.System.Nullable(Of Short)
    Partial Private Sub OnUnitsOnOrderChanging(ByVal value As Global.System.Nullable(Of Short))
        End Sub
    Partial Private Sub OnUnitsOnOrderChanged()
        End Sub
    '''<summary>
    '''Es gibt keine Kommentare für Order_Details im Schema.
    '''</summary>
    <Global.System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NordwindModel", "FK_Order_Details_Products", "Order_Details"),  _
     Global.System.Xml.Serialization.XmlIgnoreAttribute(),  _
     Global.System.Xml.Serialization.SoapIgnoreAttribute(),  _
     Global.System.Runtime.Serialization.DataMemberAttribute()>  _
    Public Property Order_Details() As Global.System.Data.Objects.DataClasses.EntityCollection(Of Order_Details)
        Get
            Return CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.GetRelatedCollection(Of Order_Details)("NordwindModel.FK_Order_Details_Products", "Order_Details")
        End Get
        Set
            If (Not (value) Is Nothing) Then
                CType(Me,Global.System.Data.Objects.DataClasses.IEntityWithRelationships).RelationshipManager.InitializeRelatedCollection(Of Order_Details)("NordwindModel.FK_Order_Details_Products", "Order_Details", value)
            End If
        End Set
    End Property
End Class
