Mercurial > pub > bltoolkit
view Demo/WebServices/NorthwindDataService/NorthwindModel.Designer.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
author | cin |
---|---|
date | Fri, 22 Aug 2014 17:34:46 +0400 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.Data.EntityClient; using System.Data.Objects; using System.Data.Objects.DataClasses; using System.Linq; using System.Runtime.Serialization; using System.Xml.Serialization; [assembly: EdmSchemaAttribute()] #region EDM Relationship Metadata [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Products_Categories", "Categories", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Category), "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Product), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Customers", "Customers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Customer), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Employees_Employees", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Employee), "Employees1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Employee), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Employees", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Employee), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Order), "Order_Details", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order_Detail), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Order_Details_Products", "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Product), "Order_Details", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order_Detail), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Orders_Shippers", "Shippers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Shipper), "Orders", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Order), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Products_Suppliers", "Suppliers", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(NorthwindDataService.Supplier), "Products", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Product), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "FK_Territories_Region", "Region", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(NorthwindDataService.Region), "Territories", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Territory), true)] [assembly: EdmRelationshipAttribute("NorthwindModel", "CustomerCustomerDemo", "CustomerDemographics", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.CustomerDemographic), "Customers", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Customer))] [assembly: EdmRelationshipAttribute("NorthwindModel", "EmployeeTerritories", "Employees", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Employee), "Territories", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(NorthwindDataService.Territory))] #endregion namespace NorthwindDataService { #region Contexts /// <summary> /// No Metadata Documentation available. /// </summary> public partial class NorthwindEntities : ObjectContext { #region Constructors /// <summary> /// Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application configuration file. /// </summary> public NorthwindEntities() : base("name=NorthwindEntities", "NorthwindEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// <summary> /// Initialize a new NorthwindEntities object. /// </summary> public NorthwindEntities(string connectionString) : base(connectionString, "NorthwindEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// <summary> /// Initialize a new NorthwindEntities object. /// </summary> public NorthwindEntities(EntityConnection connection) : base(connection, "NorthwindEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } #endregion #region Partial Methods partial void OnContextCreated(); #endregion #region ObjectSet Properties /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Category> Categories { get { if ((_Categories == null)) { _Categories = base.CreateObjectSet<Category>("Categories"); } return _Categories; } } private ObjectSet<Category> _Categories; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<CustomerDemographic> CustomerDemographics { get { if ((_CustomerDemographics == null)) { _CustomerDemographics = base.CreateObjectSet<CustomerDemographic>("CustomerDemographics"); } return _CustomerDemographics; } } private ObjectSet<CustomerDemographic> _CustomerDemographics; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Customer> Customers { get { if ((_Customers == null)) { _Customers = base.CreateObjectSet<Customer>("Customers"); } return _Customers; } } private ObjectSet<Customer> _Customers; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Employee> Employees { get { if ((_Employees == null)) { _Employees = base.CreateObjectSet<Employee>("Employees"); } return _Employees; } } private ObjectSet<Employee> _Employees; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Order_Detail> Order_Details { get { if ((_Order_Details == null)) { _Order_Details = base.CreateObjectSet<Order_Detail>("Order_Details"); } return _Order_Details; } } private ObjectSet<Order_Detail> _Order_Details; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Order> Orders { get { if ((_Orders == null)) { _Orders = base.CreateObjectSet<Order>("Orders"); } return _Orders; } } private ObjectSet<Order> _Orders; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Product> Products { get { if ((_Products == null)) { _Products = base.CreateObjectSet<Product>("Products"); } return _Products; } } private ObjectSet<Product> _Products; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Region> Regions { get { if ((_Regions == null)) { _Regions = base.CreateObjectSet<Region>("Regions"); } return _Regions; } } private ObjectSet<Region> _Regions; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Shipper> Shippers { get { if ((_Shippers == null)) { _Shippers = base.CreateObjectSet<Shipper>("Shippers"); } return _Shippers; } } private ObjectSet<Shipper> _Shippers; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Supplier> Suppliers { get { if ((_Suppliers == null)) { _Suppliers = base.CreateObjectSet<Supplier>("Suppliers"); } return _Suppliers; } } private ObjectSet<Supplier> _Suppliers; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<sysdiagram> sysdiagrams { get { if ((_sysdiagrams == null)) { _sysdiagrams = base.CreateObjectSet<sysdiagram>("sysdiagrams"); } return _sysdiagrams; } } private ObjectSet<sysdiagram> _sysdiagrams; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Territory> Territories { get { if ((_Territories == null)) { _Territories = base.CreateObjectSet<Territory>("Territories"); } return _Territories; } } private ObjectSet<Territory> _Territories; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Alphabetical_list_of_product> Alphabetical_list_of_products { get { if ((_Alphabetical_list_of_products == null)) { _Alphabetical_list_of_products = base.CreateObjectSet<Alphabetical_list_of_product>("Alphabetical_list_of_products"); } return _Alphabetical_list_of_products; } } private ObjectSet<Alphabetical_list_of_product> _Alphabetical_list_of_products; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Category_Sales_for_1997> Category_Sales_for_1997 { get { if ((_Category_Sales_for_1997 == null)) { _Category_Sales_for_1997 = base.CreateObjectSet<Category_Sales_for_1997>("Category_Sales_for_1997"); } return _Category_Sales_for_1997; } } private ObjectSet<Category_Sales_for_1997> _Category_Sales_for_1997; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Current_Product_List> Current_Product_Lists { get { if ((_Current_Product_Lists == null)) { _Current_Product_Lists = base.CreateObjectSet<Current_Product_List>("Current_Product_Lists"); } return _Current_Product_Lists; } } private ObjectSet<Current_Product_List> _Current_Product_Lists; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Customer_and_Suppliers_by_City> Customer_and_Suppliers_by_Cities { get { if ((_Customer_and_Suppliers_by_Cities == null)) { _Customer_and_Suppliers_by_Cities = base.CreateObjectSet<Customer_and_Suppliers_by_City>("Customer_and_Suppliers_by_Cities"); } return _Customer_and_Suppliers_by_Cities; } } private ObjectSet<Customer_and_Suppliers_by_City> _Customer_and_Suppliers_by_Cities; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Invoice> Invoices { get { if ((_Invoices == null)) { _Invoices = base.CreateObjectSet<Invoice>("Invoices"); } return _Invoices; } } private ObjectSet<Invoice> _Invoices; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Order_Details_Extended> Order_Details_Extendeds { get { if ((_Order_Details_Extendeds == null)) { _Order_Details_Extendeds = base.CreateObjectSet<Order_Details_Extended>("Order_Details_Extendeds"); } return _Order_Details_Extendeds; } } private ObjectSet<Order_Details_Extended> _Order_Details_Extendeds; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Order_Subtotal> Order_Subtotals { get { if ((_Order_Subtotals == null)) { _Order_Subtotals = base.CreateObjectSet<Order_Subtotal>("Order_Subtotals"); } return _Order_Subtotals; } } private ObjectSet<Order_Subtotal> _Order_Subtotals; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Orders_Qry> Orders_Qries { get { if ((_Orders_Qries == null)) { _Orders_Qries = base.CreateObjectSet<Orders_Qry>("Orders_Qries"); } return _Orders_Qries; } } private ObjectSet<Orders_Qry> _Orders_Qries; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Product_Sales_for_1997> Product_Sales_for_1997 { get { if ((_Product_Sales_for_1997 == null)) { _Product_Sales_for_1997 = base.CreateObjectSet<Product_Sales_for_1997>("Product_Sales_for_1997"); } return _Product_Sales_for_1997; } } private ObjectSet<Product_Sales_for_1997> _Product_Sales_for_1997; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Products_Above_Average_Price> Products_Above_Average_Prices { get { if ((_Products_Above_Average_Prices == null)) { _Products_Above_Average_Prices = base.CreateObjectSet<Products_Above_Average_Price>("Products_Above_Average_Prices"); } return _Products_Above_Average_Prices; } } private ObjectSet<Products_Above_Average_Price> _Products_Above_Average_Prices; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Products_by_Category> Products_by_Categories { get { if ((_Products_by_Categories == null)) { _Products_by_Categories = base.CreateObjectSet<Products_by_Category>("Products_by_Categories"); } return _Products_by_Categories; } } private ObjectSet<Products_by_Category> _Products_by_Categories; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Sales_by_Category> Sales_by_Categories { get { if ((_Sales_by_Categories == null)) { _Sales_by_Categories = base.CreateObjectSet<Sales_by_Category>("Sales_by_Categories"); } return _Sales_by_Categories; } } private ObjectSet<Sales_by_Category> _Sales_by_Categories; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Sales_Totals_by_Amount> Sales_Totals_by_Amounts { get { if ((_Sales_Totals_by_Amounts == null)) { _Sales_Totals_by_Amounts = base.CreateObjectSet<Sales_Totals_by_Amount>("Sales_Totals_by_Amounts"); } return _Sales_Totals_by_Amounts; } } private ObjectSet<Sales_Totals_by_Amount> _Sales_Totals_by_Amounts; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Summary_of_Sales_by_Quarter> Summary_of_Sales_by_Quarters { get { if ((_Summary_of_Sales_by_Quarters == null)) { _Summary_of_Sales_by_Quarters = base.CreateObjectSet<Summary_of_Sales_by_Quarter>("Summary_of_Sales_by_Quarters"); } return _Summary_of_Sales_by_Quarters; } } private ObjectSet<Summary_of_Sales_by_Quarter> _Summary_of_Sales_by_Quarters; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Summary_of_Sales_by_Year> Summary_of_Sales_by_Years { get { if ((_Summary_of_Sales_by_Years == null)) { _Summary_of_Sales_by_Years = base.CreateObjectSet<Summary_of_Sales_by_Year>("Summary_of_Sales_by_Years"); } return _Summary_of_Sales_by_Years; } } private ObjectSet<Summary_of_Sales_by_Year> _Summary_of_Sales_by_Years; #endregion #region AddTo Methods /// <summary> /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCategories(Category category) { base.AddObject("Categories", category); } /// <summary> /// Deprecated Method for adding a new object to the CustomerDemographics EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomerDemographics(CustomerDemographic customerDemographic) { base.AddObject("CustomerDemographics", customerDemographic); } /// <summary> /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomers(Customer customer) { base.AddObject("Customers", customer); } /// <summary> /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployees(Employee employee) { base.AddObject("Employees", employee); } /// <summary> /// Deprecated Method for adding a new object to the Order_Details EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrder_Details(Order_Detail order_Detail) { base.AddObject("Order_Details", order_Detail); } /// <summary> /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders(Order order) { base.AddObject("Orders", order); } /// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Product product) { base.AddObject("Products", product); } /// <summary> /// Deprecated Method for adding a new object to the Regions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRegions(Region region) { base.AddObject("Regions", region); } /// <summary> /// Deprecated Method for adding a new object to the Shippers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShippers(Shipper shipper) { base.AddObject("Shippers", shipper); } /// <summary> /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSuppliers(Supplier supplier) { base.AddObject("Suppliers", supplier); } /// <summary> /// Deprecated Method for adding a new object to the sysdiagrams EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTosysdiagrams(sysdiagram sysdiagram) { base.AddObject("sysdiagrams", sysdiagram); } /// <summary> /// Deprecated Method for adding a new object to the Territories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTerritories(Territory territory) { base.AddObject("Territories", territory); } /// <summary> /// Deprecated Method for adding a new object to the Alphabetical_list_of_products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAlphabetical_list_of_products(Alphabetical_list_of_product alphabetical_list_of_product) { base.AddObject("Alphabetical_list_of_products", alphabetical_list_of_product); } /// <summary> /// Deprecated Method for adding a new object to the Category_Sales_for_1997 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCategory_Sales_for_1997(Category_Sales_for_1997 category_Sales_for_1997) { base.AddObject("Category_Sales_for_1997", category_Sales_for_1997); } /// <summary> /// Deprecated Method for adding a new object to the Current_Product_Lists EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCurrent_Product_Lists(Current_Product_List current_Product_List) { base.AddObject("Current_Product_Lists", current_Product_List); } /// <summary> /// Deprecated Method for adding a new object to the Customer_and_Suppliers_by_Cities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomer_and_Suppliers_by_Cities(Customer_and_Suppliers_by_City customer_and_Suppliers_by_City) { base.AddObject("Customer_and_Suppliers_by_Cities", customer_and_Suppliers_by_City); } /// <summary> /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToInvoices(Invoice invoice) { base.AddObject("Invoices", invoice); } /// <summary> /// Deprecated Method for adding a new object to the Order_Details_Extendeds EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrder_Details_Extendeds(Order_Details_Extended order_Details_Extended) { base.AddObject("Order_Details_Extendeds", order_Details_Extended); } /// <summary> /// Deprecated Method for adding a new object to the Order_Subtotals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrder_Subtotals(Order_Subtotal order_Subtotal) { base.AddObject("Order_Subtotals", order_Subtotal); } /// <summary> /// Deprecated Method for adding a new object to the Orders_Qries EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders_Qries(Orders_Qry orders_Qry) { base.AddObject("Orders_Qries", orders_Qry); } /// <summary> /// Deprecated Method for adding a new object to the Product_Sales_for_1997 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProduct_Sales_for_1997(Product_Sales_for_1997 product_Sales_for_1997) { base.AddObject("Product_Sales_for_1997", product_Sales_for_1997); } /// <summary> /// Deprecated Method for adding a new object to the Products_Above_Average_Prices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts_Above_Average_Prices(Products_Above_Average_Price products_Above_Average_Price) { base.AddObject("Products_Above_Average_Prices", products_Above_Average_Price); } /// <summary> /// Deprecated Method for adding a new object to the Products_by_Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts_by_Categories(Products_by_Category products_by_Category) { base.AddObject("Products_by_Categories", products_by_Category); } /// <summary> /// Deprecated Method for adding a new object to the Sales_by_Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSales_by_Categories(Sales_by_Category sales_by_Category) { base.AddObject("Sales_by_Categories", sales_by_Category); } /// <summary> /// Deprecated Method for adding a new object to the Sales_Totals_by_Amounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSales_Totals_by_Amounts(Sales_Totals_by_Amount sales_Totals_by_Amount) { base.AddObject("Sales_Totals_by_Amounts", sales_Totals_by_Amount); } /// <summary> /// Deprecated Method for adding a new object to the Summary_of_Sales_by_Quarters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSummary_of_Sales_by_Quarters(Summary_of_Sales_by_Quarter summary_of_Sales_by_Quarter) { base.AddObject("Summary_of_Sales_by_Quarters", summary_of_Sales_by_Quarter); } /// <summary> /// Deprecated Method for adding a new object to the Summary_of_Sales_by_Years EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSummary_of_Sales_by_Years(Summary_of_Sales_by_Year summary_of_Sales_by_Year) { base.AddObject("Summary_of_Sales_by_Years", summary_of_Sales_by_Year); } #endregion } #endregion #region Entities /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Alphabetical_list_of_product")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Alphabetical_list_of_product : EntityObject { #region Factory Method /// <summary> /// Create a new Alphabetical_list_of_product object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="categoryName">Initial value of the CategoryName property.</param> public static Alphabetical_list_of_product CreateAlphabetical_list_of_product(global::System.Int32 productID, global::System.String productName, global::System.Boolean discontinued, global::System.String categoryName) { Alphabetical_list_of_product alphabetical_list_of_product = new Alphabetical_list_of_product(); alphabetical_list_of_product.ProductID = productID; alphabetical_list_of_product.ProductName = productName; alphabetical_list_of_product.Discontinued = discontinued; alphabetical_list_of_product.CategoryName = categoryName; return alphabetical_list_of_product; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> SupplierID { get { return _SupplierID; } set { OnSupplierIDChanging(value); ReportPropertyChanging("SupplierID"); _SupplierID = StructuralObject.SetValidValue(value); ReportPropertyChanged("SupplierID"); OnSupplierIDChanged(); } } private Nullable<global::System.Int32> _SupplierID; partial void OnSupplierIDChanging(Nullable<global::System.Int32> value); partial void OnSupplierIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> CategoryID { get { return _CategoryID; } set { OnCategoryIDChanging(value); ReportPropertyChanging("CategoryID"); _CategoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategoryID"); OnCategoryIDChanged(); } } private Nullable<global::System.Int32> _CategoryID; partial void OnCategoryIDChanging(Nullable<global::System.Int32> value); partial void OnCategoryIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String QuantityPerUnit { get { return _QuantityPerUnit; } set { OnQuantityPerUnitChanging(value); ReportPropertyChanging("QuantityPerUnit"); _QuantityPerUnit = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("QuantityPerUnit"); OnQuantityPerUnitChanged(); } } private global::System.String _QuantityPerUnit; partial void OnQuantityPerUnitChanging(global::System.String value); partial void OnQuantityPerUnitChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> UnitPrice { get { return _UnitPrice; } set { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } private Nullable<global::System.Decimal> _UnitPrice; partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value); partial void OnUnitPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> UnitsInStock { get { return _UnitsInStock; } set { OnUnitsInStockChanging(value); ReportPropertyChanging("UnitsInStock"); _UnitsInStock = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsInStock"); OnUnitsInStockChanged(); } } private Nullable<global::System.Int16> _UnitsInStock; partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value); partial void OnUnitsInStockChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> UnitsOnOrder { get { return _UnitsOnOrder; } set { OnUnitsOnOrderChanging(value); ReportPropertyChanging("UnitsOnOrder"); _UnitsOnOrder = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsOnOrder"); OnUnitsOnOrderChanged(); } } private Nullable<global::System.Int16> _UnitsOnOrder; partial void OnUnitsOnOrderChanging(Nullable<global::System.Int16> value); partial void OnUnitsOnOrderChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> ReorderLevel { get { return _ReorderLevel; } set { OnReorderLevelChanging(value); ReportPropertyChanging("ReorderLevel"); _ReorderLevel = StructuralObject.SetValidValue(value); ReportPropertyChanged("ReorderLevel"); OnReorderLevelChanged(); } } private Nullable<global::System.Int16> _ReorderLevel; partial void OnReorderLevelChanging(Nullable<global::System.Int16> value); partial void OnReorderLevelChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Boolean Discontinued { get { return _Discontinued; } set { if (_Discontinued != value) { OnDiscontinuedChanging(value); ReportPropertyChanging("Discontinued"); _Discontinued = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discontinued"); OnDiscontinuedChanged(); } } } private global::System.Boolean _Discontinued; partial void OnDiscontinuedChanging(global::System.Boolean value); partial void OnDiscontinuedChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { if (_CategoryName != value) { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Category")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Category : EntityObject { #region Factory Method /// <summary> /// Create a new Category object. /// </summary> /// <param name="categoryID">Initial value of the CategoryID property.</param> /// <param name="categoryName">Initial value of the CategoryName property.</param> public static Category CreateCategory(global::System.Int32 categoryID, global::System.String categoryName) { Category category = new Category(); category.CategoryID = categoryID; category.CategoryName = categoryName; return category; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 CategoryID { get { return _CategoryID; } set { if (_CategoryID != value) { OnCategoryIDChanging(value); ReportPropertyChanging("CategoryID"); _CategoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategoryID"); OnCategoryIDChanged(); } } } private global::System.Int32 _CategoryID; partial void OnCategoryIDChanging(global::System.Int32 value); partial void OnCategoryIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Description { get { return _Description; } set { OnDescriptionChanging(value); ReportPropertyChanging("Description"); _Description = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Description"); OnDescriptionChanged(); } } private global::System.String _Description; partial void OnDescriptionChanging(global::System.String value); partial void OnDescriptionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.Byte[] Picture { get { return StructuralObject.GetValidValue(_Picture); } set { OnPictureChanging(value); ReportPropertyChanging("Picture"); _Picture = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Picture"); OnPictureChanged(); } } private global::System.Byte[] _Picture; partial void OnPictureChanging(global::System.Byte[] value); partial void OnPictureChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Categories", "Products")] public EntityCollection<Product> Products { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Product>("NorthwindModel.FK_Products_Categories", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Product>("NorthwindModel.FK_Products_Categories", "Products", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Category_Sales_for_1997")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Category_Sales_for_1997 : EntityObject { #region Factory Method /// <summary> /// Create a new Category_Sales_for_1997 object. /// </summary> /// <param name="categoryName">Initial value of the CategoryName property.</param> public static Category_Sales_for_1997 CreateCategory_Sales_for_1997(global::System.String categoryName) { Category_Sales_for_1997 category_Sales_for_1997 = new Category_Sales_for_1997(); category_Sales_for_1997.CategoryName = categoryName; return category_Sales_for_1997; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { if (_CategoryName != value) { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> CategorySales { get { return _CategorySales; } set { OnCategorySalesChanging(value); ReportPropertyChanging("CategorySales"); _CategorySales = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategorySales"); OnCategorySalesChanged(); } } private Nullable<global::System.Decimal> _CategorySales; partial void OnCategorySalesChanging(Nullable<global::System.Decimal> value); partial void OnCategorySalesChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Current_Product_List")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Current_Product_List : EntityObject { #region Factory Method /// <summary> /// Create a new Current_Product_List object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="productName">Initial value of the ProductName property.</param> public static Current_Product_List CreateCurrent_Product_List(global::System.Int32 productID, global::System.String productName) { Current_Product_List current_Product_List = new Current_Product_List(); current_Product_List.ProductID = productID; current_Product_List.ProductName = productName; return current_Product_List; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Customer")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Customer : EntityObject { #region Factory Method /// <summary> /// Create a new Customer object. /// </summary> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Customer CreateCustomer(global::System.String customerID, global::System.String companyName) { Customer customer = new Customer(); customer.CustomerID = customerID; customer.CompanyName = companyName; return customer; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CustomerID { get { return _CustomerID; } set { if (_CustomerID != value) { OnCustomerIDChanging(value); ReportPropertyChanging("CustomerID"); _CustomerID = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CustomerID"); OnCustomerIDChanged(); } } } private global::System.String _CustomerID; partial void OnCustomerIDChanging(global::System.String value); partial void OnCustomerIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ContactName { get { return _ContactName; } set { OnContactNameChanging(value); ReportPropertyChanging("ContactName"); _ContactName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ContactName"); OnContactNameChanged(); } } private global::System.String _ContactName; partial void OnContactNameChanging(global::System.String value); partial void OnContactNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ContactTitle { get { return _ContactTitle; } set { OnContactTitleChanging(value); ReportPropertyChanging("ContactTitle"); _ContactTitle = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ContactTitle"); OnContactTitleChanged(); } } private global::System.String _ContactTitle; partial void OnContactTitleChanging(global::System.String value); partial void OnContactTitleChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Address { get { return _Address; } set { OnAddressChanging(value); ReportPropertyChanging("Address"); _Address = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Address"); OnAddressChanged(); } } private global::System.String _Address; partial void OnAddressChanging(global::System.String value); partial void OnAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Region { get { return _Region; } set { OnRegionChanging(value); ReportPropertyChanging("Region"); _Region = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Region"); OnRegionChanged(); } } private global::System.String _Region; partial void OnRegionChanging(global::System.String value); partial void OnRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PostalCode { get { return _PostalCode; } set { OnPostalCodeChanging(value); ReportPropertyChanging("PostalCode"); _PostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PostalCode"); OnPostalCodeChanged(); } } private global::System.String _PostalCode; partial void OnPostalCodeChanging(global::System.String value); partial void OnPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Country { get { return _Country; } set { OnCountryChanging(value); ReportPropertyChanging("Country"); _Country = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Country"); OnCountryChanged(); } } private global::System.String _Country; partial void OnCountryChanging(global::System.String value); partial void OnCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Phone { get { return _Phone; } set { OnPhoneChanging(value); ReportPropertyChanging("Phone"); _Phone = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Phone"); OnPhoneChanged(); } } private global::System.String _Phone; partial void OnPhoneChanging(global::System.String value); partial void OnPhoneChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Fax { get { return _Fax; } set { OnFaxChanging(value); ReportPropertyChanging("Fax"); _Fax = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Fax"); OnFaxChanged(); } } private global::System.String _Fax; partial void OnFaxChanging(global::System.String value); partial void OnFaxChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Orders")] public EntityCollection<Order> Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Customers", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Customers", "Orders", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "CustomerCustomerDemo", "CustomerDemographics")] public EntityCollection<CustomerDemographic> CustomerDemographics { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CustomerDemographic>("NorthwindModel.CustomerCustomerDemo", "CustomerDemographics"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CustomerDemographic>("NorthwindModel.CustomerCustomerDemo", "CustomerDemographics", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Customer_and_Suppliers_by_City")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Customer_and_Suppliers_by_City : EntityObject { #region Factory Method /// <summary> /// Create a new Customer_and_Suppliers_by_City object. /// </summary> /// <param name="companyName">Initial value of the CompanyName property.</param> /// <param name="relationship">Initial value of the Relationship property.</param> public static Customer_and_Suppliers_by_City CreateCustomer_and_Suppliers_by_City(global::System.String companyName, global::System.String relationship) { Customer_and_Suppliers_by_City customer_and_Suppliers_by_City = new Customer_and_Suppliers_by_City(); customer_and_Suppliers_by_City.CompanyName = companyName; customer_and_Suppliers_by_City.Relationship = relationship; return customer_and_Suppliers_by_City; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { if (_CompanyName != value) { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ContactName { get { return _ContactName; } set { OnContactNameChanging(value); ReportPropertyChanging("ContactName"); _ContactName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ContactName"); OnContactNameChanged(); } } private global::System.String _ContactName; partial void OnContactNameChanging(global::System.String value); partial void OnContactNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String Relationship { get { return _Relationship; } set { if (_Relationship != value) { OnRelationshipChanging(value); ReportPropertyChanging("Relationship"); _Relationship = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("Relationship"); OnRelationshipChanged(); } } } private global::System.String _Relationship; partial void OnRelationshipChanging(global::System.String value); partial void OnRelationshipChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="CustomerDemographic")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class CustomerDemographic : EntityObject { #region Factory Method /// <summary> /// Create a new CustomerDemographic object. /// </summary> /// <param name="customerTypeID">Initial value of the CustomerTypeID property.</param> public static CustomerDemographic CreateCustomerDemographic(global::System.String customerTypeID) { CustomerDemographic customerDemographic = new CustomerDemographic(); customerDemographic.CustomerTypeID = customerTypeID; return customerDemographic; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CustomerTypeID { get { return _CustomerTypeID; } set { if (_CustomerTypeID != value) { OnCustomerTypeIDChanging(value); ReportPropertyChanging("CustomerTypeID"); _CustomerTypeID = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CustomerTypeID"); OnCustomerTypeIDChanged(); } } } private global::System.String _CustomerTypeID; partial void OnCustomerTypeIDChanging(global::System.String value); partial void OnCustomerTypeIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String CustomerDesc { get { return _CustomerDesc; } set { OnCustomerDescChanging(value); ReportPropertyChanging("CustomerDesc"); _CustomerDesc = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("CustomerDesc"); OnCustomerDescChanged(); } } private global::System.String _CustomerDesc; partial void OnCustomerDescChanging(global::System.String value); partial void OnCustomerDescChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "CustomerCustomerDemo", "Customers")] public EntityCollection<Customer> Customers { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Customer>("NorthwindModel.CustomerCustomerDemo", "Customers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Customer>("NorthwindModel.CustomerCustomerDemo", "Customers", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Employee")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Employee : EntityObject { #region Factory Method /// <summary> /// Create a new Employee object. /// </summary> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> public static Employee CreateEmployee(global::System.Int32 employeeID, global::System.String lastName, global::System.String firstName) { Employee employee = new Employee(); employee.EmployeeID = employeeID; employee.LastName = lastName; employee.FirstName = firstName; return employee; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 EmployeeID { get { return _EmployeeID; } set { if (_EmployeeID != value) { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } } private global::System.Int32 _EmployeeID; partial void OnEmployeeIDChanging(global::System.Int32 value); partial void OnEmployeeIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String LastName { get { return _LastName; } set { OnLastNameChanging(value); ReportPropertyChanging("LastName"); _LastName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("LastName"); OnLastNameChanged(); } } private global::System.String _LastName; partial void OnLastNameChanging(global::System.String value); partial void OnLastNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String FirstName { get { return _FirstName; } set { OnFirstNameChanging(value); ReportPropertyChanging("FirstName"); _FirstName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("FirstName"); OnFirstNameChanged(); } } private global::System.String _FirstName; partial void OnFirstNameChanging(global::System.String value); partial void OnFirstNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Title { get { return _Title; } set { OnTitleChanging(value); ReportPropertyChanging("Title"); _Title = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Title"); OnTitleChanged(); } } private global::System.String _Title; partial void OnTitleChanging(global::System.String value); partial void OnTitleChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String TitleOfCourtesy { get { return _TitleOfCourtesy; } set { OnTitleOfCourtesyChanging(value); ReportPropertyChanging("TitleOfCourtesy"); _TitleOfCourtesy = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("TitleOfCourtesy"); OnTitleOfCourtesyChanged(); } } private global::System.String _TitleOfCourtesy; partial void OnTitleOfCourtesyChanging(global::System.String value); partial void OnTitleOfCourtesyChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> BirthDate { get { return _BirthDate; } set { OnBirthDateChanging(value); ReportPropertyChanging("BirthDate"); _BirthDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("BirthDate"); OnBirthDateChanged(); } } private Nullable<global::System.DateTime> _BirthDate; partial void OnBirthDateChanging(Nullable<global::System.DateTime> value); partial void OnBirthDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> HireDate { get { return _HireDate; } set { OnHireDateChanging(value); ReportPropertyChanging("HireDate"); _HireDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("HireDate"); OnHireDateChanged(); } } private Nullable<global::System.DateTime> _HireDate; partial void OnHireDateChanging(Nullable<global::System.DateTime> value); partial void OnHireDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Address { get { return _Address; } set { OnAddressChanging(value); ReportPropertyChanging("Address"); _Address = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Address"); OnAddressChanged(); } } private global::System.String _Address; partial void OnAddressChanging(global::System.String value); partial void OnAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Region { get { return _Region; } set { OnRegionChanging(value); ReportPropertyChanging("Region"); _Region = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Region"); OnRegionChanged(); } } private global::System.String _Region; partial void OnRegionChanging(global::System.String value); partial void OnRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PostalCode { get { return _PostalCode; } set { OnPostalCodeChanging(value); ReportPropertyChanging("PostalCode"); _PostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PostalCode"); OnPostalCodeChanged(); } } private global::System.String _PostalCode; partial void OnPostalCodeChanging(global::System.String value); partial void OnPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Country { get { return _Country; } set { OnCountryChanging(value); ReportPropertyChanging("Country"); _Country = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Country"); OnCountryChanged(); } } private global::System.String _Country; partial void OnCountryChanging(global::System.String value); partial void OnCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String HomePhone { get { return _HomePhone; } set { OnHomePhoneChanging(value); ReportPropertyChanging("HomePhone"); _HomePhone = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("HomePhone"); OnHomePhoneChanged(); } } private global::System.String _HomePhone; partial void OnHomePhoneChanging(global::System.String value); partial void OnHomePhoneChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Extension { get { return _Extension; } set { OnExtensionChanging(value); ReportPropertyChanging("Extension"); _Extension = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Extension"); OnExtensionChanged(); } } private global::System.String _Extension; partial void OnExtensionChanging(global::System.String value); partial void OnExtensionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.Byte[] Photo { get { return StructuralObject.GetValidValue(_Photo); } set { OnPhotoChanging(value); ReportPropertyChanging("Photo"); _Photo = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Photo"); OnPhotoChanged(); } } private global::System.Byte[] _Photo; partial void OnPhotoChanging(global::System.Byte[] value); partial void OnPhotoChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Notes { get { return _Notes; } set { OnNotesChanging(value); ReportPropertyChanging("Notes"); _Notes = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Notes"); OnNotesChanged(); } } private global::System.String _Notes; partial void OnNotesChanging(global::System.String value); partial void OnNotesChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> ReportsTo { get { return _ReportsTo; } set { OnReportsToChanging(value); ReportPropertyChanging("ReportsTo"); _ReportsTo = StructuralObject.SetValidValue(value); ReportPropertyChanged("ReportsTo"); OnReportsToChanged(); } } private Nullable<global::System.Int32> _ReportsTo; partial void OnReportsToChanging(Nullable<global::System.Int32> value); partial void OnReportsToChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PhotoPath { get { return _PhotoPath; } set { OnPhotoPathChanging(value); ReportPropertyChanging("PhotoPath"); _PhotoPath = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PhotoPath"); OnPhotoPathChanged(); } } private global::System.String _PhotoPath; partial void OnPhotoPathChanging(global::System.String value); partial void OnPhotoPathChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Employees_Employees", "Employees1")] public EntityCollection<Employee> Employees1 { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Employee>("NorthwindModel.FK_Employees_Employees", "Employees1"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Employee>("NorthwindModel.FK_Employees_Employees", "Employees1", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Employees_Employees", "Employees")] public Employee Employee1 { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Employee> Employee1Reference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("NorthwindModel.FK_Employees_Employees", "Employees", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Employees", "Orders")] public EntityCollection<Order> Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Employees", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Employees", "Orders", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "EmployeeTerritories", "Territories")] public EntityCollection<Territory> Territories { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Territory>("NorthwindModel.EmployeeTerritories", "Territories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Territory>("NorthwindModel.EmployeeTerritories", "Territories", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Invoice")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Invoice : EntityObject { #region Factory Method /// <summary> /// Create a new Invoice object. /// </summary> /// <param name="customerName">Initial value of the CustomerName property.</param> /// <param name="salesperson">Initial value of the Salesperson property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="shipperName">Initial value of the ShipperName property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="discount">Initial value of the Discount property.</param> public static Invoice CreateInvoice(global::System.String customerName, global::System.String salesperson, global::System.Int32 orderID, global::System.String shipperName, global::System.Int32 productID, global::System.String productName, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount) { Invoice invoice = new Invoice(); invoice.CustomerName = customerName; invoice.Salesperson = salesperson; invoice.OrderID = orderID; invoice.ShipperName = shipperName; invoice.ProductID = productID; invoice.ProductName = productName; invoice.UnitPrice = unitPrice; invoice.Quantity = quantity; invoice.Discount = discount; return invoice; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipName { get { return _ShipName; } set { OnShipNameChanging(value); ReportPropertyChanging("ShipName"); _ShipName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipName"); OnShipNameChanged(); } } private global::System.String _ShipName; partial void OnShipNameChanging(global::System.String value); partial void OnShipNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipAddress { get { return _ShipAddress; } set { OnShipAddressChanging(value); ReportPropertyChanging("ShipAddress"); _ShipAddress = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipAddress"); OnShipAddressChanged(); } } private global::System.String _ShipAddress; partial void OnShipAddressChanging(global::System.String value); partial void OnShipAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCity { get { return _ShipCity; } set { OnShipCityChanging(value); ReportPropertyChanging("ShipCity"); _ShipCity = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCity"); OnShipCityChanged(); } } private global::System.String _ShipCity; partial void OnShipCityChanging(global::System.String value); partial void OnShipCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipRegion { get { return _ShipRegion; } set { OnShipRegionChanging(value); ReportPropertyChanging("ShipRegion"); _ShipRegion = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipRegion"); OnShipRegionChanged(); } } private global::System.String _ShipRegion; partial void OnShipRegionChanging(global::System.String value); partial void OnShipRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipPostalCode { get { return _ShipPostalCode; } set { OnShipPostalCodeChanging(value); ReportPropertyChanging("ShipPostalCode"); _ShipPostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipPostalCode"); OnShipPostalCodeChanged(); } } private global::System.String _ShipPostalCode; partial void OnShipPostalCodeChanging(global::System.String value); partial void OnShipPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCountry { get { return _ShipCountry; } set { OnShipCountryChanging(value); ReportPropertyChanging("ShipCountry"); _ShipCountry = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCountry"); OnShipCountryChanged(); } } private global::System.String _ShipCountry; partial void OnShipCountryChanging(global::System.String value); partial void OnShipCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String CustomerID { get { return _CustomerID; } set { OnCustomerIDChanging(value); ReportPropertyChanging("CustomerID"); _CustomerID = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("CustomerID"); OnCustomerIDChanged(); } } private global::System.String _CustomerID; partial void OnCustomerIDChanging(global::System.String value); partial void OnCustomerIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CustomerName { get { return _CustomerName; } set { if (_CustomerName != value) { OnCustomerNameChanging(value); ReportPropertyChanging("CustomerName"); _CustomerName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CustomerName"); OnCustomerNameChanged(); } } } private global::System.String _CustomerName; partial void OnCustomerNameChanging(global::System.String value); partial void OnCustomerNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Address { get { return _Address; } set { OnAddressChanging(value); ReportPropertyChanging("Address"); _Address = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Address"); OnAddressChanged(); } } private global::System.String _Address; partial void OnAddressChanging(global::System.String value); partial void OnAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Region { get { return _Region; } set { OnRegionChanging(value); ReportPropertyChanging("Region"); _Region = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Region"); OnRegionChanged(); } } private global::System.String _Region; partial void OnRegionChanging(global::System.String value); partial void OnRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PostalCode { get { return _PostalCode; } set { OnPostalCodeChanging(value); ReportPropertyChanging("PostalCode"); _PostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PostalCode"); OnPostalCodeChanged(); } } private global::System.String _PostalCode; partial void OnPostalCodeChanging(global::System.String value); partial void OnPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Country { get { return _Country; } set { OnCountryChanging(value); ReportPropertyChanging("Country"); _Country = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Country"); OnCountryChanged(); } } private global::System.String _Country; partial void OnCountryChanging(global::System.String value); partial void OnCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String Salesperson { get { return _Salesperson; } set { if (_Salesperson != value) { OnSalespersonChanging(value); ReportPropertyChanging("Salesperson"); _Salesperson = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("Salesperson"); OnSalespersonChanged(); } } } private global::System.String _Salesperson; partial void OnSalespersonChanging(global::System.String value); partial void OnSalespersonChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> OrderDate { get { return _OrderDate; } set { OnOrderDateChanging(value); ReportPropertyChanging("OrderDate"); _OrderDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderDate"); OnOrderDateChanged(); } } private Nullable<global::System.DateTime> _OrderDate; partial void OnOrderDateChanging(Nullable<global::System.DateTime> value); partial void OnOrderDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> RequiredDate { get { return _RequiredDate; } set { OnRequiredDateChanging(value); ReportPropertyChanging("RequiredDate"); _RequiredDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("RequiredDate"); OnRequiredDateChanged(); } } private Nullable<global::System.DateTime> _RequiredDate; partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value); partial void OnRequiredDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ShipperName { get { return _ShipperName; } set { if (_ShipperName != value) { OnShipperNameChanging(value); ReportPropertyChanging("ShipperName"); _ShipperName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ShipperName"); OnShipperNameChanged(); } } } private global::System.String _ShipperName; partial void OnShipperNameChanging(global::System.String value); partial void OnShipperNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Decimal UnitPrice { get { return _UnitPrice; } set { if (_UnitPrice != value) { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } } private global::System.Decimal _UnitPrice; partial void OnUnitPriceChanging(global::System.Decimal value); partial void OnUnitPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int16 Quantity { get { return _Quantity; } set { if (_Quantity != value) { OnQuantityChanging(value); ReportPropertyChanging("Quantity"); _Quantity = StructuralObject.SetValidValue(value); ReportPropertyChanged("Quantity"); OnQuantityChanged(); } } } private global::System.Int16 _Quantity; partial void OnQuantityChanging(global::System.Int16 value); partial void OnQuantityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Single Discount { get { return _Discount; } set { if (_Discount != value) { OnDiscountChanging(value); ReportPropertyChanging("Discount"); _Discount = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discount"); OnDiscountChanged(); } } } private global::System.Single _Discount; partial void OnDiscountChanging(global::System.Single value); partial void OnDiscountChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> ExtendedPrice { get { return _ExtendedPrice; } set { OnExtendedPriceChanging(value); ReportPropertyChanging("ExtendedPrice"); _ExtendedPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("ExtendedPrice"); OnExtendedPriceChanged(); } } private Nullable<global::System.Decimal> _ExtendedPrice; partial void OnExtendedPriceChanging(Nullable<global::System.Decimal> value); partial void OnExtendedPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Freight { get { return _Freight; } set { OnFreightChanging(value); ReportPropertyChanging("Freight"); _Freight = StructuralObject.SetValidValue(value); ReportPropertyChanged("Freight"); OnFreightChanged(); } } private Nullable<global::System.Decimal> _Freight; partial void OnFreightChanging(Nullable<global::System.Decimal> value); partial void OnFreightChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Order : EntityObject { #region Factory Method /// <summary> /// Create a new Order object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> public static Order CreateOrder(global::System.Int32 orderID) { Order order = new Order(); order.OrderID = orderID; return order; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String CustomerID { get { return _CustomerID; } set { OnCustomerIDChanging(value); ReportPropertyChanging("CustomerID"); _CustomerID = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("CustomerID"); OnCustomerIDChanged(); } } private global::System.String _CustomerID; partial void OnCustomerIDChanging(global::System.String value); partial void OnCustomerIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> EmployeeID { get { return _EmployeeID; } set { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } private Nullable<global::System.Int32> _EmployeeID; partial void OnEmployeeIDChanging(Nullable<global::System.Int32> value); partial void OnEmployeeIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> OrderDate { get { return _OrderDate; } set { OnOrderDateChanging(value); ReportPropertyChanging("OrderDate"); _OrderDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderDate"); OnOrderDateChanged(); } } private Nullable<global::System.DateTime> _OrderDate; partial void OnOrderDateChanging(Nullable<global::System.DateTime> value); partial void OnOrderDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> RequiredDate { get { return _RequiredDate; } set { OnRequiredDateChanging(value); ReportPropertyChanging("RequiredDate"); _RequiredDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("RequiredDate"); OnRequiredDateChanged(); } } private Nullable<global::System.DateTime> _RequiredDate; partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value); partial void OnRequiredDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> ShipVia { get { return _ShipVia; } set { OnShipViaChanging(value); ReportPropertyChanging("ShipVia"); _ShipVia = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShipVia"); OnShipViaChanged(); } } private Nullable<global::System.Int32> _ShipVia; partial void OnShipViaChanging(Nullable<global::System.Int32> value); partial void OnShipViaChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Freight { get { return _Freight; } set { OnFreightChanging(value); ReportPropertyChanging("Freight"); _Freight = StructuralObject.SetValidValue(value); ReportPropertyChanged("Freight"); OnFreightChanged(); } } private Nullable<global::System.Decimal> _Freight; partial void OnFreightChanging(Nullable<global::System.Decimal> value); partial void OnFreightChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipName { get { return _ShipName; } set { OnShipNameChanging(value); ReportPropertyChanging("ShipName"); _ShipName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipName"); OnShipNameChanged(); } } private global::System.String _ShipName; partial void OnShipNameChanging(global::System.String value); partial void OnShipNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipAddress { get { return _ShipAddress; } set { OnShipAddressChanging(value); ReportPropertyChanging("ShipAddress"); _ShipAddress = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipAddress"); OnShipAddressChanged(); } } private global::System.String _ShipAddress; partial void OnShipAddressChanging(global::System.String value); partial void OnShipAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCity { get { return _ShipCity; } set { OnShipCityChanging(value); ReportPropertyChanging("ShipCity"); _ShipCity = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCity"); OnShipCityChanged(); } } private global::System.String _ShipCity; partial void OnShipCityChanging(global::System.String value); partial void OnShipCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipRegion { get { return _ShipRegion; } set { OnShipRegionChanging(value); ReportPropertyChanging("ShipRegion"); _ShipRegion = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipRegion"); OnShipRegionChanged(); } } private global::System.String _ShipRegion; partial void OnShipRegionChanging(global::System.String value); partial void OnShipRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipPostalCode { get { return _ShipPostalCode; } set { OnShipPostalCodeChanging(value); ReportPropertyChanging("ShipPostalCode"); _ShipPostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipPostalCode"); OnShipPostalCodeChanged(); } } private global::System.String _ShipPostalCode; partial void OnShipPostalCodeChanging(global::System.String value); partial void OnShipPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCountry { get { return _ShipCountry; } set { OnShipCountryChanging(value); ReportPropertyChanging("ShipCountry"); _ShipCountry = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCountry"); OnShipCountryChanged(); } } private global::System.String _ShipCountry; partial void OnShipCountryChanging(global::System.String value); partial void OnShipCountryChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Customers", "Customers")] public Customer Customer { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Customer> CustomerReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Customer>("NorthwindModel.FK_Orders_Customers", "Customers", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Employees", "Employees")] public Employee Employee { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Employee> EmployeeReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("NorthwindModel.FK_Orders_Employees", "Employees", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Order_Details")] public EntityCollection<Order_Detail> Order_Details { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Orders", "Order_Details"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Orders", "Order_Details", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Shippers", "Shippers")] public Shipper Shipper { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Shipper> ShipperReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Shipper>("NorthwindModel.FK_Orders_Shippers", "Shippers", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Detail")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Order_Detail : EntityObject { #region Factory Method /// <summary> /// Create a new Order_Detail object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="discount">Initial value of the Discount property.</param> public static Order_Detail CreateOrder_Detail(global::System.Int32 orderID, global::System.Int32 productID, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount) { Order_Detail order_Detail = new Order_Detail(); order_Detail.OrderID = orderID; order_Detail.ProductID = productID; order_Detail.UnitPrice = unitPrice; order_Detail.Quantity = quantity; order_Detail.Discount = discount; return order_Detail; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Decimal UnitPrice { get { return _UnitPrice; } set { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } private global::System.Decimal _UnitPrice; partial void OnUnitPriceChanging(global::System.Decimal value); partial void OnUnitPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int16 Quantity { get { return _Quantity; } set { OnQuantityChanging(value); ReportPropertyChanging("Quantity"); _Quantity = StructuralObject.SetValidValue(value); ReportPropertyChanged("Quantity"); OnQuantityChanged(); } } private global::System.Int16 _Quantity; partial void OnQuantityChanging(global::System.Int16 value); partial void OnQuantityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Single Discount { get { return _Discount; } set { OnDiscountChanging(value); ReportPropertyChanging("Discount"); _Discount = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discount"); OnDiscountChanged(); } } private global::System.Single _Discount; partial void OnDiscountChanging(global::System.Single value); partial void OnDiscountChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Orders", "Orders")] public Order Order { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Order> OrderReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Order>("NorthwindModel.FK_Order_Details_Orders", "Orders", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Products", "Products")] public Product Product { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Product> ProductReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Product>("NorthwindModel.FK_Order_Details_Products", "Products", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Details_Extended")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Order_Details_Extended : EntityObject { #region Factory Method /// <summary> /// Create a new Order_Details_Extended object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="discount">Initial value of the Discount property.</param> public static Order_Details_Extended CreateOrder_Details_Extended(global::System.Int32 orderID, global::System.Int32 productID, global::System.String productName, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount) { Order_Details_Extended order_Details_Extended = new Order_Details_Extended(); order_Details_Extended.OrderID = orderID; order_Details_Extended.ProductID = productID; order_Details_Extended.ProductName = productName; order_Details_Extended.UnitPrice = unitPrice; order_Details_Extended.Quantity = quantity; order_Details_Extended.Discount = discount; return order_Details_Extended; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Decimal UnitPrice { get { return _UnitPrice; } set { if (_UnitPrice != value) { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } } private global::System.Decimal _UnitPrice; partial void OnUnitPriceChanging(global::System.Decimal value); partial void OnUnitPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int16 Quantity { get { return _Quantity; } set { if (_Quantity != value) { OnQuantityChanging(value); ReportPropertyChanging("Quantity"); _Quantity = StructuralObject.SetValidValue(value); ReportPropertyChanged("Quantity"); OnQuantityChanged(); } } } private global::System.Int16 _Quantity; partial void OnQuantityChanging(global::System.Int16 value); partial void OnQuantityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Single Discount { get { return _Discount; } set { if (_Discount != value) { OnDiscountChanging(value); ReportPropertyChanging("Discount"); _Discount = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discount"); OnDiscountChanged(); } } } private global::System.Single _Discount; partial void OnDiscountChanging(global::System.Single value); partial void OnDiscountChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> ExtendedPrice { get { return _ExtendedPrice; } set { OnExtendedPriceChanging(value); ReportPropertyChanging("ExtendedPrice"); _ExtendedPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("ExtendedPrice"); OnExtendedPriceChanged(); } } private Nullable<global::System.Decimal> _ExtendedPrice; partial void OnExtendedPriceChanging(Nullable<global::System.Decimal> value); partial void OnExtendedPriceChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Order_Subtotal")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Order_Subtotal : EntityObject { #region Factory Method /// <summary> /// Create a new Order_Subtotal object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> public static Order_Subtotal CreateOrder_Subtotal(global::System.Int32 orderID) { Order_Subtotal order_Subtotal = new Order_Subtotal(); order_Subtotal.OrderID = orderID; return order_Subtotal; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Subtotal { get { return _Subtotal; } set { OnSubtotalChanging(value); ReportPropertyChanging("Subtotal"); _Subtotal = StructuralObject.SetValidValue(value); ReportPropertyChanged("Subtotal"); OnSubtotalChanged(); } } private Nullable<global::System.Decimal> _Subtotal; partial void OnSubtotalChanging(Nullable<global::System.Decimal> value); partial void OnSubtotalChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Orders_Qry")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Orders_Qry : EntityObject { #region Factory Method /// <summary> /// Create a new Orders_Qry object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Orders_Qry CreateOrders_Qry(global::System.Int32 orderID, global::System.String companyName) { Orders_Qry orders_Qry = new Orders_Qry(); orders_Qry.OrderID = orderID; orders_Qry.CompanyName = companyName; return orders_Qry; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String CustomerID { get { return _CustomerID; } set { OnCustomerIDChanging(value); ReportPropertyChanging("CustomerID"); _CustomerID = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("CustomerID"); OnCustomerIDChanged(); } } private global::System.String _CustomerID; partial void OnCustomerIDChanging(global::System.String value); partial void OnCustomerIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> EmployeeID { get { return _EmployeeID; } set { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } private Nullable<global::System.Int32> _EmployeeID; partial void OnEmployeeIDChanging(Nullable<global::System.Int32> value); partial void OnEmployeeIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> OrderDate { get { return _OrderDate; } set { OnOrderDateChanging(value); ReportPropertyChanging("OrderDate"); _OrderDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderDate"); OnOrderDateChanged(); } } private Nullable<global::System.DateTime> _OrderDate; partial void OnOrderDateChanging(Nullable<global::System.DateTime> value); partial void OnOrderDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> RequiredDate { get { return _RequiredDate; } set { OnRequiredDateChanging(value); ReportPropertyChanging("RequiredDate"); _RequiredDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("RequiredDate"); OnRequiredDateChanged(); } } private Nullable<global::System.DateTime> _RequiredDate; partial void OnRequiredDateChanging(Nullable<global::System.DateTime> value); partial void OnRequiredDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> ShipVia { get { return _ShipVia; } set { OnShipViaChanging(value); ReportPropertyChanging("ShipVia"); _ShipVia = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShipVia"); OnShipViaChanged(); } } private Nullable<global::System.Int32> _ShipVia; partial void OnShipViaChanging(Nullable<global::System.Int32> value); partial void OnShipViaChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Freight { get { return _Freight; } set { OnFreightChanging(value); ReportPropertyChanging("Freight"); _Freight = StructuralObject.SetValidValue(value); ReportPropertyChanged("Freight"); OnFreightChanged(); } } private Nullable<global::System.Decimal> _Freight; partial void OnFreightChanging(Nullable<global::System.Decimal> value); partial void OnFreightChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipName { get { return _ShipName; } set { OnShipNameChanging(value); ReportPropertyChanging("ShipName"); _ShipName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipName"); OnShipNameChanged(); } } private global::System.String _ShipName; partial void OnShipNameChanging(global::System.String value); partial void OnShipNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipAddress { get { return _ShipAddress; } set { OnShipAddressChanging(value); ReportPropertyChanging("ShipAddress"); _ShipAddress = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipAddress"); OnShipAddressChanged(); } } private global::System.String _ShipAddress; partial void OnShipAddressChanging(global::System.String value); partial void OnShipAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCity { get { return _ShipCity; } set { OnShipCityChanging(value); ReportPropertyChanging("ShipCity"); _ShipCity = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCity"); OnShipCityChanged(); } } private global::System.String _ShipCity; partial void OnShipCityChanging(global::System.String value); partial void OnShipCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipRegion { get { return _ShipRegion; } set { OnShipRegionChanging(value); ReportPropertyChanging("ShipRegion"); _ShipRegion = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipRegion"); OnShipRegionChanged(); } } private global::System.String _ShipRegion; partial void OnShipRegionChanging(global::System.String value); partial void OnShipRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipPostalCode { get { return _ShipPostalCode; } set { OnShipPostalCodeChanging(value); ReportPropertyChanging("ShipPostalCode"); _ShipPostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipPostalCode"); OnShipPostalCodeChanged(); } } private global::System.String _ShipPostalCode; partial void OnShipPostalCodeChanging(global::System.String value); partial void OnShipPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ShipCountry { get { return _ShipCountry; } set { OnShipCountryChanging(value); ReportPropertyChanging("ShipCountry"); _ShipCountry = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ShipCountry"); OnShipCountryChanged(); } } private global::System.String _ShipCountry; partial void OnShipCountryChanging(global::System.String value); partial void OnShipCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { if (_CompanyName != value) { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Address { get { return _Address; } set { OnAddressChanging(value); ReportPropertyChanging("Address"); _Address = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Address"); OnAddressChanged(); } } private global::System.String _Address; partial void OnAddressChanging(global::System.String value); partial void OnAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Region { get { return _Region; } set { OnRegionChanging(value); ReportPropertyChanging("Region"); _Region = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Region"); OnRegionChanged(); } } private global::System.String _Region; partial void OnRegionChanging(global::System.String value); partial void OnRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PostalCode { get { return _PostalCode; } set { OnPostalCodeChanging(value); ReportPropertyChanging("PostalCode"); _PostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PostalCode"); OnPostalCodeChanged(); } } private global::System.String _PostalCode; partial void OnPostalCodeChanging(global::System.String value); partial void OnPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Country { get { return _Country; } set { OnCountryChanging(value); ReportPropertyChanging("Country"); _Country = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Country"); OnCountryChanged(); } } private global::System.String _Country; partial void OnCountryChanging(global::System.String value); partial void OnCountryChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Product")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Product : EntityObject { #region Factory Method /// <summary> /// Create a new Product object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> public static Product CreateProduct(global::System.Int32 productID, global::System.String productName, global::System.Boolean discontinued) { Product product = new Product(); product.ProductID = productID; product.ProductName = productName; product.Discontinued = discontinued; return product; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int32 _ProductID; partial void OnProductIDChanging(global::System.Int32 value); partial void OnProductIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> SupplierID { get { return _SupplierID; } set { OnSupplierIDChanging(value); ReportPropertyChanging("SupplierID"); _SupplierID = StructuralObject.SetValidValue(value); ReportPropertyChanged("SupplierID"); OnSupplierIDChanged(); } } private Nullable<global::System.Int32> _SupplierID; partial void OnSupplierIDChanging(Nullable<global::System.Int32> value); partial void OnSupplierIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> CategoryID { get { return _CategoryID; } set { OnCategoryIDChanging(value); ReportPropertyChanging("CategoryID"); _CategoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategoryID"); OnCategoryIDChanged(); } } private Nullable<global::System.Int32> _CategoryID; partial void OnCategoryIDChanging(Nullable<global::System.Int32> value); partial void OnCategoryIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String QuantityPerUnit { get { return _QuantityPerUnit; } set { OnQuantityPerUnitChanging(value); ReportPropertyChanging("QuantityPerUnit"); _QuantityPerUnit = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("QuantityPerUnit"); OnQuantityPerUnitChanged(); } } private global::System.String _QuantityPerUnit; partial void OnQuantityPerUnitChanging(global::System.String value); partial void OnQuantityPerUnitChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> UnitPrice { get { return _UnitPrice; } set { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } private Nullable<global::System.Decimal> _UnitPrice; partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value); partial void OnUnitPriceChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> UnitsInStock { get { return _UnitsInStock; } set { OnUnitsInStockChanging(value); ReportPropertyChanging("UnitsInStock"); _UnitsInStock = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsInStock"); OnUnitsInStockChanged(); } } private Nullable<global::System.Int16> _UnitsInStock; partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value); partial void OnUnitsInStockChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> UnitsOnOrder { get { return _UnitsOnOrder; } set { OnUnitsOnOrderChanging(value); ReportPropertyChanging("UnitsOnOrder"); _UnitsOnOrder = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsOnOrder"); OnUnitsOnOrderChanged(); } } private Nullable<global::System.Int16> _UnitsOnOrder; partial void OnUnitsOnOrderChanging(Nullable<global::System.Int16> value); partial void OnUnitsOnOrderChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> ReorderLevel { get { return _ReorderLevel; } set { OnReorderLevelChanging(value); ReportPropertyChanging("ReorderLevel"); _ReorderLevel = StructuralObject.SetValidValue(value); ReportPropertyChanged("ReorderLevel"); OnReorderLevelChanged(); } } private Nullable<global::System.Int16> _ReorderLevel; partial void OnReorderLevelChanging(Nullable<global::System.Int16> value); partial void OnReorderLevelChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Boolean Discontinued { get { return _Discontinued; } set { OnDiscontinuedChanging(value); ReportPropertyChanging("Discontinued"); _Discontinued = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discontinued"); OnDiscontinuedChanged(); } } private global::System.Boolean _Discontinued; partial void OnDiscontinuedChanging(global::System.Boolean value); partial void OnDiscontinuedChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Categories", "Categories")] public Category Category { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Category> CategoryReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Category>("NorthwindModel.FK_Products_Categories", "Categories", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Order_Details_Products", "Order_Details")] public EntityCollection<Order_Detail> Order_Details { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Products", "Order_Details"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order_Detail>("NorthwindModel.FK_Order_Details_Products", "Order_Details", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Suppliers", "Suppliers")] public Supplier Supplier { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Supplier> SupplierReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Supplier>("NorthwindModel.FK_Products_Suppliers", "Suppliers", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Product_Sales_for_1997")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Product_Sales_for_1997 : EntityObject { #region Factory Method /// <summary> /// Create a new Product_Sales_for_1997 object. /// </summary> /// <param name="categoryName">Initial value of the CategoryName property.</param> /// <param name="productName">Initial value of the ProductName property.</param> public static Product_Sales_for_1997 CreateProduct_Sales_for_1997(global::System.String categoryName, global::System.String productName) { Product_Sales_for_1997 product_Sales_for_1997 = new Product_Sales_for_1997(); product_Sales_for_1997.CategoryName = categoryName; product_Sales_for_1997.ProductName = productName; return product_Sales_for_1997; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { if (_CategoryName != value) { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> ProductSales { get { return _ProductSales; } set { OnProductSalesChanging(value); ReportPropertyChanging("ProductSales"); _ProductSales = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductSales"); OnProductSalesChanged(); } } private Nullable<global::System.Decimal> _ProductSales; partial void OnProductSalesChanging(Nullable<global::System.Decimal> value); partial void OnProductSalesChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Products_Above_Average_Price")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Products_Above_Average_Price : EntityObject { #region Factory Method /// <summary> /// Create a new Products_Above_Average_Price object. /// </summary> /// <param name="productName">Initial value of the ProductName property.</param> public static Products_Above_Average_Price CreateProducts_Above_Average_Price(global::System.String productName) { Products_Above_Average_Price products_Above_Average_Price = new Products_Above_Average_Price(); products_Above_Average_Price.ProductName = productName; return products_Above_Average_Price; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> UnitPrice { get { return _UnitPrice; } set { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } private Nullable<global::System.Decimal> _UnitPrice; partial void OnUnitPriceChanging(Nullable<global::System.Decimal> value); partial void OnUnitPriceChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Products_by_Category")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Products_by_Category : EntityObject { #region Factory Method /// <summary> /// Create a new Products_by_Category object. /// </summary> /// <param name="categoryName">Initial value of the CategoryName property.</param> /// <param name="productName">Initial value of the ProductName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> public static Products_by_Category CreateProducts_by_Category(global::System.String categoryName, global::System.String productName, global::System.Boolean discontinued) { Products_by_Category products_by_Category = new Products_by_Category(); products_by_Category.CategoryName = categoryName; products_by_Category.ProductName = productName; products_by_Category.Discontinued = discontinued; return products_by_Category; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { if (_CategoryName != value) { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String QuantityPerUnit { get { return _QuantityPerUnit; } set { OnQuantityPerUnitChanging(value); ReportPropertyChanging("QuantityPerUnit"); _QuantityPerUnit = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("QuantityPerUnit"); OnQuantityPerUnitChanged(); } } private global::System.String _QuantityPerUnit; partial void OnQuantityPerUnitChanging(global::System.String value); partial void OnQuantityPerUnitChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int16> UnitsInStock { get { return _UnitsInStock; } set { OnUnitsInStockChanging(value); ReportPropertyChanging("UnitsInStock"); _UnitsInStock = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsInStock"); OnUnitsInStockChanged(); } } private Nullable<global::System.Int16> _UnitsInStock; partial void OnUnitsInStockChanging(Nullable<global::System.Int16> value); partial void OnUnitsInStockChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Boolean Discontinued { get { return _Discontinued; } set { if (_Discontinued != value) { OnDiscontinuedChanging(value); ReportPropertyChanging("Discontinued"); _Discontinued = StructuralObject.SetValidValue(value); ReportPropertyChanged("Discontinued"); OnDiscontinuedChanged(); } } } private global::System.Boolean _Discontinued; partial void OnDiscontinuedChanging(global::System.Boolean value); partial void OnDiscontinuedChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Region")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Region : EntityObject { #region Factory Method /// <summary> /// Create a new Region object. /// </summary> /// <param name="regionID">Initial value of the RegionID property.</param> /// <param name="regionDescription">Initial value of the RegionDescription property.</param> public static Region CreateRegion(global::System.Int32 regionID, global::System.String regionDescription) { Region region = new Region(); region.RegionID = regionID; region.RegionDescription = regionDescription; return region; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 RegionID { get { return _RegionID; } set { if (_RegionID != value) { OnRegionIDChanging(value); ReportPropertyChanging("RegionID"); _RegionID = StructuralObject.SetValidValue(value); ReportPropertyChanged("RegionID"); OnRegionIDChanged(); } } } private global::System.Int32 _RegionID; partial void OnRegionIDChanging(global::System.Int32 value); partial void OnRegionIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String RegionDescription { get { return _RegionDescription; } set { OnRegionDescriptionChanging(value); ReportPropertyChanging("RegionDescription"); _RegionDescription = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("RegionDescription"); OnRegionDescriptionChanged(); } } private global::System.String _RegionDescription; partial void OnRegionDescriptionChanging(global::System.String value); partial void OnRegionDescriptionChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Territories_Region", "Territories")] public EntityCollection<Territory> Territories { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Territory>("NorthwindModel.FK_Territories_Region", "Territories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Territory>("NorthwindModel.FK_Territories_Region", "Territories", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Sales_by_Category")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Sales_by_Category : EntityObject { #region Factory Method /// <summary> /// Create a new Sales_by_Category object. /// </summary> /// <param name="categoryID">Initial value of the CategoryID property.</param> /// <param name="categoryName">Initial value of the CategoryName property.</param> /// <param name="productName">Initial value of the ProductName property.</param> public static Sales_by_Category CreateSales_by_Category(global::System.Int32 categoryID, global::System.String categoryName, global::System.String productName) { Sales_by_Category sales_by_Category = new Sales_by_Category(); sales_by_Category.CategoryID = categoryID; sales_by_Category.CategoryName = categoryName; sales_by_Category.ProductName = productName; return sales_by_Category; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 CategoryID { get { return _CategoryID; } set { if (_CategoryID != value) { OnCategoryIDChanging(value); ReportPropertyChanging("CategoryID"); _CategoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategoryID"); OnCategoryIDChanged(); } } } private global::System.Int32 _CategoryID; partial void OnCategoryIDChanging(global::System.Int32 value); partial void OnCategoryIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CategoryName { get { return _CategoryName; } set { if (_CategoryName != value) { OnCategoryNameChanging(value); ReportPropertyChanging("CategoryName"); _CategoryName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CategoryName"); OnCategoryNameChanged(); } } } private global::System.String _CategoryName; partial void OnCategoryNameChanging(global::System.String value); partial void OnCategoryNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String ProductName { get { return _ProductName; } set { if (_ProductName != value) { OnProductNameChanging(value); ReportPropertyChanging("ProductName"); _ProductName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("ProductName"); OnProductNameChanged(); } } } private global::System.String _ProductName; partial void OnProductNameChanging(global::System.String value); partial void OnProductNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> ProductSales { get { return _ProductSales; } set { OnProductSalesChanging(value); ReportPropertyChanging("ProductSales"); _ProductSales = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductSales"); OnProductSalesChanged(); } } private Nullable<global::System.Decimal> _ProductSales; partial void OnProductSalesChanging(Nullable<global::System.Decimal> value); partial void OnProductSalesChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Sales_Totals_by_Amount")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Sales_Totals_by_Amount : EntityObject { #region Factory Method /// <summary> /// Create a new Sales_Totals_by_Amount object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Sales_Totals_by_Amount CreateSales_Totals_by_Amount(global::System.Int32 orderID, global::System.String companyName) { Sales_Totals_by_Amount sales_Totals_by_Amount = new Sales_Totals_by_Amount(); sales_Totals_by_Amount.OrderID = orderID; sales_Totals_by_Amount.CompanyName = companyName; return sales_Totals_by_Amount; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> SaleAmount { get { return _SaleAmount; } set { OnSaleAmountChanging(value); ReportPropertyChanging("SaleAmount"); _SaleAmount = StructuralObject.SetValidValue(value); ReportPropertyChanged("SaleAmount"); OnSaleAmountChanged(); } } private Nullable<global::System.Decimal> _SaleAmount; partial void OnSaleAmountChanging(Nullable<global::System.Decimal> value); partial void OnSaleAmountChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { if (_CompanyName != value) { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Shipper")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Shipper : EntityObject { #region Factory Method /// <summary> /// Create a new Shipper object. /// </summary> /// <param name="shipperID">Initial value of the ShipperID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Shipper CreateShipper(global::System.Int32 shipperID, global::System.String companyName) { Shipper shipper = new Shipper(); shipper.ShipperID = shipperID; shipper.CompanyName = companyName; return shipper; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 ShipperID { get { return _ShipperID; } set { if (_ShipperID != value) { OnShipperIDChanging(value); ReportPropertyChanging("ShipperID"); _ShipperID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShipperID"); OnShipperIDChanged(); } } } private global::System.Int32 _ShipperID; partial void OnShipperIDChanging(global::System.Int32 value); partial void OnShipperIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Phone { get { return _Phone; } set { OnPhoneChanging(value); ReportPropertyChanging("Phone"); _Phone = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Phone"); OnPhoneChanged(); } } private global::System.String _Phone; partial void OnPhoneChanging(global::System.String value); partial void OnPhoneChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Orders_Shippers", "Orders")] public EntityCollection<Order> Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Order>("NorthwindModel.FK_Orders_Shippers", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Order>("NorthwindModel.FK_Orders_Shippers", "Orders", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Summary_of_Sales_by_Quarter")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Summary_of_Sales_by_Quarter : EntityObject { #region Factory Method /// <summary> /// Create a new Summary_of_Sales_by_Quarter object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> public static Summary_of_Sales_by_Quarter CreateSummary_of_Sales_by_Quarter(global::System.Int32 orderID) { Summary_of_Sales_by_Quarter summary_of_Sales_by_Quarter = new Summary_of_Sales_by_Quarter(); summary_of_Sales_by_Quarter.OrderID = orderID; return summary_of_Sales_by_Quarter; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Subtotal { get { return _Subtotal; } set { OnSubtotalChanging(value); ReportPropertyChanging("Subtotal"); _Subtotal = StructuralObject.SetValidValue(value); ReportPropertyChanged("Subtotal"); OnSubtotalChanged(); } } private Nullable<global::System.Decimal> _Subtotal; partial void OnSubtotalChanging(Nullable<global::System.Decimal> value); partial void OnSubtotalChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Summary_of_Sales_by_Year")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Summary_of_Sales_by_Year : EntityObject { #region Factory Method /// <summary> /// Create a new Summary_of_Sales_by_Year object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> public static Summary_of_Sales_by_Year CreateSummary_of_Sales_by_Year(global::System.Int32 orderID) { Summary_of_Sales_by_Year summary_of_Sales_by_Year = new Summary_of_Sales_by_Year(); summary_of_Sales_by_Year.OrderID = orderID; return summary_of_Sales_by_Year; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable<global::System.DateTime> _ShippedDate; partial void OnShippedDateChanging(Nullable<global::System.DateTime> value); partial void OnShippedDateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int32 _OrderID; partial void OnOrderIDChanging(global::System.Int32 value); partial void OnOrderIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Decimal> Subtotal { get { return _Subtotal; } set { OnSubtotalChanging(value); ReportPropertyChanging("Subtotal"); _Subtotal = StructuralObject.SetValidValue(value); ReportPropertyChanged("Subtotal"); OnSubtotalChanged(); } } private Nullable<global::System.Decimal> _Subtotal; partial void OnSubtotalChanging(Nullable<global::System.Decimal> value); partial void OnSubtotalChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Supplier")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Supplier : EntityObject { #region Factory Method /// <summary> /// Create a new Supplier object. /// </summary> /// <param name="supplierID">Initial value of the SupplierID property.</param> /// <param name="companyName">Initial value of the CompanyName property.</param> public static Supplier CreateSupplier(global::System.Int32 supplierID, global::System.String companyName) { Supplier supplier = new Supplier(); supplier.SupplierID = supplierID; supplier.CompanyName = companyName; return supplier; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 SupplierID { get { return _SupplierID; } set { if (_SupplierID != value) { OnSupplierIDChanging(value); ReportPropertyChanging("SupplierID"); _SupplierID = StructuralObject.SetValidValue(value); ReportPropertyChanged("SupplierID"); OnSupplierIDChanged(); } } } private global::System.Int32 _SupplierID; partial void OnSupplierIDChanging(global::System.Int32 value); partial void OnSupplierIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String CompanyName { get { return _CompanyName; } set { OnCompanyNameChanging(value); ReportPropertyChanging("CompanyName"); _CompanyName = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CompanyName"); OnCompanyNameChanged(); } } private global::System.String _CompanyName; partial void OnCompanyNameChanging(global::System.String value); partial void OnCompanyNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ContactName { get { return _ContactName; } set { OnContactNameChanging(value); ReportPropertyChanging("ContactName"); _ContactName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ContactName"); OnContactNameChanged(); } } private global::System.String _ContactName; partial void OnContactNameChanging(global::System.String value); partial void OnContactNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String ContactTitle { get { return _ContactTitle; } set { OnContactTitleChanging(value); ReportPropertyChanging("ContactTitle"); _ContactTitle = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("ContactTitle"); OnContactTitleChanged(); } } private global::System.String _ContactTitle; partial void OnContactTitleChanging(global::System.String value); partial void OnContactTitleChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Address { get { return _Address; } set { OnAddressChanging(value); ReportPropertyChanging("Address"); _Address = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Address"); OnAddressChanged(); } } private global::System.String _Address; partial void OnAddressChanging(global::System.String value); partial void OnAddressChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Region { get { return _Region; } set { OnRegionChanging(value); ReportPropertyChanging("Region"); _Region = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Region"); OnRegionChanged(); } } private global::System.String _Region; partial void OnRegionChanging(global::System.String value); partial void OnRegionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String PostalCode { get { return _PostalCode; } set { OnPostalCodeChanging(value); ReportPropertyChanging("PostalCode"); _PostalCode = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("PostalCode"); OnPostalCodeChanged(); } } private global::System.String _PostalCode; partial void OnPostalCodeChanging(global::System.String value); partial void OnPostalCodeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Country { get { return _Country; } set { OnCountryChanging(value); ReportPropertyChanging("Country"); _Country = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Country"); OnCountryChanged(); } } private global::System.String _Country; partial void OnCountryChanging(global::System.String value); partial void OnCountryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Phone { get { return _Phone; } set { OnPhoneChanging(value); ReportPropertyChanging("Phone"); _Phone = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Phone"); OnPhoneChanged(); } } private global::System.String _Phone; partial void OnPhoneChanging(global::System.String value); partial void OnPhoneChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Fax { get { return _Fax; } set { OnFaxChanging(value); ReportPropertyChanging("Fax"); _Fax = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Fax"); OnFaxChanged(); } } private global::System.String _Fax; partial void OnFaxChanging(global::System.String value); partial void OnFaxChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String HomePage { get { return _HomePage; } set { OnHomePageChanging(value); ReportPropertyChanging("HomePage"); _HomePage = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("HomePage"); OnHomePageChanged(); } } private global::System.String _HomePage; partial void OnHomePageChanging(global::System.String value); partial void OnHomePageChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Products_Suppliers", "Products")] public EntityCollection<Product> Products { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Product>("NorthwindModel.FK_Products_Suppliers", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Product>("NorthwindModel.FK_Products_Suppliers", "Products", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="sysdiagram")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class sysdiagram : EntityObject { #region Factory Method /// <summary> /// Create a new sysdiagram object. /// </summary> /// <param name="name">Initial value of the name property.</param> /// <param name="principal_id">Initial value of the principal_id property.</param> /// <param name="diagram_id">Initial value of the diagram_id property.</param> public static sysdiagram Createsysdiagram(global::System.String name, global::System.Int32 principal_id, global::System.Int32 diagram_id) { sysdiagram sysdiagram = new sysdiagram(); sysdiagram.name = name; sysdiagram.principal_id = principal_id; sysdiagram.diagram_id = diagram_id; return sysdiagram; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String name { get { return _name; } set { OnnameChanging(value); ReportPropertyChanging("name"); _name = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("name"); OnnameChanged(); } } private global::System.String _name; partial void OnnameChanging(global::System.String value); partial void OnnameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 principal_id { get { return _principal_id; } set { Onprincipal_idChanging(value); ReportPropertyChanging("principal_id"); _principal_id = StructuralObject.SetValidValue(value); ReportPropertyChanged("principal_id"); Onprincipal_idChanged(); } } private global::System.Int32 _principal_id; partial void Onprincipal_idChanging(global::System.Int32 value); partial void Onprincipal_idChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 diagram_id { get { return _diagram_id; } set { if (_diagram_id != value) { Ondiagram_idChanging(value); ReportPropertyChanging("diagram_id"); _diagram_id = StructuralObject.SetValidValue(value); ReportPropertyChanged("diagram_id"); Ondiagram_idChanged(); } } } private global::System.Int32 _diagram_id; partial void Ondiagram_idChanging(global::System.Int32 value); partial void Ondiagram_idChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> version { get { return _version; } set { OnversionChanging(value); ReportPropertyChanging("version"); _version = StructuralObject.SetValidValue(value); ReportPropertyChanged("version"); OnversionChanged(); } } private Nullable<global::System.Int32> _version; partial void OnversionChanging(Nullable<global::System.Int32> value); partial void OnversionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.Byte[] definition { get { return StructuralObject.GetValidValue(_definition); } set { OndefinitionChanging(value); ReportPropertyChanging("definition"); _definition = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("definition"); OndefinitionChanged(); } } private global::System.Byte[] _definition; partial void OndefinitionChanging(global::System.Byte[] value); partial void OndefinitionChanged(); #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="NorthwindModel", Name="Territory")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Territory : EntityObject { #region Factory Method /// <summary> /// Create a new Territory object. /// </summary> /// <param name="territoryID">Initial value of the TerritoryID property.</param> /// <param name="territoryDescription">Initial value of the TerritoryDescription property.</param> /// <param name="regionID">Initial value of the RegionID property.</param> public static Territory CreateTerritory(global::System.String territoryID, global::System.String territoryDescription, global::System.Int32 regionID) { Territory territory = new Territory(); territory.TerritoryID = territoryID; territory.TerritoryDescription = territoryDescription; territory.RegionID = regionID; return territory; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.String TerritoryID { get { return _TerritoryID; } set { if (_TerritoryID != value) { OnTerritoryIDChanging(value); ReportPropertyChanging("TerritoryID"); _TerritoryID = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("TerritoryID"); OnTerritoryIDChanged(); } } } private global::System.String _TerritoryID; partial void OnTerritoryIDChanging(global::System.String value); partial void OnTerritoryIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String TerritoryDescription { get { return _TerritoryDescription; } set { OnTerritoryDescriptionChanging(value); ReportPropertyChanging("TerritoryDescription"); _TerritoryDescription = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("TerritoryDescription"); OnTerritoryDescriptionChanged(); } } private global::System.String _TerritoryDescription; partial void OnTerritoryDescriptionChanging(global::System.String value); partial void OnTerritoryDescriptionChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 RegionID { get { return _RegionID; } set { OnRegionIDChanging(value); ReportPropertyChanging("RegionID"); _RegionID = StructuralObject.SetValidValue(value); ReportPropertyChanged("RegionID"); OnRegionIDChanged(); } } private global::System.Int32 _RegionID; partial void OnRegionIDChanging(global::System.Int32 value); partial void OnRegionIDChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "FK_Territories_Region", "Region")] public Region Region { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Region> RegionReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Region>("NorthwindModel.FK_Territories_Region", "Region", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("NorthwindModel", "EmployeeTerritories", "Employees")] public EntityCollection<Employee> Employees { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Employee>("NorthwindModel.EmployeeTerritories", "Employees"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Employee>("NorthwindModel.EmployeeTerritories", "Employees", value); } } } #endregion } #endregion }