//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.3074 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ [assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Customers", "Customers", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Org.TechA.Data.Dsl.Customer), "Orders", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Org.TechA.Data.Dsl.Order))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Org.TechA.Data.Dsl.Order), "Order_Details", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Org.TechA.Data.Dsl.OrderLine))] // Original file name: // Generation date: 20/05/2009 10:28:12 PM namespace Org.TechA.Data.Dsl { /// /// There are no comments for NorthwindEntities in the schema. /// public partial class NorthwindEntities : global::System.Data.Objects.ObjectContext { /// /// Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application configuration file. /// public NorthwindEntities() : base("name=NorthwindEntities", "NorthwindEntities") { this.OnContextCreated(); } /// /// Initialize a new NorthwindEntities object. /// public NorthwindEntities(string connectionString) : base(connectionString, "NorthwindEntities") { this.OnContextCreated(); } /// /// Initialize a new NorthwindEntities object. /// public NorthwindEntities(global::System.Data.EntityClient.EntityConnection connection) : base(connection, "NorthwindEntities") { this.OnContextCreated(); } partial void OnContextCreated(); /// /// There are no comments for Customers in the schema. /// public global::System.Data.Objects.ObjectQuery Customers { get { if ((this._Customers == null)) { this._Customers = base.CreateQuery("[Customers]"); } return this._Customers; } } private global::System.Data.Objects.ObjectQuery _Customers; /// /// There are no comments for OrderLineSet in the schema. /// public global::System.Data.Objects.ObjectQuery OrderLineSet { get { if ((this._OrderLineSet == null)) { this._OrderLineSet = base.CreateQuery("[OrderLineSet]"); } return this._OrderLineSet; } } private global::System.Data.Objects.ObjectQuery _OrderLineSet; /// /// There are no comments for OrderSet in the schema. /// public global::System.Data.Objects.ObjectQuery OrderSet { get { if ((this._OrderSet == null)) { this._OrderSet = base.CreateQuery("[OrderSet]"); } return this._OrderSet; } } private global::System.Data.Objects.ObjectQuery _OrderSet; /// /// There are no comments for Customers in the schema. /// public void AddToCustomers(Customer customer) { base.AddObject("Customers", customer); } /// /// There are no comments for OrderLineSet in the schema. /// public void AddToOrderLineSet(OrderLine orderLine) { base.AddObject("OrderLineSet", orderLine); } /// /// There are no comments for OrderSet in the schema. /// public void AddToOrderSet(Order order) { base.AddObject("OrderSet", order); } } /// /// There are no comments for NorthwindModel.Customer in the schema. /// /// /// CustomerID /// [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Customer")] [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] [global::System.Serializable()] public partial class Customer : global::System.Data.Objects.DataClasses.EntityObject { /// /// Create a new Customer object. /// /// Initial value of CompanyName. /// Initial value of CustomerID. public static Customer CreateCustomer(string companyName, string customerID) { Customer customer = new Customer(); customer.CompanyName = companyName; customer.CustomerID = customerID; return customer; } /// /// There are no comments for Property Address in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string Address { get { return this._Address; } set { this.OnAddressChanging(value); this.ReportPropertyChanging("Address"); this._Address = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("Address"); this.OnAddressChanged(); } } private string _Address; partial void OnAddressChanging(string value); partial void OnAddressChanged(); /// /// There are no comments for Property City in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string City { get { return this._City; } set { this.OnCityChanging(value); this.ReportPropertyChanging("City"); this._City = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("City"); this.OnCityChanged(); } } private string _City; partial void OnCityChanging(string value); partial void OnCityChanged(); /// /// There are no comments for Property CompanyName in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public string CompanyName { get { return this._CompanyName; } set { this.OnCompanyNameChanging(value); this.ReportPropertyChanging("CompanyName"); this._CompanyName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); this.ReportPropertyChanged("CompanyName"); this.OnCompanyNameChanged(); } } private string _CompanyName; partial void OnCompanyNameChanging(string value); partial void OnCompanyNameChanged(); /// /// There are no comments for Property ContactName in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ContactName { get { return this._ContactName; } set { this.OnContactNameChanging(value); this.ReportPropertyChanging("ContactName"); this._ContactName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ContactName"); this.OnContactNameChanged(); } } private string _ContactName; partial void OnContactNameChanging(string value); partial void OnContactNameChanged(); /// /// There are no comments for Property ContactTitle in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ContactTitle { get { return this._ContactTitle; } set { this.OnContactTitleChanging(value); this.ReportPropertyChanging("ContactTitle"); this._ContactTitle = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ContactTitle"); this.OnContactTitleChanged(); } } private string _ContactTitle; partial void OnContactTitleChanging(string value); partial void OnContactTitleChanged(); /// /// There are no comments for Property Country in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string Country { get { return this._Country; } set { this.OnCountryChanging(value); this.ReportPropertyChanging("Country"); this._Country = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("Country"); this.OnCountryChanged(); } } private string _Country; partial void OnCountryChanging(string value); partial void OnCountryChanged(); /// /// There are no comments for Property CustomerID in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public string CustomerID { get { return this._CustomerID; } set { this.OnCustomerIDChanging(value); this.ReportPropertyChanging("CustomerID"); this._CustomerID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); this.ReportPropertyChanged("CustomerID"); this.OnCustomerIDChanged(); } } private string _CustomerID; partial void OnCustomerIDChanging(string value); partial void OnCustomerIDChanged(); /// /// There are no comments for Property CustType in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable CustType { get { return this._CustType; } set { this.OnCustTypeChanging(value); this.ReportPropertyChanging("CustType"); this._CustType = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("CustType"); this.OnCustTypeChanged(); } } private global::System.Nullable _CustType; partial void OnCustTypeChanging(global::System.Nullable value); partial void OnCustTypeChanged(); /// /// There are no comments for Property Fax in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string Fax { get { return this._Fax; } set { this.OnFaxChanging(value); this.ReportPropertyChanging("Fax"); this._Fax = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("Fax"); this.OnFaxChanged(); } } private string _Fax; partial void OnFaxChanging(string value); partial void OnFaxChanged(); /// /// There are no comments for Property Phone in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string Phone { get { return this._Phone; } set { this.OnPhoneChanging(value); this.ReportPropertyChanging("Phone"); this._Phone = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("Phone"); this.OnPhoneChanged(); } } private string _Phone; partial void OnPhoneChanging(string value); partial void OnPhoneChanged(); /// /// There are no comments for Property PostalCode in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string PostalCode { get { return this._PostalCode; } set { this.OnPostalCodeChanging(value); this.ReportPropertyChanging("PostalCode"); this._PostalCode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("PostalCode"); this.OnPostalCodeChanged(); } } private string _PostalCode; partial void OnPostalCodeChanging(string value); partial void OnPostalCodeChanged(); /// /// There are no comments for Property Region in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string Region { get { return this._Region; } set { this.OnRegionChanging(value); this.ReportPropertyChanging("Region"); this._Region = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("Region"); this.OnRegionChanged(); } } private string _Region; partial void OnRegionChanging(string value); partial void OnRegionChanged(); /// /// There are no comments for Orders in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Orders")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityCollection Orders { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("NorthwindModel.FK_Orders_Customers", "Orders"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("NorthwindModel.FK_Orders_Customers", "Orders", value); } } } } /// /// There are no comments for NorthwindModel.OrderLine in the schema. /// /// /// OrderID /// ProductID /// [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="OrderLine")] [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] [global::System.Serializable()] public partial class OrderLine : global::System.Data.Objects.DataClasses.EntityObject { /// /// Create a new OrderLine object. /// /// Initial value of Discount. /// Initial value of OrderID. /// Initial value of ProductID. /// Initial value of Quantity. /// Initial value of UnitPrice. public static OrderLine CreateOrderLine(float discount, int orderID, int productID, short quantity, decimal unitPrice) { OrderLine orderLine = new OrderLine(); orderLine.Discount = discount; orderLine.OrderID = orderID; orderLine.ProductID = productID; orderLine.Quantity = quantity; orderLine.UnitPrice = unitPrice; return orderLine; } /// /// There are no comments for Property Discount in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public float Discount { get { return this._Discount; } set { this.OnDiscountChanging(value); this.ReportPropertyChanging("Discount"); this._Discount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Discount"); this.OnDiscountChanged(); } } private float _Discount; partial void OnDiscountChanging(float value); partial void OnDiscountChanged(); /// /// There are no comments for Property OrderID in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int OrderID { get { return this._OrderID; } set { this.OnOrderIDChanging(value); this.ReportPropertyChanging("OrderID"); this._OrderID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("OrderID"); this.OnOrderIDChanged(); } } private int _OrderID; partial void OnOrderIDChanging(int value); partial void OnOrderIDChanged(); /// /// There are no comments for Property ProductID in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int ProductID { get { return this._ProductID; } set { this.OnProductIDChanging(value); this.ReportPropertyChanging("ProductID"); this._ProductID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("ProductID"); this.OnProductIDChanged(); } } private int _ProductID; partial void OnProductIDChanging(int value); partial void OnProductIDChanged(); /// /// There are no comments for Property Quantity in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public short Quantity { get { return this._Quantity; } set { this.OnQuantityChanging(value); this.ReportPropertyChanging("Quantity"); this._Quantity = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Quantity"); this.OnQuantityChanged(); } } private short _Quantity; partial void OnQuantityChanging(short value); partial void OnQuantityChanged(); /// /// There are no comments for Property UnitPrice in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public decimal UnitPrice { get { return this._UnitPrice; } set { this.OnUnitPriceChanging(value); this.ReportPropertyChanging("UnitPrice"); this._UnitPrice = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("UnitPrice"); this.OnUnitPriceChanged(); } } private decimal _UnitPrice; partial void OnUnitPriceChanging(decimal value); partial void OnUnitPriceChanged(); /// /// There are no comments for Orders in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public Order Orders { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Order_Details_Orders", "Orders").Value; } set { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Order_Details_Orders", "Orders").Value = value; } } /// /// There are no comments for Orders in the schema. /// [global::System.ComponentModel.BrowsableAttribute(false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityReference OrdersReference { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Order_Details_Orders", "Orders"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("NorthwindModel.FK_Order_Details_Orders", "Orders", value); } } } } /// /// There are no comments for NorthwindModel.Order in the schema. /// /// /// OrderID /// [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order")] [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] [global::System.Serializable()] public partial class Order : global::System.Data.Objects.DataClasses.EntityObject { /// /// Create a new Order object. /// /// Initial value of OrderID. public static Order CreateOrder(int orderID) { Order order = new Order(); order.OrderID = orderID; return order; } /// /// There are no comments for Property EmployeeID in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable EmployeeID { get { return this._EmployeeID; } set { this.OnEmployeeIDChanging(value); this.ReportPropertyChanging("EmployeeID"); this._EmployeeID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("EmployeeID"); this.OnEmployeeIDChanged(); } } private global::System.Nullable _EmployeeID; partial void OnEmployeeIDChanging(global::System.Nullable value); partial void OnEmployeeIDChanged(); /// /// There are no comments for Property Freight in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable Freight { get { return this._Freight; } set { this.OnFreightChanging(value); this.ReportPropertyChanging("Freight"); this._Freight = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Freight"); this.OnFreightChanged(); } } private global::System.Nullable _Freight; partial void OnFreightChanging(global::System.Nullable value); partial void OnFreightChanged(); /// /// There are no comments for Property OrderDate in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable OrderDate { get { return this._OrderDate; } set { this.OnOrderDateChanging(value); this.ReportPropertyChanging("OrderDate"); this._OrderDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("OrderDate"); this.OnOrderDateChanged(); } } private global::System.Nullable _OrderDate; partial void OnOrderDateChanging(global::System.Nullable value); partial void OnOrderDateChanged(); /// /// There are no comments for Property OrderID in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int OrderID { get { return this._OrderID; } set { this.OnOrderIDChanging(value); this.ReportPropertyChanging("OrderID"); this._OrderID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("OrderID"); this.OnOrderIDChanged(); } } private int _OrderID; partial void OnOrderIDChanging(int value); partial void OnOrderIDChanged(); /// /// There are no comments for Property RequiredDate in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable RequiredDate { get { return this._RequiredDate; } set { this.OnRequiredDateChanging(value); this.ReportPropertyChanging("RequiredDate"); this._RequiredDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("RequiredDate"); this.OnRequiredDateChanged(); } } private global::System.Nullable _RequiredDate; partial void OnRequiredDateChanging(global::System.Nullable value); partial void OnRequiredDateChanged(); /// /// There are no comments for Property ShipAddress in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipAddress { get { return this._ShipAddress; } set { this.OnShipAddressChanging(value); this.ReportPropertyChanging("ShipAddress"); this._ShipAddress = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipAddress"); this.OnShipAddressChanged(); } } private string _ShipAddress; partial void OnShipAddressChanging(string value); partial void OnShipAddressChanged(); /// /// There are no comments for Property ShipCity in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipCity { get { return this._ShipCity; } set { this.OnShipCityChanging(value); this.ReportPropertyChanging("ShipCity"); this._ShipCity = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipCity"); this.OnShipCityChanged(); } } private string _ShipCity; partial void OnShipCityChanging(string value); partial void OnShipCityChanged(); /// /// There are no comments for Property ShipCountry in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipCountry { get { return this._ShipCountry; } set { this.OnShipCountryChanging(value); this.ReportPropertyChanging("ShipCountry"); this._ShipCountry = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipCountry"); this.OnShipCountryChanged(); } } private string _ShipCountry; partial void OnShipCountryChanging(string value); partial void OnShipCountryChanged(); /// /// There are no comments for Property ShipName in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipName { get { return this._ShipName; } set { this.OnShipNameChanging(value); this.ReportPropertyChanging("ShipName"); this._ShipName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipName"); this.OnShipNameChanged(); } } private string _ShipName; partial void OnShipNameChanging(string value); partial void OnShipNameChanged(); /// /// There are no comments for Property ShippedDate in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable ShippedDate { get { return this._ShippedDate; } set { this.OnShippedDateChanging(value); this.ReportPropertyChanging("ShippedDate"); this._ShippedDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("ShippedDate"); this.OnShippedDateChanged(); } } private global::System.Nullable _ShippedDate; partial void OnShippedDateChanging(global::System.Nullable value); partial void OnShippedDateChanged(); /// /// There are no comments for Property ShipPostalCode in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipPostalCode { get { return this._ShipPostalCode; } set { this.OnShipPostalCodeChanging(value); this.ReportPropertyChanging("ShipPostalCode"); this._ShipPostalCode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipPostalCode"); this.OnShipPostalCodeChanged(); } } private string _ShipPostalCode; partial void OnShipPostalCodeChanging(string value); partial void OnShipPostalCodeChanged(); /// /// There are no comments for Property ShipRegion in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public string ShipRegion { get { return this._ShipRegion; } set { this.OnShipRegionChanging(value); this.ReportPropertyChanging("ShipRegion"); this._ShipRegion = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); this.ReportPropertyChanged("ShipRegion"); this.OnShipRegionChanged(); } } private string _ShipRegion; partial void OnShipRegionChanging(string value); partial void OnShipRegionChanged(); /// /// There are no comments for Property ShipVia in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable ShipVia { get { return this._ShipVia; } set { this.OnShipViaChanging(value); this.ReportPropertyChanging("ShipVia"); this._ShipVia = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("ShipVia"); this.OnShipViaChanged(); } } private global::System.Nullable _ShipVia; partial void OnShipViaChanging(global::System.Nullable value); partial void OnShipViaChanged(); /// /// There are no comments for Customer in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Customers")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public Customer Customer { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Orders_Customers", "Customers").Value; } set { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Orders_Customers", "Customers").Value = value; } } /// /// There are no comments for Customer in the schema. /// [global::System.ComponentModel.BrowsableAttribute(false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityReference CustomerReference { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("NorthwindModel.FK_Orders_Customers", "Customers"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("NorthwindModel.FK_Orders_Customers", "Customers", value); } } } /// /// There are no comments for Order_Details in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Order_Details")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityCollection Order_Details { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("NorthwindModel.FK_Order_Details_Orders", "Order_Details"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("NorthwindModel.FK_Order_Details_Orders", "Order_Details", value); } } } } }