All the controls missing in WPF. Over 1 million downloads.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2711 lines
107 KiB

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.296
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// Original file name:
// Generation date: 5/3/2013 1:33:16 PM
namespace Xceed.Wpf.Toolkit.LiveExplorer.NorthwindDataService
{
/// <summary>
/// There are no comments for NorthwindEntities in the schema.
/// </summary>
public partial class NorthwindEntities : global::System.Data.Services.Client.DataServiceContext
{
/// <summary>
/// Initialize a new NorthwindEntities object.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public NorthwindEntities(global::System.Uri serviceRoot) :
base(serviceRoot)
{
this.ResolveName = new global::System.Func<global::System.Type, string>(this.ResolveNameFromType);
this.ResolveType = new global::System.Func<string, global::System.Type>(this.ResolveTypeFromName);
this.OnContextCreated();
}
partial void OnContextCreated();
/// <summary>
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected global::System.Type ResolveTypeFromName(string typeName)
{
if (typeName.StartsWith("NorthwindModel", global::System.StringComparison.Ordinal))
{
return this.GetType().Assembly.GetType(string.Concat("Xceed.Wpf.Toolkit.LiveExplorer.NorthwindDataService", typeName.Substring(14)), false);
}
return null;
}
/// <summary>
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected string ResolveNameFromType(global::System.Type clientType)
{
if (clientType.Namespace.Equals("Xceed.Wpf.Toolkit.LiveExplorer.NorthwindDataService", global::System.StringComparison.Ordinal))
{
return string.Concat("NorthwindModel.", clientType.Name);
}
return null;
}
/// <summary>
/// There are no comments for Categories in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Category> Categories
{
get
{
if ((this._Categories == null))
{
this._Categories = base.CreateQuery<Category>("Categories");
}
return this._Categories;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Category> _Categories;
/// <summary>
/// There are no comments for Contacts in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Contact> Contacts
{
get
{
if ((this._Contacts == null))
{
this._Contacts = base.CreateQuery<Contact>("Contacts");
}
return this._Contacts;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Contact> _Contacts;
/// <summary>
/// There are no comments for Customers in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Customer> Customers
{
get
{
if ((this._Customers == null))
{
this._Customers = base.CreateQuery<Customer>("Customers");
}
return this._Customers;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Customer> _Customers;
/// <summary>
/// There are no comments for Employees in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Employee> Employees
{
get
{
if ((this._Employees == null))
{
this._Employees = base.CreateQuery<Employee>("Employees");
}
return this._Employees;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Employee> _Employees;
/// <summary>
/// There are no comments for Order_Details in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Order_Detail> Order_Details
{
get
{
if ((this._Order_Details == null))
{
this._Order_Details = base.CreateQuery<Order_Detail>("Order_Details");
}
return this._Order_Details;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Order_Detail> _Order_Details;
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Order> Orders
{
get
{
if ((this._Orders == null))
{
this._Orders = base.CreateQuery<Order>("Orders");
}
return this._Orders;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Order> _Orders;
/// <summary>
/// There are no comments for Products in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Product> Products
{
get
{
if ((this._Products == null))
{
this._Products = base.CreateQuery<Product>("Products");
}
return this._Products;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Product> _Products;
/// <summary>
/// There are no comments for Shippers in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery<Shipper> Shippers
{
get
{
if ((this._Shippers == null))
{
this._Shippers = base.CreateQuery<Shipper>("Shippers");
}
return this._Shippers;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery<Shipper> _Shippers;
/// <summary>
/// There are no comments for Categories in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToCategories(Category category)
{
base.AddObject("Categories", category);
}
/// <summary>
/// There are no comments for Contacts in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToContacts(Contact contact)
{
base.AddObject("Contacts", contact);
}
/// <summary>
/// There are no comments for Customers in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToCustomers(Customer customer)
{
base.AddObject("Customers", customer);
}
/// <summary>
/// There are no comments for Employees in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToEmployees(Employee employee)
{
base.AddObject("Employees", employee);
}
/// <summary>
/// There are no comments for Order_Details in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToOrder_Details(Order_Detail order_Detail)
{
base.AddObject("Order_Details", order_Detail);
}
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToOrders(Order order)
{
base.AddObject("Orders", order);
}
/// <summary>
/// There are no comments for Products in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToProducts(Product product)
{
base.AddObject("Products", product);
}
/// <summary>
/// There are no comments for Shippers in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToShippers(Shipper shipper)
{
base.AddObject("Shippers", shipper);
}
}
/// <summary>
/// There are no comments for NorthwindModel.Category in the schema.
/// </summary>
/// <KeyProperties>
/// CategoryID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Categories")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("CategoryID")]
public partial class Category : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Category object.
/// </summary>
/// <param name="categoryID">Initial value of CategoryID.</param>
/// <param name="categoryName">Initial value of CategoryName.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Category CreateCategory(int categoryID, string categoryName)
{
Category category = new Category();
category.CategoryID = categoryID;
category.CategoryName = categoryName;
return category;
}
/// <summary>
/// There are no comments for Property CategoryID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int CategoryID
{
get
{
return this._CategoryID;
}
set
{
this.OnCategoryIDChanging(value);
this._CategoryID = value;
this.OnCategoryIDChanged();
this.OnPropertyChanged("CategoryID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _CategoryID;
partial void OnCategoryIDChanging(int value);
partial void OnCategoryIDChanged();
/// <summary>
/// There are no comments for Property CategoryName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string CategoryName
{
get
{
return this._CategoryName;
}
set
{
this.OnCategoryNameChanging(value);
this._CategoryName = value;
this.OnCategoryNameChanged();
this.OnPropertyChanged("CategoryName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _CategoryName;
partial void OnCategoryNameChanging(string value);
partial void OnCategoryNameChanged();
/// <summary>
/// There are no comments for Property Description in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Description
{
get
{
return this._Description;
}
set
{
this.OnDescriptionChanging(value);
this._Description = value;
this.OnDescriptionChanged();
this.OnPropertyChanged("Description");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Description;
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
/// <summary>
/// There are no comments for Property Picture in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public byte[] Picture
{
get
{
if ((this._Picture != null))
{
return ((byte[])(this._Picture.Clone()));
}
else
{
return null;
}
}
set
{
this.OnPictureChanging(value);
this._Picture = value;
this.OnPictureChanged();
this.OnPropertyChanged("Picture");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private byte[] _Picture;
partial void OnPictureChanging(byte[] value);
partial void OnPictureChanged();
/// <summary>
/// There are no comments for Products in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Product> Products
{
get
{
return this._Products;
}
set
{
this._Products = value;
this.OnPropertyChanged("Products");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Product> _Products = new global::System.Data.Services.Client.DataServiceCollection<Product>(null, System.Data.Services.Client.TrackingMode.None);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Contact in the schema.
/// </summary>
/// <KeyProperties>
/// ContactID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Contacts")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("ContactID")]
public partial class Contact : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Contact object.
/// </summary>
/// <param name="contactID">Initial value of ContactID.</param>
/// <param name="companyName">Initial value of CompanyName.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Contact CreateContact(int contactID, string companyName)
{
Contact contact = new Contact();
contact.ContactID = contactID;
contact.CompanyName = companyName;
return contact;
}
/// <summary>
/// There are no comments for Property ContactID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int ContactID
{
get
{
return this._ContactID;
}
set
{
this.OnContactIDChanging(value);
this._ContactID = value;
this.OnContactIDChanged();
this.OnPropertyChanged("ContactID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _ContactID;
partial void OnContactIDChanging(int value);
partial void OnContactIDChanged();
/// <summary>
/// There are no comments for Property ContactType in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ContactType
{
get
{
return this._ContactType;
}
set
{
this.OnContactTypeChanging(value);
this._ContactType = value;
this.OnContactTypeChanged();
this.OnPropertyChanged("ContactType");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ContactType;
partial void OnContactTypeChanging(string value);
partial void OnContactTypeChanged();
/// <summary>
/// There are no comments for Property CompanyName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string CompanyName
{
get
{
return this._CompanyName;
}
set
{
this.OnCompanyNameChanging(value);
this._CompanyName = value;
this.OnCompanyNameChanged();
this.OnPropertyChanged("CompanyName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _CompanyName;
partial void OnCompanyNameChanging(string value);
partial void OnCompanyNameChanged();
/// <summary>
/// There are no comments for Property ContactName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ContactName
{
get
{
return this._ContactName;
}
set
{
this.OnContactNameChanging(value);
this._ContactName = value;
this.OnContactNameChanged();
this.OnPropertyChanged("ContactName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ContactName;
partial void OnContactNameChanging(string value);
partial void OnContactNameChanged();
/// <summary>
/// There are no comments for Property ContactTitle in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ContactTitle
{
get
{
return this._ContactTitle;
}
set
{
this.OnContactTitleChanging(value);
this._ContactTitle = value;
this.OnContactTitleChanged();
this.OnPropertyChanged("ContactTitle");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ContactTitle;
partial void OnContactTitleChanging(string value);
partial void OnContactTitleChanged();
/// <summary>
/// There are no comments for Property Address in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Address
{
get
{
return this._Address;
}
set
{
this.OnAddressChanging(value);
this._Address = value;
this.OnAddressChanged();
this.OnPropertyChanged("Address");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Address;
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
/// <summary>
/// There are no comments for Property City in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string City
{
get
{
return this._City;
}
set
{
this.OnCityChanging(value);
this._City = value;
this.OnCityChanged();
this.OnPropertyChanged("City");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _City;
partial void OnCityChanging(string value);
partial void OnCityChanged();
/// <summary>
/// There are no comments for Property Region in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Region
{
get
{
return this._Region;
}
set
{
this.OnRegionChanging(value);
this._Region = value;
this.OnRegionChanged();
this.OnPropertyChanged("Region");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Region;
partial void OnRegionChanging(string value);
partial void OnRegionChanged();
/// <summary>
/// There are no comments for Property PostalCode in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PostalCode
{
get
{
return this._PostalCode;
}
set
{
this.OnPostalCodeChanging(value);
this._PostalCode = value;
this.OnPostalCodeChanged();
this.OnPropertyChanged("PostalCode");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PostalCode;
partial void OnPostalCodeChanging(string value);
partial void OnPostalCodeChanged();
/// <summary>
/// There are no comments for Property Country in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Country
{
get
{
return this._Country;
}
set
{
this.OnCountryChanging(value);
this._Country = value;
this.OnCountryChanged();
this.OnPropertyChanged("Country");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Country;
partial void OnCountryChanging(string value);
partial void OnCountryChanged();
/// <summary>
/// There are no comments for Property Phone in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Phone
{
get
{
return this._Phone;
}
set
{
this.OnPhoneChanging(value);
this._Phone = value;
this.OnPhoneChanged();
this.OnPropertyChanged("Phone");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Phone;
partial void OnPhoneChanging(string value);
partial void OnPhoneChanged();
/// <summary>
/// There are no comments for Property Extension in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Extension
{
get
{
return this._Extension;
}
set
{
this.OnExtensionChanging(value);
this._Extension = value;
this.OnExtensionChanged();
this.OnPropertyChanged("Extension");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Extension;
partial void OnExtensionChanging(string value);
partial void OnExtensionChanged();
/// <summary>
/// There are no comments for Property Fax in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Fax
{
get
{
return this._Fax;
}
set
{
this.OnFaxChanging(value);
this._Fax = value;
this.OnFaxChanged();
this.OnPropertyChanged("Fax");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Fax;
partial void OnFaxChanging(string value);
partial void OnFaxChanged();
/// <summary>
/// There are no comments for Property HomePage in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string HomePage
{
get
{
return this._HomePage;
}
set
{
this.OnHomePageChanging(value);
this._HomePage = value;
this.OnHomePageChanged();
this.OnPropertyChanged("HomePage");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _HomePage;
partial void OnHomePageChanging(string value);
partial void OnHomePageChanged();
/// <summary>
/// There are no comments for Property PhotoPath in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PhotoPath
{
get
{
return this._PhotoPath;
}
set
{
this.OnPhotoPathChanging(value);
this._PhotoPath = value;
this.OnPhotoPathChanged();
this.OnPropertyChanged("PhotoPath");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PhotoPath;
partial void OnPhotoPathChanging(string value);
partial void OnPhotoPathChanged();
/// <summary>
/// There are no comments for Property Photo in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public byte[] Photo
{
get
{
if ((this._Photo != null))
{
return ((byte[])(this._Photo.Clone()));
}
else
{
return null;
}
}
set
{
this.OnPhotoChanging(value);
this._Photo = value;
this.OnPhotoChanged();
this.OnPropertyChanged("Photo");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private byte[] _Photo;
partial void OnPhotoChanging(byte[] value);
partial void OnPhotoChanged();
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Customer in the schema.
/// </summary>
/// <KeyProperties>
/// CustomerID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Customers")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("CustomerID")]
public partial class Customer : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Customer object.
/// </summary>
/// <param name="customerID">Initial value of CustomerID.</param>
/// <param name="acronym">Initial value of Acronym.</param>
/// <param name="companyName">Initial value of CompanyName.</param>
/// <param name="employeeID">Initial value of EmployeeID.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Customer CreateCustomer(int customerID, string acronym, string companyName, int employeeID)
{
Customer customer = new Customer();
customer.CustomerID = customerID;
customer.Acronym = acronym;
customer.CompanyName = companyName;
customer.EmployeeID = employeeID;
return customer;
}
/// <summary>
/// There are no comments for Property CustomerID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int CustomerID
{
get
{
return this._CustomerID;
}
set
{
this.OnCustomerIDChanging(value);
this._CustomerID = value;
this.OnCustomerIDChanged();
this.OnPropertyChanged("CustomerID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _CustomerID;
partial void OnCustomerIDChanging(int value);
partial void OnCustomerIDChanged();
/// <summary>
/// There are no comments for Property Acronym in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Acronym
{
get
{
return this._Acronym;
}
set
{
this.OnAcronymChanging(value);
this._Acronym = value;
this.OnAcronymChanged();
this.OnPropertyChanged("Acronym");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Acronym;
partial void OnAcronymChanging(string value);
partial void OnAcronymChanged();
/// <summary>
/// There are no comments for Property CompanyName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string CompanyName
{
get
{
return this._CompanyName;
}
set
{
this.OnCompanyNameChanging(value);
this._CompanyName = value;
this.OnCompanyNameChanged();
this.OnPropertyChanged("CompanyName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _CompanyName;
partial void OnCompanyNameChanging(string value);
partial void OnCompanyNameChanged();
/// <summary>
/// There are no comments for Property ContactName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ContactName
{
get
{
return this._ContactName;
}
set
{
this.OnContactNameChanging(value);
this._ContactName = value;
this.OnContactNameChanged();
this.OnPropertyChanged("ContactName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ContactName;
partial void OnContactNameChanging(string value);
partial void OnContactNameChanged();
/// <summary>
/// There are no comments for Property ContactTitle in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ContactTitle
{
get
{
return this._ContactTitle;
}
set
{
this.OnContactTitleChanging(value);
this._ContactTitle = value;
this.OnContactTitleChanged();
this.OnPropertyChanged("ContactTitle");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ContactTitle;
partial void OnContactTitleChanging(string value);
partial void OnContactTitleChanged();
/// <summary>
/// There are no comments for Property Address in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Address
{
get
{
return this._Address;
}
set
{
this.OnAddressChanging(value);
this._Address = value;
this.OnAddressChanged();
this.OnPropertyChanged("Address");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Address;
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
/// <summary>
/// There are no comments for Property City in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string City
{
get
{
return this._City;
}
set
{
this.OnCityChanging(value);
this._City = value;
this.OnCityChanged();
this.OnPropertyChanged("City");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _City;
partial void OnCityChanging(string value);
partial void OnCityChanged();
/// <summary>
/// There are no comments for Property Region in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Region
{
get
{
return this._Region;
}
set
{
this.OnRegionChanging(value);
this._Region = value;
this.OnRegionChanged();
this.OnPropertyChanged("Region");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Region;
partial void OnRegionChanging(string value);
partial void OnRegionChanged();
/// <summary>
/// There are no comments for Property PostalCode in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PostalCode
{
get
{
return this._PostalCode;
}
set
{
this.OnPostalCodeChanging(value);
this._PostalCode = value;
this.OnPostalCodeChanged();
this.OnPropertyChanged("PostalCode");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PostalCode;
partial void OnPostalCodeChanging(string value);
partial void OnPostalCodeChanged();
/// <summary>
/// There are no comments for Property Country in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Country
{
get
{
return this._Country;
}
set
{
this.OnCountryChanging(value);
this._Country = value;
this.OnCountryChanged();
this.OnPropertyChanged("Country");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Country;
partial void OnCountryChanging(string value);
partial void OnCountryChanged();
/// <summary>
/// There are no comments for Property Phone in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Phone
{
get
{
return this._Phone;
}
set
{
this.OnPhoneChanging(value);
this._Phone = value;
this.OnPhoneChanged();
this.OnPropertyChanged("Phone");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Phone;
partial void OnPhoneChanging(string value);
partial void OnPhoneChanged();
/// <summary>
/// There are no comments for Property Fax in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Fax
{
get
{
return this._Fax;
}
set
{
this.OnFaxChanging(value);
this._Fax = value;
this.OnFaxChanged();
this.OnPropertyChanged("Fax");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Fax;
partial void OnFaxChanging(string value);
partial void OnFaxChanged();
/// <summary>
/// There are no comments for Property EmployeeID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int EmployeeID
{
get
{
return this._EmployeeID;
}
set
{
this.OnEmployeeIDChanging(value);
this._EmployeeID = value;
this.OnEmployeeIDChanged();
this.OnPropertyChanged("EmployeeID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _EmployeeID;
partial void OnEmployeeIDChanging(int value);
partial void OnEmployeeIDChanged();
/// <summary>
/// There are no comments for Employee in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Employee Employee
{
get
{
return this._Employee;
}
set
{
this._Employee = value;
this.OnPropertyChanged("Employee");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Employee _Employee;
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Order> Orders
{
get
{
return this._Orders;
}
set
{
this._Orders = value;
this.OnPropertyChanged("Orders");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Order> _Orders = new global::System.Data.Services.Client.DataServiceCollection<Order>(null, System.Data.Services.Client.TrackingMode.None);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Employee in the schema.
/// </summary>
/// <KeyProperties>
/// EmployeeID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Employees")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("EmployeeID")]
public partial class Employee : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Employee object.
/// </summary>
/// <param name="employeeID">Initial value of EmployeeID.</param>
/// <param name="lastName">Initial value of LastName.</param>
/// <param name="firstName">Initial value of FirstName.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Employee CreateEmployee(int employeeID, string lastName, string firstName)
{
Employee employee = new Employee();
employee.EmployeeID = employeeID;
employee.LastName = lastName;
employee.FirstName = firstName;
return employee;
}
/// <summary>
/// There are no comments for Property EmployeeID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int EmployeeID
{
get
{
return this._EmployeeID;
}
set
{
this.OnEmployeeIDChanging(value);
this._EmployeeID = value;
this.OnEmployeeIDChanged();
this.OnPropertyChanged("EmployeeID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _EmployeeID;
partial void OnEmployeeIDChanging(int value);
partial void OnEmployeeIDChanged();
/// <summary>
/// There are no comments for Property LastName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string LastName
{
get
{
return this._LastName;
}
set
{
this.OnLastNameChanging(value);
this._LastName = value;
this.OnLastNameChanged();
this.OnPropertyChanged("LastName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _LastName;
partial void OnLastNameChanging(string value);
partial void OnLastNameChanged();
/// <summary>
/// There are no comments for Property FirstName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string FirstName
{
get
{
return this._FirstName;
}
set
{
this.OnFirstNameChanging(value);
this._FirstName = value;
this.OnFirstNameChanged();
this.OnPropertyChanged("FirstName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _FirstName;
partial void OnFirstNameChanging(string value);
partial void OnFirstNameChanged();
/// <summary>
/// There are no comments for Property Title in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Title
{
get
{
return this._Title;
}
set
{
this.OnTitleChanging(value);
this._Title = value;
this.OnTitleChanged();
this.OnPropertyChanged("Title");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Title;
partial void OnTitleChanging(string value);
partial void OnTitleChanged();
/// <summary>
/// There are no comments for Property TitleOfCourtesy in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string TitleOfCourtesy
{
get
{
return this._TitleOfCourtesy;
}
set
{
this.OnTitleOfCourtesyChanging(value);
this._TitleOfCourtesy = value;
this.OnTitleOfCourtesyChanged();
this.OnPropertyChanged("TitleOfCourtesy");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _TitleOfCourtesy;
partial void OnTitleOfCourtesyChanging(string value);
partial void OnTitleOfCourtesyChanged();
/// <summary>
/// There are no comments for Property BirthDate in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<global::System.DateTime> BirthDate
{
get
{
return this._BirthDate;
}
set
{
this.OnBirthDateChanging(value);
this._BirthDate = value;
this.OnBirthDateChanged();
this.OnPropertyChanged("BirthDate");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<global::System.DateTime> _BirthDate;
partial void OnBirthDateChanging(global::System.Nullable<global::System.DateTime> value);
partial void OnBirthDateChanged();
/// <summary>
/// There are no comments for Property HireDate in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<global::System.DateTime> HireDate
{
get
{
return this._HireDate;
}
set
{
this.OnHireDateChanging(value);
this._HireDate = value;
this.OnHireDateChanged();
this.OnPropertyChanged("HireDate");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<global::System.DateTime> _HireDate;
partial void OnHireDateChanging(global::System.Nullable<global::System.DateTime> value);
partial void OnHireDateChanged();
/// <summary>
/// There are no comments for Property Address in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Address
{
get
{
return this._Address;
}
set
{
this.OnAddressChanging(value);
this._Address = value;
this.OnAddressChanged();
this.OnPropertyChanged("Address");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Address;
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
/// <summary>
/// There are no comments for Property City in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string City
{
get
{
return this._City;
}
set
{
this.OnCityChanging(value);
this._City = value;
this.OnCityChanged();
this.OnPropertyChanged("City");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _City;
partial void OnCityChanging(string value);
partial void OnCityChanged();
/// <summary>
/// There are no comments for Property Region in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Region
{
get
{
return this._Region;
}
set
{
this.OnRegionChanging(value);
this._Region = value;
this.OnRegionChanged();
this.OnPropertyChanged("Region");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Region;
partial void OnRegionChanging(string value);
partial void OnRegionChanged();
/// <summary>
/// There are no comments for Property PostalCode in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PostalCode
{
get
{
return this._PostalCode;
}
set
{
this.OnPostalCodeChanging(value);
this._PostalCode = value;
this.OnPostalCodeChanged();
this.OnPropertyChanged("PostalCode");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PostalCode;
partial void OnPostalCodeChanging(string value);
partial void OnPostalCodeChanged();
/// <summary>
/// There are no comments for Property Country in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Country
{
get
{
return this._Country;
}
set
{
this.OnCountryChanging(value);
this._Country = value;
this.OnCountryChanged();
this.OnPropertyChanged("Country");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Country;
partial void OnCountryChanging(string value);
partial void OnCountryChanged();
/// <summary>
/// There are no comments for Property HomePhone in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string HomePhone
{
get
{
return this._HomePhone;
}
set
{
this.OnHomePhoneChanging(value);
this._HomePhone = value;
this.OnHomePhoneChanged();
this.OnPropertyChanged("HomePhone");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _HomePhone;
partial void OnHomePhoneChanging(string value);
partial void OnHomePhoneChanged();
/// <summary>
/// There are no comments for Property Extension in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Extension
{
get
{
return this._Extension;
}
set
{
this.OnExtensionChanging(value);
this._Extension = value;
this.OnExtensionChanged();
this.OnPropertyChanged("Extension");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Extension;
partial void OnExtensionChanging(string value);
partial void OnExtensionChanged();
/// <summary>
/// There are no comments for Property Photo in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public byte[] Photo
{
get
{
if ((this._Photo != null))
{
return ((byte[])(this._Photo.Clone()));
}
else
{
return null;
}
}
set
{
this.OnPhotoChanging(value);
this._Photo = value;
this.OnPhotoChanged();
this.OnPropertyChanged("Photo");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private byte[] _Photo;
partial void OnPhotoChanging(byte[] value);
partial void OnPhotoChanged();
/// <summary>
/// There are no comments for Property Notes in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Notes
{
get
{
return this._Notes;
}
set
{
this.OnNotesChanging(value);
this._Notes = value;
this.OnNotesChanged();
this.OnPropertyChanged("Notes");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Notes;
partial void OnNotesChanging(string value);
partial void OnNotesChanged();
/// <summary>
/// There are no comments for Property ReportsTo in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<int> ReportsTo
{
get
{
return this._ReportsTo;
}
set
{
this.OnReportsToChanging(value);
this._ReportsTo = value;
this.OnReportsToChanged();
this.OnPropertyChanged("ReportsTo");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<int> _ReportsTo;
partial void OnReportsToChanging(global::System.Nullable<int> value);
partial void OnReportsToChanged();
/// <summary>
/// There are no comments for Property PhotoPath in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PhotoPath
{
get
{
return this._PhotoPath;
}
set
{
this.OnPhotoPathChanging(value);
this._PhotoPath = value;
this.OnPhotoPathChanged();
this.OnPropertyChanged("PhotoPath");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PhotoPath;
partial void OnPhotoPathChanging(string value);
partial void OnPhotoPathChanged();
/// <summary>
/// There are no comments for Customers in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Customer> Customers
{
get
{
return this._Customers;
}
set
{
this._Customers = value;
this.OnPropertyChanged("Customers");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Customer> _Customers = new global::System.Data.Services.Client.DataServiceCollection<Customer>(null, System.Data.Services.Client.TrackingMode.None);
/// <summary>
/// There are no comments for Employees1 in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Employee> Employees1
{
get
{
return this._Employees1;
}
set
{
this._Employees1 = value;
this.OnPropertyChanged("Employees1");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Employee> _Employees1 = new global::System.Data.Services.Client.DataServiceCollection<Employee>(null, System.Data.Services.Client.TrackingMode.None);
/// <summary>
/// There are no comments for Employee1 in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Employee Employee1
{
get
{
return this._Employee1;
}
set
{
this._Employee1 = value;
this.OnPropertyChanged("Employee1");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Employee _Employee1;
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Order> Orders
{
get
{
return this._Orders;
}
set
{
this._Orders = value;
this.OnPropertyChanged("Orders");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Order> _Orders = new global::System.Data.Services.Client.DataServiceCollection<Order>(null, System.Data.Services.Client.TrackingMode.None);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Order_Detail in the schema.
/// </summary>
/// <KeyProperties>
/// OrderID
/// ProductID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Order_Details")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("OrderID", "ProductID")]
public partial class Order_Detail : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Order_Detail object.
/// </summary>
/// <param name="orderID">Initial value of OrderID.</param>
/// <param name="productID">Initial value of ProductID.</param>
/// <param name="unitPrice">Initial value of UnitPrice.</param>
/// <param name="quantity">Initial value of Quantity.</param>
/// <param name="discount">Initial value of Discount.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Order_Detail CreateOrder_Detail(int orderID, int productID, decimal unitPrice, short quantity, float 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;
}
/// <summary>
/// There are no comments for Property OrderID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int OrderID
{
get
{
return this._OrderID;
}
set
{
this.OnOrderIDChanging(value);
this._OrderID = value;
this.OnOrderIDChanged();
this.OnPropertyChanged("OrderID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _OrderID;
partial void OnOrderIDChanging(int value);
partial void OnOrderIDChanged();
/// <summary>
/// There are no comments for Property ProductID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int ProductID
{
get
{
return this._ProductID;
}
set
{
this.OnProductIDChanging(value);
this._ProductID = value;
this.OnProductIDChanged();
this.OnPropertyChanged("ProductID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _ProductID;
partial void OnProductIDChanging(int value);
partial void OnProductIDChanged();
/// <summary>
/// There are no comments for Property UnitPrice in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public decimal UnitPrice
{
get
{
return this._UnitPrice;
}
set
{
this.OnUnitPriceChanging(value);
this._UnitPrice = value;
this.OnUnitPriceChanged();
this.OnPropertyChanged("UnitPrice");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private decimal _UnitPrice;
partial void OnUnitPriceChanging(decimal value);
partial void OnUnitPriceChanged();
/// <summary>
/// There are no comments for Property Quantity in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public short Quantity
{
get
{
return this._Quantity;
}
set
{
this.OnQuantityChanging(value);
this._Quantity = value;
this.OnQuantityChanged();
this.OnPropertyChanged("Quantity");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private short _Quantity;
partial void OnQuantityChanging(short value);
partial void OnQuantityChanged();
/// <summary>
/// There are no comments for Property Discount in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public float Discount
{
get
{
return this._Discount;
}
set
{
this.OnDiscountChanging(value);
this._Discount = value;
this.OnDiscountChanged();
this.OnPropertyChanged("Discount");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private float _Discount;
partial void OnDiscountChanging(float value);
partial void OnDiscountChanged();
/// <summary>
/// There are no comments for Order in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Order Order
{
get
{
return this._Order;
}
set
{
this._Order = value;
this.OnPropertyChanged("Order");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Order _Order;
/// <summary>
/// There are no comments for Product in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Product Product
{
get
{
return this._Product;
}
set
{
this._Product = value;
this.OnPropertyChanged("Product");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Product _Product;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Order in the schema.
/// </summary>
/// <KeyProperties>
/// OrderID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Orders")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("OrderID")]
public partial class Order : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Order object.
/// </summary>
/// <param name="orderID">Initial value of OrderID.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Order CreateOrder(int orderID)
{
Order order = new Order();
order.OrderID = orderID;
return order;
}
/// <summary>
/// There are no comments for Property OrderID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int OrderID
{
get
{
return this._OrderID;
}
set
{
this.OnOrderIDChanging(value);
this._OrderID = value;
this.OnOrderIDChanged();
this.OnPropertyChanged("OrderID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _OrderID;
partial void OnOrderIDChanging(int value);
partial void OnOrderIDChanged();
/// <summary>
/// There are no comments for Property CustomerID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<int> CustomerID
{
get
{
return this._CustomerID;
}
set
{
this.OnCustomerIDChanging(value);
this._CustomerID = value;
this.OnCustomerIDChanged();
this.OnPropertyChanged("CustomerID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<int> _CustomerID;
partial void OnCustomerIDChanging(global::System.Nullable<int> value);
partial void OnCustomerIDChanged();
/// <summary>
/// There are no comments for Property EmployeeID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<int> EmployeeID
{
get
{
return this._EmployeeID;
}
set
{
this.OnEmployeeIDChanging(value);
this._EmployeeID = value;
this.OnEmployeeIDChanged();
this.OnPropertyChanged("EmployeeID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<int> _EmployeeID;
partial void OnEmployeeIDChanging(global::System.Nullable<int> value);
partial void OnEmployeeIDChanged();
/// <summary>
/// There are no comments for Property OrderDate in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<global::System.DateTime> OrderDate
{
get
{
return this._OrderDate;
}
set
{
this.OnOrderDateChanging(value);
this._OrderDate = value;
this.OnOrderDateChanged();
this.OnPropertyChanged("OrderDate");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<global::System.DateTime> _OrderDate;
partial void OnOrderDateChanging(global::System.Nullable<global::System.DateTime> value);
partial void OnOrderDateChanged();
/// <summary>
/// There are no comments for Property RequiredDate in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<global::System.DateTime> RequiredDate
{
get
{
return this._RequiredDate;
}
set
{
this.OnRequiredDateChanging(value);
this._RequiredDate = value;
this.OnRequiredDateChanged();
this.OnPropertyChanged("RequiredDate");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<global::System.DateTime> _RequiredDate;
partial void OnRequiredDateChanging(global::System.Nullable<global::System.DateTime> value);
partial void OnRequiredDateChanged();
/// <summary>
/// There are no comments for Property ShippedDate in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<global::System.DateTime> ShippedDate
{
get
{
return this._ShippedDate;
}
set
{
this.OnShippedDateChanging(value);
this._ShippedDate = value;
this.OnShippedDateChanged();
this.OnPropertyChanged("ShippedDate");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<global::System.DateTime> _ShippedDate;
partial void OnShippedDateChanging(global::System.Nullable<global::System.DateTime> value);
partial void OnShippedDateChanged();
/// <summary>
/// There are no comments for Property ShipVia in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<int> ShipVia
{
get
{
return this._ShipVia;
}
set
{
this.OnShipViaChanging(value);
this._ShipVia = value;
this.OnShipViaChanged();
this.OnPropertyChanged("ShipVia");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<int> _ShipVia;
partial void OnShipViaChanging(global::System.Nullable<int> value);
partial void OnShipViaChanged();
/// <summary>
/// There are no comments for Property Freight in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<decimal> Freight
{
get
{
return this._Freight;
}
set
{
this.OnFreightChanging(value);
this._Freight = value;
this.OnFreightChanged();
this.OnPropertyChanged("Freight");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<decimal> _Freight;
partial void OnFreightChanging(global::System.Nullable<decimal> value);
partial void OnFreightChanged();
/// <summary>
/// There are no comments for Property ShipName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipName
{
get
{
return this._ShipName;
}
set
{
this.OnShipNameChanging(value);
this._ShipName = value;
this.OnShipNameChanged();
this.OnPropertyChanged("ShipName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipName;
partial void OnShipNameChanging(string value);
partial void OnShipNameChanged();
/// <summary>
/// There are no comments for Property ShipAddress in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipAddress
{
get
{
return this._ShipAddress;
}
set
{
this.OnShipAddressChanging(value);
this._ShipAddress = value;
this.OnShipAddressChanged();
this.OnPropertyChanged("ShipAddress");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipAddress;
partial void OnShipAddressChanging(string value);
partial void OnShipAddressChanged();
/// <summary>
/// There are no comments for Property ShipCity in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipCity
{
get
{
return this._ShipCity;
}
set
{
this.OnShipCityChanging(value);
this._ShipCity = value;
this.OnShipCityChanged();
this.OnPropertyChanged("ShipCity");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipCity;
partial void OnShipCityChanging(string value);
partial void OnShipCityChanged();
/// <summary>
/// There are no comments for Property ShipRegion in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipRegion
{
get
{
return this._ShipRegion;
}
set
{
this.OnShipRegionChanging(value);
this._ShipRegion = value;
this.OnShipRegionChanged();
this.OnPropertyChanged("ShipRegion");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipRegion;
partial void OnShipRegionChanging(string value);
partial void OnShipRegionChanged();
/// <summary>
/// There are no comments for Property ShipPostalCode in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipPostalCode
{
get
{
return this._ShipPostalCode;
}
set
{
this.OnShipPostalCodeChanging(value);
this._ShipPostalCode = value;
this.OnShipPostalCodeChanged();
this.OnPropertyChanged("ShipPostalCode");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipPostalCode;
partial void OnShipPostalCodeChanging(string value);
partial void OnShipPostalCodeChanged();
/// <summary>
/// There are no comments for Property ShipCountry in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ShipCountry
{
get
{
return this._ShipCountry;
}
set
{
this.OnShipCountryChanging(value);
this._ShipCountry = value;
this.OnShipCountryChanged();
this.OnPropertyChanged("ShipCountry");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ShipCountry;
partial void OnShipCountryChanging(string value);
partial void OnShipCountryChanged();
/// <summary>
/// There are no comments for Customer in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Customer Customer
{
get
{
return this._Customer;
}
set
{
this._Customer = value;
this.OnPropertyChanged("Customer");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Customer _Customer;
/// <summary>
/// There are no comments for Employee in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Employee Employee
{
get
{
return this._Employee;
}
set
{
this._Employee = value;
this.OnPropertyChanged("Employee");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Employee _Employee;
/// <summary>
/// There are no comments for Order_Details in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Order_Detail> Order_Details
{
get
{
return this._Order_Details;
}
set
{
this._Order_Details = value;
this.OnPropertyChanged("Order_Details");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Order_Detail> _Order_Details = new global::System.Data.Services.Client.DataServiceCollection<Order_Detail>(null, System.Data.Services.Client.TrackingMode.None);
/// <summary>
/// There are no comments for Shipper in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Shipper Shipper
{
get
{
return this._Shipper;
}
set
{
this._Shipper = value;
this.OnPropertyChanged("Shipper");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Shipper _Shipper;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Product in the schema.
/// </summary>
/// <KeyProperties>
/// ProductID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Products")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("ProductID")]
public partial class Product : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Product object.
/// </summary>
/// <param name="productID">Initial value of ProductID.</param>
/// <param name="productName">Initial value of ProductName.</param>
/// <param name="discontinued">Initial value of Discontinued.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Product CreateProduct(int productID, string productName, bool discontinued)
{
Product product = new Product();
product.ProductID = productID;
product.ProductName = productName;
product.Discontinued = discontinued;
return product;
}
/// <summary>
/// There are no comments for Property ProductID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int ProductID
{
get
{
return this._ProductID;
}
set
{
this.OnProductIDChanging(value);
this._ProductID = value;
this.OnProductIDChanged();
this.OnPropertyChanged("ProductID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _ProductID;
partial void OnProductIDChanging(int value);
partial void OnProductIDChanged();
/// <summary>
/// There are no comments for Property ProductName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string ProductName
{
get
{
return this._ProductName;
}
set
{
this.OnProductNameChanging(value);
this._ProductName = value;
this.OnProductNameChanged();
this.OnPropertyChanged("ProductName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _ProductName;
partial void OnProductNameChanging(string value);
partial void OnProductNameChanged();
/// <summary>
/// There are no comments for Property CategoryID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<int> CategoryID
{
get
{
return this._CategoryID;
}
set
{
this.OnCategoryIDChanging(value);
this._CategoryID = value;
this.OnCategoryIDChanged();
this.OnPropertyChanged("CategoryID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<int> _CategoryID;
partial void OnCategoryIDChanging(global::System.Nullable<int> value);
partial void OnCategoryIDChanged();
/// <summary>
/// There are no comments for Property QuantityPerUnit in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string QuantityPerUnit
{
get
{
return this._QuantityPerUnit;
}
set
{
this.OnQuantityPerUnitChanging(value);
this._QuantityPerUnit = value;
this.OnQuantityPerUnitChanged();
this.OnPropertyChanged("QuantityPerUnit");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _QuantityPerUnit;
partial void OnQuantityPerUnitChanging(string value);
partial void OnQuantityPerUnitChanged();
/// <summary>
/// There are no comments for Property UnitPrice in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<decimal> UnitPrice
{
get
{
return this._UnitPrice;
}
set
{
this.OnUnitPriceChanging(value);
this._UnitPrice = value;
this.OnUnitPriceChanged();
this.OnPropertyChanged("UnitPrice");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<decimal> _UnitPrice;
partial void OnUnitPriceChanging(global::System.Nullable<decimal> value);
partial void OnUnitPriceChanged();
/// <summary>
/// There are no comments for Property UnitsInStock in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<short> UnitsInStock
{
get
{
return this._UnitsInStock;
}
set
{
this.OnUnitsInStockChanging(value);
this._UnitsInStock = value;
this.OnUnitsInStockChanged();
this.OnPropertyChanged("UnitsInStock");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<short> _UnitsInStock;
partial void OnUnitsInStockChanging(global::System.Nullable<short> value);
partial void OnUnitsInStockChanged();
/// <summary>
/// There are no comments for Property UnitsOnOrder in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<short> UnitsOnOrder
{
get
{
return this._UnitsOnOrder;
}
set
{
this.OnUnitsOnOrderChanging(value);
this._UnitsOnOrder = value;
this.OnUnitsOnOrderChanged();
this.OnPropertyChanged("UnitsOnOrder");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<short> _UnitsOnOrder;
partial void OnUnitsOnOrderChanging(global::System.Nullable<short> value);
partial void OnUnitsOnOrderChanged();
/// <summary>
/// There are no comments for Property ReorderLevel in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable<short> ReorderLevel
{
get
{
return this._ReorderLevel;
}
set
{
this.OnReorderLevelChanging(value);
this._ReorderLevel = value;
this.OnReorderLevelChanged();
this.OnPropertyChanged("ReorderLevel");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable<short> _ReorderLevel;
partial void OnReorderLevelChanging(global::System.Nullable<short> value);
partial void OnReorderLevelChanged();
/// <summary>
/// There are no comments for Property Discontinued in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public bool Discontinued
{
get
{
return this._Discontinued;
}
set
{
this.OnDiscontinuedChanging(value);
this._Discontinued = value;
this.OnDiscontinuedChanged();
this.OnPropertyChanged("Discontinued");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private bool _Discontinued;
partial void OnDiscontinuedChanging(bool value);
partial void OnDiscontinuedChanged();
/// <summary>
/// There are no comments for Property Picture in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public byte[] Picture
{
get
{
if ((this._Picture != null))
{
return ((byte[])(this._Picture.Clone()));
}
else
{
return null;
}
}
set
{
this.OnPictureChanging(value);
this._Picture = value;
this.OnPictureChanged();
this.OnPropertyChanged("Picture");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private byte[] _Picture;
partial void OnPictureChanging(byte[] value);
partial void OnPictureChanged();
/// <summary>
/// There are no comments for Property PicturePath in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string PicturePath
{
get
{
return this._PicturePath;
}
set
{
this.OnPicturePathChanging(value);
this._PicturePath = value;
this.OnPicturePathChanged();
this.OnPropertyChanged("PicturePath");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _PicturePath;
partial void OnPicturePathChanging(string value);
partial void OnPicturePathChanged();
/// <summary>
/// There are no comments for Category in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public Category Category
{
get
{
return this._Category;
}
set
{
this._Category = value;
this.OnPropertyChanged("Category");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private Category _Category;
/// <summary>
/// There are no comments for Order_Details in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Order_Detail> Order_Details
{
get
{
return this._Order_Details;
}
set
{
this._Order_Details = value;
this.OnPropertyChanged("Order_Details");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Order_Detail> _Order_Details = new global::System.Data.Services.Client.DataServiceCollection<Order_Detail>(null, System.Data.Services.Client.TrackingMode.None);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
/// <summary>
/// There are no comments for NorthwindModel.Shipper in the schema.
/// </summary>
/// <KeyProperties>
/// ShipperID
/// </KeyProperties>
[global::System.Data.Services.Common.EntitySetAttribute("Shippers")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("ShipperID")]
public partial class Shipper : global::System.ComponentModel.INotifyPropertyChanged
{
/// <summary>
/// Create a new Shipper object.
/// </summary>
/// <param name="shipperID">Initial value of ShipperID.</param>
/// <param name="companyName">Initial value of CompanyName.</param>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static Shipper CreateShipper(int shipperID, string companyName)
{
Shipper shipper = new Shipper();
shipper.ShipperID = shipperID;
shipper.CompanyName = companyName;
return shipper;
}
/// <summary>
/// There are no comments for Property ShipperID in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int ShipperID
{
get
{
return this._ShipperID;
}
set
{
this.OnShipperIDChanging(value);
this._ShipperID = value;
this.OnShipperIDChanged();
this.OnPropertyChanged("ShipperID");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _ShipperID;
partial void OnShipperIDChanging(int value);
partial void OnShipperIDChanged();
/// <summary>
/// There are no comments for Property CompanyName in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string CompanyName
{
get
{
return this._CompanyName;
}
set
{
this.OnCompanyNameChanging(value);
this._CompanyName = value;
this.OnCompanyNameChanged();
this.OnPropertyChanged("CompanyName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _CompanyName;
partial void OnCompanyNameChanging(string value);
partial void OnCompanyNameChanged();
/// <summary>
/// There are no comments for Property Phone in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Phone
{
get
{
return this._Phone;
}
set
{
this.OnPhoneChanging(value);
this._Phone = value;
this.OnPhoneChanged();
this.OnPropertyChanged("Phone");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Phone;
partial void OnPhoneChanging(string value);
partial void OnPhoneChanged();
/// <summary>
/// There are no comments for Orders in the schema.
/// </summary>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceCollection<Order> Orders
{
get
{
return this._Orders;
}
set
{
this._Orders = value;
this.OnPropertyChanged("Orders");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceCollection<Order> _Orders = new global::System.Data.Services.Client.DataServiceCollection<Order>(null, System.Data.Services.Client.TrackingMode.None);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
}