/******************************************************** * ADO.NET 2.0 Data Provider for SQLite Version 3.X * Written by Robert Simpson (robert@blackcastlesoft.com) * * Released to the public domain, use at your own risk! ********************************************************/ //------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.Data.EntityClient; using System.Data.Metadata.Edm; using System.Data.Objects; using System.Data.Objects.DataClasses; using System.Runtime.Serialization; using System.Xml.Serialization; [assembly: EdmSchemaAttribute()] #region EDM Relationship Metadata [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_Products_CategoryID_CategoryID", "Categories", RelationshipMultiplicity.ZeroOrOne, typeof(testlinq.Categories), "Products", RelationshipMultiplicity.Many, typeof(testlinq.Products))] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_Orders_CustomerID_CustomerID", "Customers", RelationshipMultiplicity.ZeroOrOne, typeof(testlinq.Customers), "Orders", RelationshipMultiplicity.Many, typeof(testlinq.Orders))] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_InternationalOrders_OrderID_OrderID", "Orders", RelationshipMultiplicity.One, typeof(testlinq.Orders), "InternationalOrders", RelationshipMultiplicity.ZeroOrOne, typeof(testlinq.InternationalOrders), true)] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_OrderDetails_OrderID_OrderID", "Orders", RelationshipMultiplicity.One, typeof(testlinq.Orders), "OrderDetails", RelationshipMultiplicity.Many, typeof(testlinq.OrderDetails), true)] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_OrderDetails_ProductID_ProductID", "Products", RelationshipMultiplicity.One, typeof(testlinq.Products), "OrderDetails", RelationshipMultiplicity.Many, typeof(testlinq.OrderDetails), true)] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_Products_SupplierID_SupplierID", "Suppliers", RelationshipMultiplicity.ZeroOrOne, typeof(testlinq.Suppliers), "Products", RelationshipMultiplicity.Many, typeof(testlinq.Products))] [assembly: EdmRelationshipAttribute("northwindEFModel", "FK_Territories_RegionID_RegionID", "Regions", RelationshipMultiplicity.One, typeof(testlinq.Regions), "Territories", RelationshipMultiplicity.Many, typeof(testlinq.Territories))] [assembly: EdmRelationshipAttribute("northwindEFModel", "EmployeesTerritories", "Employees", RelationshipMultiplicity.Many, typeof(testlinq.Employees), "Territories", RelationshipMultiplicity.Many, typeof(testlinq.Territories))] #endregion namespace testlinq { #region Contexts /// /// No Metadata Documentation available. /// public partial class northwindEFEntities : ObjectContext { #region Constructors /// /// Initializes a new northwindEFEntities object using the connection string found in the 'northwindEFEntities' section of the application configuration file. /// public northwindEFEntities() : base("name=northwindEFEntities", "northwindEFEntities") { OnContextCreated(); } /// /// Initialize a new northwindEFEntities object. /// public northwindEFEntities(string connectionString) : base(connectionString, "northwindEFEntities") { OnContextCreated(); } /// /// Initialize a new northwindEFEntities object. /// public northwindEFEntities(EntityConnection connection) : base(connection, "northwindEFEntities") { OnContextCreated(); } #endregion #region Partial Methods partial void OnContextCreated(); #endregion #region ObjectSet Properties /// /// No Metadata Documentation available. /// public ObjectSet Categories { get { if ((_Categories == null)) { _Categories = base.CreateObjectSet("Categories"); } return _Categories; } } private ObjectSet _Categories; /// /// No Metadata Documentation available. /// public ObjectSet Customers { get { if ((_Customers == null)) { _Customers = base.CreateObjectSet("Customers"); } return _Customers; } } private ObjectSet _Customers; /// /// No Metadata Documentation available. /// public ObjectSet Employees { get { if ((_Employees == null)) { _Employees = base.CreateObjectSet("Employees"); } return _Employees; } } private ObjectSet _Employees; /// /// No Metadata Documentation available. /// public ObjectSet InternationalOrders { get { if ((_InternationalOrders == null)) { _InternationalOrders = base.CreateObjectSet("InternationalOrders"); } return _InternationalOrders; } } private ObjectSet _InternationalOrders; /// /// No Metadata Documentation available. /// public ObjectSet OrderDetails { get { if ((_OrderDetails == null)) { _OrderDetails = base.CreateObjectSet("OrderDetails"); } return _OrderDetails; } } private ObjectSet _OrderDetails; /// /// No Metadata Documentation available. /// public ObjectSet Orders { get { if ((_Orders == null)) { _Orders = base.CreateObjectSet("Orders"); } return _Orders; } } private ObjectSet _Orders; /// /// No Metadata Documentation available. /// public ObjectSet PreviousEmployees { get { if ((_PreviousEmployees == null)) { _PreviousEmployees = base.CreateObjectSet("PreviousEmployees"); } return _PreviousEmployees; } } private ObjectSet _PreviousEmployees; /// /// No Metadata Documentation available. /// public ObjectSet Products { get { if ((_Products == null)) { _Products = base.CreateObjectSet("Products"); } return _Products; } } private ObjectSet _Products; /// /// No Metadata Documentation available. /// public ObjectSet Regions { get { if ((_Regions == null)) { _Regions = base.CreateObjectSet("Regions"); } return _Regions; } } private ObjectSet _Regions; /// /// No Metadata Documentation available. /// public ObjectSet Suppliers { get { if ((_Suppliers == null)) { _Suppliers = base.CreateObjectSet("Suppliers"); } return _Suppliers; } } private ObjectSet _Suppliers; /// /// No Metadata Documentation available. /// public ObjectSet Territories { get { if ((_Territories == null)) { _Territories = base.CreateObjectSet("Territories"); } return _Territories; } } private ObjectSet _Territories; #endregion #region AddTo Methods /// /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToCategories(Categories categories) { base.AddObject("Categories", categories); } /// /// Deprecated Method for adding a new object to the Customers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToCustomers(Customers customers) { base.AddObject("Customers", customers); } /// /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToEmployees(Employees employees) { base.AddObject("Employees", employees); } /// /// Deprecated Method for adding a new object to the InternationalOrders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToInternationalOrders(InternationalOrders internationalOrders) { base.AddObject("InternationalOrders", internationalOrders); } /// /// Deprecated Method for adding a new object to the OrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToOrderDetails(OrderDetails orderDetails) { base.AddObject("OrderDetails", orderDetails); } /// /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToOrders(Orders orders) { base.AddObject("Orders", orders); } /// /// Deprecated Method for adding a new object to the PreviousEmployees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToPreviousEmployees(PreviousEmployees previousEmployees) { base.AddObject("PreviousEmployees", previousEmployees); } /// /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToProducts(Products products) { base.AddObject("Products", products); } /// /// Deprecated Method for adding a new object to the Regions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToRegions(Regions regions) { base.AddObject("Regions", regions); } /// /// Deprecated Method for adding a new object to the Suppliers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToSuppliers(Suppliers suppliers) { base.AddObject("Suppliers", suppliers); } /// /// Deprecated Method for adding a new object to the Territories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// public void AddToTerritories(Territories territories) { base.AddObject("Territories", territories); } #endregion } #endregion #region Entities /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Categories")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Categories : EntityObject { #region Factory Method /// /// Create a new Categories object. /// /// Initial value of the CategoryID property. /// Initial value of the CategoryName property. public static Categories CreateCategories(global::System.Int64 categoryID, global::System.String categoryName) { Categories categories = new Categories(); categories.CategoryID = categoryID; categories.CategoryName = categoryName; return categories; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 CategoryID { get { return _CategoryID; } set { if (_CategoryID != value) { OnCategoryIDChanging(value); ReportPropertyChanging("CategoryID"); _CategoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("CategoryID"); OnCategoryIDChanged(); } } } private global::System.Int64 _CategoryID; partial void OnCategoryIDChanging(global::System.Int64 value); partial void OnCategoryIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Products_CategoryID_CategoryID", "Products")] public EntityCollection Products { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_Products_CategoryID_CategoryID", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_Products_CategoryID_CategoryID", "Products", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Customers")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Customers : EntityObject { #region Factory Method /// /// Create a new Customers object. /// /// Initial value of the CustomerID property. /// Initial value of the CompanyName property. public static Customers CreateCustomers(global::System.String customerID, global::System.String companyName) { Customers customers = new Customers(); customers.CustomerID = customerID; customers.CompanyName = companyName; return customers; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Orders_CustomerID_CustomerID", "Orders")] public EntityCollection Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Orders", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Employees")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Employees : EntityObject { #region Factory Method /// /// Create a new Employees object. /// /// Initial value of the EmployeeID property. /// Initial value of the LastName property. /// Initial value of the FirstName property. public static Employees CreateEmployees(global::System.Int64 employeeID, global::System.String lastName, global::System.String firstName) { Employees employees = new Employees(); employees.EmployeeID = employeeID; employees.LastName = lastName; employees.FirstName = firstName; return employees; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 EmployeeID { get { return _EmployeeID; } set { if (_EmployeeID != value) { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } } private global::System.Int64 _EmployeeID; partial void OnEmployeeIDChanging(global::System.Int64 value); partial void OnEmployeeIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable BirthDate { get { return _BirthDate; } set { OnBirthDateChanging(value); ReportPropertyChanging("BirthDate"); _BirthDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("BirthDate"); OnBirthDateChanged(); } } private Nullable _BirthDate; partial void OnBirthDateChanging(Nullable value); partial void OnBirthDateChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable HireDate { get { return _HireDate; } set { OnHireDateChanging(value); ReportPropertyChanging("HireDate"); _HireDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("HireDate"); OnHireDateChanged(); } } private Nullable _HireDate; partial void OnHireDateChanging(Nullable value); partial void OnHireDateChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "EmployeesTerritories", "Territories")] public EntityCollection Territories { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.EmployeesTerritories", "Territories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.EmployeesTerritories", "Territories", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="InternationalOrders")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class InternationalOrders : EntityObject { #region Factory Method /// /// Create a new InternationalOrders object. /// /// Initial value of the OrderID property. /// Initial value of the CustomsDescription property. /// Initial value of the ExciseTax property. public static InternationalOrders CreateInternationalOrders(global::System.Int64 orderID, global::System.String customsDescription, global::System.Decimal exciseTax) { InternationalOrders internationalOrders = new InternationalOrders(); internationalOrders.OrderID = orderID; internationalOrders.CustomsDescription = customsDescription; internationalOrders.ExciseTax = exciseTax; return internationalOrders; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int64 _OrderID; partial void OnOrderIDChanging(global::System.Int64 value); partial void OnOrderIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.String CustomsDescription { get { return _CustomsDescription; } set { OnCustomsDescriptionChanging(value); ReportPropertyChanging("CustomsDescription"); _CustomsDescription = StructuralObject.SetValidValue(value, false); ReportPropertyChanged("CustomsDescription"); OnCustomsDescriptionChanged(); } } private global::System.String _CustomsDescription; partial void OnCustomsDescriptionChanging(global::System.String value); partial void OnCustomsDescriptionChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] [DataMemberAttribute()] public global::System.Decimal ExciseTax { get { return _ExciseTax; } set { OnExciseTaxChanging(value); ReportPropertyChanging("ExciseTax"); _ExciseTax = StructuralObject.SetValidValue(value); ReportPropertyChanged("ExciseTax"); OnExciseTaxChanged(); } } private global::System.Decimal _ExciseTax; partial void OnExciseTaxChanging(global::System.Decimal value); partial void OnExciseTaxChanged(); #endregion #region Navigation Properties /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_InternationalOrders_OrderID_OrderID", "Orders")] public Orders Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "Orders").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "Orders").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference OrdersReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "Orders", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="OrderDetails")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class OrderDetails : EntityObject { #region Factory Method /// /// Create a new OrderDetails object. /// /// Initial value of the OrderID property. /// Initial value of the ProductID property. /// Initial value of the UnitPrice property. /// Initial value of the Quantity property. /// Initial value of the Discount property. public static OrderDetails CreateOrderDetails(global::System.Int64 orderID, global::System.Int64 productID, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount) { OrderDetails orderDetails = new OrderDetails(); orderDetails.OrderID = orderID; orderDetails.ProductID = productID; orderDetails.UnitPrice = unitPrice; orderDetails.Quantity = quantity; orderDetails.Discount = discount; return orderDetails; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int64 _OrderID; partial void OnOrderIDChanging(global::System.Int64 value); partial void OnOrderIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int64 _ProductID; partial void OnProductIDChanging(global::System.Int64 value); partial void OnProductIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_OrderDetails_OrderID_OrderID", "Orders")] public Orders Orders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "Orders").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "Orders").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference OrdersReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "Orders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "Orders", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_OrderDetails_ProductID_ProductID", "Products")] public Products Products { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "Products").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "Products").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference ProductsReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "Products", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Orders")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Orders : EntityObject { #region Factory Method /// /// Create a new Orders object. /// /// Initial value of the OrderID property. public static Orders CreateOrders(global::System.Int64 orderID) { Orders orders = new Orders(); orders.OrderID = orderID; return orders; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 OrderID { get { return _OrderID; } set { if (_OrderID != value) { OnOrderIDChanging(value); ReportPropertyChanging("OrderID"); _OrderID = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderID"); OnOrderIDChanged(); } } } private global::System.Int64 _OrderID; partial void OnOrderIDChanging(global::System.Int64 value); partial void OnOrderIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable EmployeeID { get { return _EmployeeID; } set { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } private Nullable _EmployeeID; partial void OnEmployeeIDChanging(Nullable value); partial void OnEmployeeIDChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable OrderDate { get { return _OrderDate; } set { OnOrderDateChanging(value); ReportPropertyChanging("OrderDate"); _OrderDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("OrderDate"); OnOrderDateChanged(); } } private Nullable _OrderDate; partial void OnOrderDateChanging(Nullable value); partial void OnOrderDateChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable RequiredDate { get { return _RequiredDate; } set { OnRequiredDateChanging(value); ReportPropertyChanging("RequiredDate"); _RequiredDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("RequiredDate"); OnRequiredDateChanged(); } } private Nullable _RequiredDate; partial void OnRequiredDateChanging(Nullable value); partial void OnRequiredDateChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable ShippedDate { get { return _ShippedDate; } set { OnShippedDateChanging(value); ReportPropertyChanging("ShippedDate"); _ShippedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("ShippedDate"); OnShippedDateChanged(); } } private Nullable _ShippedDate; partial void OnShippedDateChanging(Nullable value); partial void OnShippedDateChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable Freight { get { return _Freight; } set { OnFreightChanging(value); ReportPropertyChanging("Freight"); _Freight = StructuralObject.SetValidValue(value); ReportPropertyChanged("Freight"); OnFreightChanged(); } } private Nullable _Freight; partial void OnFreightChanging(Nullable value); partial void OnFreightChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Orders_CustomerID_CustomerID", "Customers")] public Customers Customers { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Customers").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Customers").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference CustomersReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Customers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_Orders_CustomerID_CustomerID", "Customers", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_InternationalOrders_OrderID_OrderID", "InternationalOrders")] public InternationalOrders InternationalOrders { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "InternationalOrders").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "InternationalOrders").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference InternationalOrdersReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "InternationalOrders"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_InternationalOrders_OrderID_OrderID", "InternationalOrders", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_OrderDetails_OrderID_OrderID", "OrderDetails")] public EntityCollection OrderDetails { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "OrderDetails"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_OrderDetails_OrderID_OrderID", "OrderDetails", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="PreviousEmployees")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class PreviousEmployees : EntityObject { #region Factory Method /// /// Create a new PreviousEmployees object. /// /// Initial value of the EmployeeID property. /// Initial value of the LastName property. /// Initial value of the FirstName property. public static PreviousEmployees CreatePreviousEmployees(global::System.Int64 employeeID, global::System.String lastName, global::System.String firstName) { PreviousEmployees previousEmployees = new PreviousEmployees(); previousEmployees.EmployeeID = employeeID; previousEmployees.LastName = lastName; previousEmployees.FirstName = firstName; return previousEmployees; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 EmployeeID { get { return _EmployeeID; } set { if (_EmployeeID != value) { OnEmployeeIDChanging(value); ReportPropertyChanging("EmployeeID"); _EmployeeID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EmployeeID"); OnEmployeeIDChanged(); } } } private global::System.Int64 _EmployeeID; partial void OnEmployeeIDChanging(global::System.Int64 value); partial void OnEmployeeIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable BirthDate { get { return _BirthDate; } set { OnBirthDateChanging(value); ReportPropertyChanging("BirthDate"); _BirthDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("BirthDate"); OnBirthDateChanged(); } } private Nullable _BirthDate; partial void OnBirthDateChanging(Nullable value); partial void OnBirthDateChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable HireDate { get { return _HireDate; } set { OnHireDateChanging(value); ReportPropertyChanging("HireDate"); _HireDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("HireDate"); OnHireDateChanged(); } } private Nullable _HireDate; partial void OnHireDateChanging(Nullable value); partial void OnHireDateChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Products")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Products : EntityObject { #region Factory Method /// /// Create a new Products object. /// /// Initial value of the ProductID property. /// Initial value of the ProductName property. /// Initial value of the Discontinued property. public static Products CreateProducts(global::System.Int64 productID, global::System.String productName, global::System.Boolean discontinued) { Products products = new Products(); products.ProductID = productID; products.ProductName = productName; products.Discontinued = discontinued; return products; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 ProductID { get { return _ProductID; } set { if (_ProductID != value) { OnProductIDChanging(value); ReportPropertyChanging("ProductID"); _ProductID = StructuralObject.SetValidValue(value); ReportPropertyChanged("ProductID"); OnProductIDChanged(); } } } private global::System.Int64 _ProductID; partial void OnProductIDChanging(global::System.Int64 value); partial void OnProductIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable UnitPrice { get { return _UnitPrice; } set { OnUnitPriceChanging(value); ReportPropertyChanging("UnitPrice"); _UnitPrice = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitPrice"); OnUnitPriceChanged(); } } private Nullable _UnitPrice; partial void OnUnitPriceChanging(Nullable value); partial void OnUnitPriceChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable UnitsInStock { get { return _UnitsInStock; } set { OnUnitsInStockChanging(value); ReportPropertyChanging("UnitsInStock"); _UnitsInStock = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsInStock"); OnUnitsInStockChanged(); } } private Nullable _UnitsInStock; partial void OnUnitsInStockChanging(Nullable value); partial void OnUnitsInStockChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable UnitsOnOrder { get { return _UnitsOnOrder; } set { OnUnitsOnOrderChanging(value); ReportPropertyChanging("UnitsOnOrder"); _UnitsOnOrder = StructuralObject.SetValidValue(value); ReportPropertyChanged("UnitsOnOrder"); OnUnitsOnOrderChanged(); } } private Nullable _UnitsOnOrder; partial void OnUnitsOnOrderChanging(Nullable value); partial void OnUnitsOnOrderChanged(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable ReorderLevel { get { return _ReorderLevel; } set { OnReorderLevelChanging(value); ReportPropertyChanging("ReorderLevel"); _ReorderLevel = StructuralObject.SetValidValue(value); ReportPropertyChanged("ReorderLevel"); OnReorderLevelChanged(); } } private Nullable _ReorderLevel; partial void OnReorderLevelChanging(Nullable value); partial void OnReorderLevelChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable DiscontinuedDate { get { return _DiscontinuedDate; } set { OnDiscontinuedDateChanging(value); ReportPropertyChanging("DiscontinuedDate"); _DiscontinuedDate = StructuralObject.SetValidValue(value); ReportPropertyChanged("DiscontinuedDate"); OnDiscontinuedDateChanged(); } } private Nullable _DiscontinuedDate; partial void OnDiscontinuedDateChanging(Nullable value); partial void OnDiscontinuedDateChanged(); #endregion #region Navigation Properties /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Products_CategoryID_CategoryID", "Categories")] public Categories Categories { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_CategoryID_CategoryID", "Categories").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_CategoryID_CategoryID", "Categories").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference CategoriesReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_CategoryID_CategoryID", "Categories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_Products_CategoryID_CategoryID", "Categories", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_OrderDetails_ProductID_ProductID", "OrderDetails")] public EntityCollection OrderDetails { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "OrderDetails"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_OrderDetails_ProductID_ProductID", "OrderDetails", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Products_SupplierID_SupplierID", "Suppliers")] public Suppliers Suppliers { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_SupplierID_SupplierID", "Suppliers").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_SupplierID_SupplierID", "Suppliers").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference SuppliersReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Products_SupplierID_SupplierID", "Suppliers"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_Products_SupplierID_SupplierID", "Suppliers", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Regions")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Regions : EntityObject { #region Factory Method /// /// Create a new Regions object. /// /// Initial value of the RegionID property. /// Initial value of the RegionDescription property. public static Regions CreateRegions(global::System.Int64 regionID, global::System.String regionDescription) { Regions regions = new Regions(); regions.RegionID = regionID; regions.RegionDescription = regionDescription; return regions; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 RegionID { get { return _RegionID; } set { if (_RegionID != value) { OnRegionIDChanging(value); ReportPropertyChanging("RegionID"); _RegionID = StructuralObject.SetValidValue(value); ReportPropertyChanged("RegionID"); OnRegionIDChanged(); } } } private global::System.Int64 _RegionID; partial void OnRegionIDChanging(global::System.Int64 value); partial void OnRegionIDChanged(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Territories_RegionID_RegionID", "Territories")] public EntityCollection Territories { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_Territories_RegionID_RegionID", "Territories"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_Territories_RegionID_RegionID", "Territories", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Suppliers")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Suppliers : EntityObject { #region Factory Method /// /// Create a new Suppliers object. /// /// Initial value of the SupplierID property. /// Initial value of the CompanyName property. public static Suppliers CreateSuppliers(global::System.Int64 supplierID, global::System.String companyName) { Suppliers suppliers = new Suppliers(); suppliers.SupplierID = supplierID; suppliers.CompanyName = companyName; return suppliers; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 SupplierID { get { return _SupplierID; } set { if (_SupplierID != value) { OnSupplierIDChanging(value); ReportPropertyChanging("SupplierID"); _SupplierID = StructuralObject.SetValidValue(value); ReportPropertyChanged("SupplierID"); OnSupplierIDChanged(); } } } private global::System.Int64 _SupplierID; partial void OnSupplierIDChanging(global::System.Int64 value); partial void OnSupplierIDChanged(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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(); /// /// No Metadata Documentation available. /// [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 /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Products_SupplierID_SupplierID", "Products")] public EntityCollection Products { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.FK_Products_SupplierID_SupplierID", "Products"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.FK_Products_SupplierID_SupplierID", "Products", value); } } } #endregion } /// /// No Metadata Documentation available. /// [EdmEntityTypeAttribute(NamespaceName="northwindEFModel", Name="Territories")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Territories : EntityObject { #region Factory Method /// /// Create a new Territories object. /// /// Initial value of the TerritoryID property. /// Initial value of the TerritoryDescription property. public static Territories CreateTerritories(global::System.Int64 territoryID, global::System.String territoryDescription) { Territories territories = new Territories(); territories.TerritoryID = territoryID; territories.TerritoryDescription = territoryDescription; return territories; } #endregion #region Primitive Properties /// /// No Metadata Documentation available. /// [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int64 TerritoryID { get { return _TerritoryID; } set { if (_TerritoryID != value) { OnTerritoryIDChanging(value); ReportPropertyChanging("TerritoryID"); _TerritoryID = StructuralObject.SetValidValue(value); ReportPropertyChanged("TerritoryID"); OnTerritoryIDChanged(); } } } private global::System.Int64 _TerritoryID; partial void OnTerritoryIDChanging(global::System.Int64 value); partial void OnTerritoryIDChanged(); /// /// No Metadata Documentation available. /// [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(); #endregion #region Navigation Properties /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "FK_Territories_RegionID_RegionID", "Regions")] public Regions Regions { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Territories_RegionID_RegionID", "Regions").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Territories_RegionID_RegionID", "Regions").Value = value; } } /// /// No Metadata Documentation available. /// [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference RegionsReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("northwindEFModel.FK_Territories_RegionID_RegionID", "Regions"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("northwindEFModel.FK_Territories_RegionID_RegionID", "Regions", value); } } } /// /// No Metadata Documentation available. /// [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("northwindEFModel", "EmployeesTerritories", "Employees")] public EntityCollection Employees { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("northwindEFModel.EmployeesTerritories", "Employees"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("northwindEFModel.EmployeesTerritories", "Employees", value); } } } #endregion } #endregion }