//------------------------------------------------------------------------------
//
// 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.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;
[assembly: EdmSchemaAttribute()]
#region EDM Relationship Metadata
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Customers_BillingProfiles", "BillingProfile", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.BillingProfile), "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Customer), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_CustomerInventory_Customer", "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Customer), "CustomerInventory", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerInventory), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_CustomerInventory_InventoryItemTypes", "InventoryItemType", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InventoryItemType), "CustomerInventory", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerInventory), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_CustomerInventory_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "CustomerInventory", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerInventory), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_CustomerLogins_Customers", "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Customer), "CustomerLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerLogin), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadBags_CustomerLogins", "CustomerLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.CustomerLogin), "CustomerWorkloadBag", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerWorkloadBag), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Workloads_CustomerLogins", "CustomerLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.CustomerLogin), "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Workload), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Customers_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Customer), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InventoryItems_Customers", "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Customer), "InventoryItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InventoryItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Workloads_Customers", "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Customer), "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Workload), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadBags_Workloads", "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Workload), "CustomerWorkloadBag", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.CustomerWorkloadBag), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InventoryItems_InventoryItemTypes", "InventoryItemType", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InventoryItemType), "InventoryItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InventoryItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InventoryItemTypes_InventoryItemTypeCategories", "InventoryItemTypeCategory", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InventoryItemTypeCategory), "InventoryItemType", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InventoryItemType), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InventoryItemTypes_InventoryItemTypeSize", "InventoryItemTypeSize", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InventoryItemTypeSize), "InventoryItemType", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InventoryItemType), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_OperatorLogins_OperatorRoles", "OperatorRole", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorRole), "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.OperatorLogin), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Workloads_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Workload), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Workloads_WorkloadStatus", "WorkloadStatu", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.WorkloadStatus), "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Workload), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Workloads_WorkloadTypes", "WorkloadType", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.WorkloadType), "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Workload), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Invoices_Customers", "Customer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Customer), "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Invoice), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InvoiceItems_InventoryItemTypes", "InventoryItemType", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InventoryItemType), "InvoiceItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InvoiceItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InvoiceItems_Invoices", "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Invoice), "InvoiceItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InvoiceItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_InvoiceItems_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "InvoiceItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.InvoiceItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Invoices_InvoiceStatus", "InvoiceStatu", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InvoiceStatus), "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Invoice), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Invoices_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Invoice), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Invoices_Workloads", "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Workload), "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Invoice), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Dispatches_DispatchStatus", "DispatchStatu", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.DispatchStatu), "Dispatch", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Dispatch), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Dispatches_Invoices", "Invoice", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Invoice), "Dispatch", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Dispatch), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_Dispatches_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "Dispatch", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.Dispatch), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_DispatchItems_Dispatches", "Dispatch", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Dispatch), "DispatchItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.DispatchItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_DispatchItems_InvoiceItems", "InvoiceItem", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.InvoiceItem), "DispatchItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.DispatchItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadItems_CustomerInventory", "CustomerInventory", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.CustomerInventory), "WorkloadItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.WorkloadItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadItems_CustomerLogins", "CustomerLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.CustomerLogin), "WorkloadItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.WorkloadItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadItems_OperatorLogins", "OperatorLogin", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.OperatorLogin), "WorkloadItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.WorkloadItem), true)]
[assembly: EdmRelationshipAttribute("PersonalLaundryModel", "FK_WorkloadItems_Workloads", "Workload", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(Common.Workload), "WorkloadItem", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Common.WorkloadItem), true)]
#endregion
namespace Common
{
#region Contexts
///
/// No Metadata Documentation available.
///
public partial class PersonalLaundryEntities : ObjectContext
{
#region Constructors
///
/// Initializes a new PersonalLaundryEntities object using the connection string found in the 'PersonalLaundryEntities' section of the application configuration file.
///
public PersonalLaundryEntities() : base("name=PersonalLaundryEntities", "PersonalLaundryEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
///
/// Initialize a new PersonalLaundryEntities object.
///
public PersonalLaundryEntities(string connectionString) : base(connectionString, "PersonalLaundryEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
///
/// Initialize a new PersonalLaundryEntities object.
///
public PersonalLaundryEntities(EntityConnection connection) : base(connection, "PersonalLaundryEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
OnContextCreated();
}
#endregion
#region Partial Methods
partial void OnContextCreated();
#endregion
#region ObjectSet Properties
///
/// No Metadata Documentation available.
///
public ObjectSet BillingProfiles
{
get
{
if ((_BillingProfiles == null))
{
_BillingProfiles = base.CreateObjectSet("BillingProfiles");
}
return _BillingProfiles;
}
}
private ObjectSet _BillingProfiles;
///
/// No Metadata Documentation available.
///
public ObjectSet CustomerInventories
{
get
{
if ((_CustomerInventories == null))
{
_CustomerInventories = base.CreateObjectSet("CustomerInventories");
}
return _CustomerInventories;
}
}
private ObjectSet _CustomerInventories;
///
/// No Metadata Documentation available.
///
public ObjectSet CustomerLogins
{
get
{
if ((_CustomerLogins == null))
{
_CustomerLogins = base.CreateObjectSet("CustomerLogins");
}
return _CustomerLogins;
}
}
private ObjectSet _CustomerLogins;
///
/// 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 CustomerWorkloadBags
{
get
{
if ((_CustomerWorkloadBags == null))
{
_CustomerWorkloadBags = base.CreateObjectSet("CustomerWorkloadBags");
}
return _CustomerWorkloadBags;
}
}
private ObjectSet _CustomerWorkloadBags;
///
/// No Metadata Documentation available.
///
public ObjectSet InventoryItems
{
get
{
if ((_InventoryItems == null))
{
_InventoryItems = base.CreateObjectSet("InventoryItems");
}
return _InventoryItems;
}
}
private ObjectSet _InventoryItems;
///
/// No Metadata Documentation available.
///
public ObjectSet InventoryItemTypeCategories
{
get
{
if ((_InventoryItemTypeCategories == null))
{
_InventoryItemTypeCategories = base.CreateObjectSet("InventoryItemTypeCategories");
}
return _InventoryItemTypeCategories;
}
}
private ObjectSet _InventoryItemTypeCategories;
///
/// No Metadata Documentation available.
///
public ObjectSet InventoryItemTypes
{
get
{
if ((_InventoryItemTypes == null))
{
_InventoryItemTypes = base.CreateObjectSet("InventoryItemTypes");
}
return _InventoryItemTypes;
}
}
private ObjectSet _InventoryItemTypes;
///
/// No Metadata Documentation available.
///
public ObjectSet InventoryItemTypeSizes
{
get
{
if ((_InventoryItemTypeSizes == null))
{
_InventoryItemTypeSizes = base.CreateObjectSet("InventoryItemTypeSizes");
}
return _InventoryItemTypeSizes;
}
}
private ObjectSet _InventoryItemTypeSizes;
///
/// No Metadata Documentation available.
///
public ObjectSet OperatorLogins
{
get
{
if ((_OperatorLogins == null))
{
_OperatorLogins = base.CreateObjectSet("OperatorLogins");
}
return _OperatorLogins;
}
}
private ObjectSet _OperatorLogins;
///
/// No Metadata Documentation available.
///
public ObjectSet OperatorRoles
{
get
{
if ((_OperatorRoles == null))
{
_OperatorRoles = base.CreateObjectSet("OperatorRoles");
}
return _OperatorRoles;
}
}
private ObjectSet _OperatorRoles;
///
/// No Metadata Documentation available.
///
public ObjectSet Workloads
{
get
{
if ((_Workloads == null))
{
_Workloads = base.CreateObjectSet("Workloads");
}
return _Workloads;
}
}
private ObjectSet _Workloads;
///
/// No Metadata Documentation available.
///
public ObjectSet WorkloadStatuses
{
get
{
if ((_WorkloadStatuses == null))
{
_WorkloadStatuses = base.CreateObjectSet("WorkloadStatuses");
}
return _WorkloadStatuses;
}
}
private ObjectSet _WorkloadStatuses;
///
/// No Metadata Documentation available.
///
public ObjectSet WorkloadTypes
{
get
{
if ((_WorkloadTypes == null))
{
_WorkloadTypes = base.CreateObjectSet("WorkloadTypes");
}
return _WorkloadTypes;
}
}
private ObjectSet _WorkloadTypes;
///
/// No Metadata Documentation available.
///
public ObjectSet vwCustomerBagsWaitingCountings
{
get
{
if ((_vwCustomerBagsWaitingCountings == null))
{
_vwCustomerBagsWaitingCountings = base.CreateObjectSet("vwCustomerBagsWaitingCountings");
}
return _vwCustomerBagsWaitingCountings;
}
}
private ObjectSet _vwCustomerBagsWaitingCountings;
///
/// No Metadata Documentation available.
///
public ObjectSet vwWorkloadStatusReports
{
get
{
if ((_vwWorkloadStatusReports == null))
{
_vwWorkloadStatusReports = base.CreateObjectSet("vwWorkloadStatusReports");
}
return _vwWorkloadStatusReports;
}
}
private ObjectSet _vwWorkloadStatusReports;
///
/// No Metadata Documentation available.
///
public ObjectSet vwWorkloadCategoryTypeCounts
{
get
{
if ((_vwWorkloadCategoryTypeCounts == null))
{
_vwWorkloadCategoryTypeCounts = base.CreateObjectSet("vwWorkloadCategoryTypeCounts");
}
return _vwWorkloadCategoryTypeCounts;
}
}
private ObjectSet _vwWorkloadCategoryTypeCounts;
///
/// No Metadata Documentation available.
///
public ObjectSet vwInventoryItemTypes
{
get
{
if ((_vwInventoryItemTypes == null))
{
_vwInventoryItemTypes = base.CreateObjectSet("vwInventoryItemTypes");
}
return _vwInventoryItemTypes;
}
}
private ObjectSet _vwInventoryItemTypes;
///
/// No Metadata Documentation available.
///
public ObjectSet InvoiceItems
{
get
{
if ((_InvoiceItems == null))
{
_InvoiceItems = base.CreateObjectSet("InvoiceItems");
}
return _InvoiceItems;
}
}
private ObjectSet _InvoiceItems;
///
/// No Metadata Documentation available.
///
public ObjectSet Invoices
{
get
{
if ((_Invoices == null))
{
_Invoices = base.CreateObjectSet("Invoices");
}
return _Invoices;
}
}
private ObjectSet _Invoices;
///
/// No Metadata Documentation available.
///
public ObjectSet InvoiceStatuses
{
get
{
if ((_InvoiceStatuses == null))
{
_InvoiceStatuses = base.CreateObjectSet("InvoiceStatuses");
}
return _InvoiceStatuses;
}
}
private ObjectSet _InvoiceStatuses;
///
/// No Metadata Documentation available.
///
public ObjectSet Settings
{
get
{
if ((_Settings == null))
{
_Settings = base.CreateObjectSet("Settings");
}
return _Settings;
}
}
private ObjectSet _Settings;
///
/// No Metadata Documentation available.
///
public ObjectSet CustomerInventoryForWorkloads
{
get
{
if ((_CustomerInventoryForWorkloads == null))
{
_CustomerInventoryForWorkloads = base.CreateObjectSet("CustomerInventoryForWorkloads");
}
return _CustomerInventoryForWorkloads;
}
}
private ObjectSet _CustomerInventoryForWorkloads;
///
/// No Metadata Documentation available.
///
public ObjectSet CustomerInventoryForWorkloadCloseds
{
get
{
if ((_CustomerInventoryForWorkloadCloseds == null))
{
_CustomerInventoryForWorkloadCloseds = base.CreateObjectSet("CustomerInventoryForWorkloadCloseds");
}
return _CustomerInventoryForWorkloadCloseds;
}
}
private ObjectSet _CustomerInventoryForWorkloadCloseds;
///
/// No Metadata Documentation available.
///
public ObjectSet Dispatches
{
get
{
if ((_Dispatches == null))
{
_Dispatches = base.CreateObjectSet("Dispatches");
}
return _Dispatches;
}
}
private ObjectSet _Dispatches;
///
/// No Metadata Documentation available.
///
public ObjectSet DispatchItems
{
get
{
if ((_DispatchItems == null))
{
_DispatchItems = base.CreateObjectSet("DispatchItems");
}
return _DispatchItems;
}
}
private ObjectSet _DispatchItems;
///
/// No Metadata Documentation available.
///
public ObjectSet DispatchStatus
{
get
{
if ((_DispatchStatus == null))
{
_DispatchStatus = base.CreateObjectSet("DispatchStatus");
}
return _DispatchStatus;
}
}
private ObjectSet _DispatchStatus;
///
/// No Metadata Documentation available.
///
public ObjectSet WorkloadItems
{
get
{
if ((_WorkloadItems == null))
{
_WorkloadItems = base.CreateObjectSet("WorkloadItems");
}
return _WorkloadItems;
}
}
private ObjectSet _WorkloadItems;
#endregion
#region AddTo Methods
///
/// Deprecated Method for adding a new object to the BillingProfiles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToBillingProfiles(BillingProfile billingProfile)
{
base.AddObject("BillingProfiles", billingProfile);
}
///
/// Deprecated Method for adding a new object to the CustomerInventories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToCustomerInventories(CustomerInventory customerInventory)
{
base.AddObject("CustomerInventories", customerInventory);
}
///
/// Deprecated Method for adding a new object to the CustomerLogins EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToCustomerLogins(CustomerLogin customerLogin)
{
base.AddObject("CustomerLogins", customerLogin);
}
///
/// 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(Customer customer)
{
base.AddObject("Customers", customer);
}
///
/// Deprecated Method for adding a new object to the CustomerWorkloadBags EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToCustomerWorkloadBags(CustomerWorkloadBag customerWorkloadBag)
{
base.AddObject("CustomerWorkloadBags", customerWorkloadBag);
}
///
/// Deprecated Method for adding a new object to the InventoryItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInventoryItems(InventoryItem inventoryItem)
{
base.AddObject("InventoryItems", inventoryItem);
}
///
/// Deprecated Method for adding a new object to the InventoryItemTypeCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInventoryItemTypeCategories(InventoryItemTypeCategory inventoryItemTypeCategory)
{
base.AddObject("InventoryItemTypeCategories", inventoryItemTypeCategory);
}
///
/// Deprecated Method for adding a new object to the InventoryItemTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInventoryItemTypes(InventoryItemType inventoryItemType)
{
base.AddObject("InventoryItemTypes", inventoryItemType);
}
///
/// Deprecated Method for adding a new object to the InventoryItemTypeSizes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInventoryItemTypeSizes(InventoryItemTypeSize inventoryItemTypeSize)
{
base.AddObject("InventoryItemTypeSizes", inventoryItemTypeSize);
}
///
/// Deprecated Method for adding a new object to the OperatorLogins EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToOperatorLogins(OperatorLogin operatorLogin)
{
base.AddObject("OperatorLogins", operatorLogin);
}
///
/// Deprecated Method for adding a new object to the OperatorRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToOperatorRoles(OperatorRole operatorRole)
{
base.AddObject("OperatorRoles", operatorRole);
}
///
/// Deprecated Method for adding a new object to the Workloads EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToWorkloads(Workload workload)
{
base.AddObject("Workloads", workload);
}
///
/// Deprecated Method for adding a new object to the WorkloadStatuses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToWorkloadStatuses(WorkloadStatus workloadStatus)
{
base.AddObject("WorkloadStatuses", workloadStatus);
}
///
/// Deprecated Method for adding a new object to the WorkloadTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToWorkloadTypes(WorkloadType workloadType)
{
base.AddObject("WorkloadTypes", workloadType);
}
///
/// Deprecated Method for adding a new object to the vwCustomerBagsWaitingCountings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddTovwCustomerBagsWaitingCountings(vwCustomerBagsWaitingCounting vwCustomerBagsWaitingCounting)
{
base.AddObject("vwCustomerBagsWaitingCountings", vwCustomerBagsWaitingCounting);
}
///
/// Deprecated Method for adding a new object to the vwWorkloadStatusReports EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddTovwWorkloadStatusReports(vwWorkloadStatusReport vwWorkloadStatusReport)
{
base.AddObject("vwWorkloadStatusReports", vwWorkloadStatusReport);
}
///
/// Deprecated Method for adding a new object to the vwWorkloadCategoryTypeCounts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddTovwWorkloadCategoryTypeCounts(vwWorkloadCategoryTypeCount vwWorkloadCategoryTypeCount)
{
base.AddObject("vwWorkloadCategoryTypeCounts", vwWorkloadCategoryTypeCount);
}
///
/// Deprecated Method for adding a new object to the vwInventoryItemTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddTovwInventoryItemTypes(vwInventoryItemType vwInventoryItemType)
{
base.AddObject("vwInventoryItemTypes", vwInventoryItemType);
}
///
/// Deprecated Method for adding a new object to the InvoiceItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInvoiceItems(InvoiceItem invoiceItem)
{
base.AddObject("InvoiceItems", invoiceItem);
}
///
/// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInvoices(Invoice invoice)
{
base.AddObject("Invoices", invoice);
}
///
/// Deprecated Method for adding a new object to the InvoiceStatuses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToInvoiceStatuses(InvoiceStatus invoiceStatus)
{
base.AddObject("InvoiceStatuses", invoiceStatus);
}
///
/// Deprecated Method for adding a new object to the Settings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToSettings(Setting setting)
{
base.AddObject("Settings", setting);
}
///
/// Deprecated Method for adding a new object to the CustomerInventoryForWorkloads EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToCustomerInventoryForWorkloads(CustomerInventoryForWorkload customerInventoryForWorkload)
{
base.AddObject("CustomerInventoryForWorkloads", customerInventoryForWorkload);
}
///
/// Deprecated Method for adding a new object to the CustomerInventoryForWorkloadCloseds EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToCustomerInventoryForWorkloadCloseds(CustomerInventoryForWorkloadClosed customerInventoryForWorkloadClosed)
{
base.AddObject("CustomerInventoryForWorkloadCloseds", customerInventoryForWorkloadClosed);
}
///
/// Deprecated Method for adding a new object to the Dispatches EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToDispatches(Dispatch dispatch)
{
base.AddObject("Dispatches", dispatch);
}
///
/// Deprecated Method for adding a new object to the DispatchItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToDispatchItems(DispatchItem dispatchItem)
{
base.AddObject("DispatchItems", dispatchItem);
}
///
/// Deprecated Method for adding a new object to the DispatchStatus EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToDispatchStatus(DispatchStatu dispatchStatu)
{
base.AddObject("DispatchStatus", dispatchStatu);
}
///
/// Deprecated Method for adding a new object to the WorkloadItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead.
///
public void AddToWorkloadItems(WorkloadItem workloadItem)
{
base.AddObject("WorkloadItems", workloadItem);
}
#endregion
#region Function Imports
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult LoginOperator(global::System.String username, global::System.String password)
{
ObjectParameter usernameParameter;
if (username != null)
{
usernameParameter = new ObjectParameter("Username", username);
}
else
{
usernameParameter = new ObjectParameter("Username", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
return base.ExecuteFunction("LoginOperator", usernameParameter, passwordParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult LoginOperator(global::System.String username, global::System.String password, MergeOption mergeOption)
{
ObjectParameter usernameParameter;
if (username != null)
{
usernameParameter = new ObjectParameter("Username", username);
}
else
{
usernameParameter = new ObjectParameter("Username", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
return base.ExecuteFunction("LoginOperator", mergeOption, usernameParameter, passwordParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateOperatorLogin(global::System.String username, global::System.String password, Nullable operatorRoleId)
{
ObjectParameter usernameParameter;
if (username != null)
{
usernameParameter = new ObjectParameter("Username", username);
}
else
{
usernameParameter = new ObjectParameter("Username", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter operatorRoleIdParameter;
if (operatorRoleId.HasValue)
{
operatorRoleIdParameter = new ObjectParameter("OperatorRoleId", operatorRoleId);
}
else
{
operatorRoleIdParameter = new ObjectParameter("OperatorRoleId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateOperatorLogin", usernameParameter, passwordParameter, operatorRoleIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateOperatorLogin(global::System.String username, global::System.String password, Nullable operatorRoleId, MergeOption mergeOption)
{
ObjectParameter usernameParameter;
if (username != null)
{
usernameParameter = new ObjectParameter("Username", username);
}
else
{
usernameParameter = new ObjectParameter("Username", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter operatorRoleIdParameter;
if (operatorRoleId.HasValue)
{
operatorRoleIdParameter = new ObjectParameter("OperatorRoleId", operatorRoleId);
}
else
{
operatorRoleIdParameter = new ObjectParameter("OperatorRoleId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateOperatorLogin", mergeOption, usernameParameter, passwordParameter, operatorRoleIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerLogin(Nullable customerId, global::System.String emailAddress, global::System.String password, Nullable isActive, Nullable isLockedOut)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter emailAddressParameter;
if (emailAddress != null)
{
emailAddressParameter = new ObjectParameter("EmailAddress", emailAddress);
}
else
{
emailAddressParameter = new ObjectParameter("EmailAddress", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter isActiveParameter;
if (isActive.HasValue)
{
isActiveParameter = new ObjectParameter("IsActive", isActive);
}
else
{
isActiveParameter = new ObjectParameter("IsActive", typeof(global::System.Boolean));
}
ObjectParameter isLockedOutParameter;
if (isLockedOut.HasValue)
{
isLockedOutParameter = new ObjectParameter("IsLockedOut", isLockedOut);
}
else
{
isLockedOutParameter = new ObjectParameter("IsLockedOut", typeof(global::System.Boolean));
}
return base.ExecuteFunction("UpdateCustomerLogin", customerIdParameter, emailAddressParameter, passwordParameter, isActiveParameter, isLockedOutParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerLogin(Nullable customerId, global::System.String emailAddress, global::System.String password, Nullable isActive, Nullable isLockedOut, MergeOption mergeOption)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter emailAddressParameter;
if (emailAddress != null)
{
emailAddressParameter = new ObjectParameter("EmailAddress", emailAddress);
}
else
{
emailAddressParameter = new ObjectParameter("EmailAddress", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter isActiveParameter;
if (isActive.HasValue)
{
isActiveParameter = new ObjectParameter("IsActive", isActive);
}
else
{
isActiveParameter = new ObjectParameter("IsActive", typeof(global::System.Boolean));
}
ObjectParameter isLockedOutParameter;
if (isLockedOut.HasValue)
{
isLockedOutParameter = new ObjectParameter("IsLockedOut", isLockedOut);
}
else
{
isLockedOutParameter = new ObjectParameter("IsLockedOut", typeof(global::System.Boolean));
}
return base.ExecuteFunction("UpdateCustomerLogin", mergeOption, customerIdParameter, emailAddressParameter, passwordParameter, isActiveParameter, isLockedOutParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
public ObjectResult GetCustomerInventory(Nullable customerId)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
return base.ExecuteFunction("GetCustomerInventory", customerIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerInventory(Nullable customerId, Nullable inventoryItemTypeId, Nullable costGeneralWash, Nullable costRepeatWash, Nullable costStainWash, Nullable operatorLoginId)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter inventoryItemTypeIdParameter;
if (inventoryItemTypeId.HasValue)
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", inventoryItemTypeId);
}
else
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", typeof(global::System.Int32));
}
ObjectParameter costGeneralWashParameter;
if (costGeneralWash.HasValue)
{
costGeneralWashParameter = new ObjectParameter("CostGeneralWash", costGeneralWash);
}
else
{
costGeneralWashParameter = new ObjectParameter("CostGeneralWash", typeof(global::System.Int32));
}
ObjectParameter costRepeatWashParameter;
if (costRepeatWash.HasValue)
{
costRepeatWashParameter = new ObjectParameter("CostRepeatWash", costRepeatWash);
}
else
{
costRepeatWashParameter = new ObjectParameter("CostRepeatWash", typeof(global::System.Int32));
}
ObjectParameter costStainWashParameter;
if (costStainWash.HasValue)
{
costStainWashParameter = new ObjectParameter("CostStainWash", costStainWash);
}
else
{
costStainWashParameter = new ObjectParameter("CostStainWash", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateCustomerInventory", customerIdParameter, inventoryItemTypeIdParameter, costGeneralWashParameter, costRepeatWashParameter, costStainWashParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerInventory(Nullable customerId, Nullable inventoryItemTypeId, Nullable costGeneralWash, Nullable costRepeatWash, Nullable costStainWash, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter inventoryItemTypeIdParameter;
if (inventoryItemTypeId.HasValue)
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", inventoryItemTypeId);
}
else
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", typeof(global::System.Int32));
}
ObjectParameter costGeneralWashParameter;
if (costGeneralWash.HasValue)
{
costGeneralWashParameter = new ObjectParameter("CostGeneralWash", costGeneralWash);
}
else
{
costGeneralWashParameter = new ObjectParameter("CostGeneralWash", typeof(global::System.Int32));
}
ObjectParameter costRepeatWashParameter;
if (costRepeatWash.HasValue)
{
costRepeatWashParameter = new ObjectParameter("CostRepeatWash", costRepeatWash);
}
else
{
costRepeatWashParameter = new ObjectParameter("CostRepeatWash", typeof(global::System.Int32));
}
ObjectParameter costStainWashParameter;
if (costStainWash.HasValue)
{
costStainWashParameter = new ObjectParameter("CostStainWash", costStainWash);
}
else
{
costStainWashParameter = new ObjectParameter("CostStainWash", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateCustomerInventory", mergeOption, customerIdParameter, inventoryItemTypeIdParameter, costGeneralWashParameter, costRepeatWashParameter, costStainWashParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult LoginCustomer(global::System.String emailAddress, global::System.String password, global::System.String iPAddress)
{
ObjectParameter emailAddressParameter;
if (emailAddress != null)
{
emailAddressParameter = new ObjectParameter("EmailAddress", emailAddress);
}
else
{
emailAddressParameter = new ObjectParameter("EmailAddress", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter iPAddressParameter;
if (iPAddress != null)
{
iPAddressParameter = new ObjectParameter("IPAddress", iPAddress);
}
else
{
iPAddressParameter = new ObjectParameter("IPAddress", typeof(global::System.String));
}
return base.ExecuteFunction("LoginCustomer", emailAddressParameter, passwordParameter, iPAddressParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult LoginCustomer(global::System.String emailAddress, global::System.String password, global::System.String iPAddress, MergeOption mergeOption)
{
ObjectParameter emailAddressParameter;
if (emailAddress != null)
{
emailAddressParameter = new ObjectParameter("EmailAddress", emailAddress);
}
else
{
emailAddressParameter = new ObjectParameter("EmailAddress", typeof(global::System.String));
}
ObjectParameter passwordParameter;
if (password != null)
{
passwordParameter = new ObjectParameter("Password", password);
}
else
{
passwordParameter = new ObjectParameter("Password", typeof(global::System.String));
}
ObjectParameter iPAddressParameter;
if (iPAddress != null)
{
iPAddressParameter = new ObjectParameter("IPAddress", iPAddress);
}
else
{
iPAddressParameter = new ObjectParameter("IPAddress", typeof(global::System.String));
}
return base.ExecuteFunction("LoginCustomer", mergeOption, emailAddressParameter, passwordParameter, iPAddressParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult CreateWorkload(Nullable customerLoginId, Nullable workloadTypeId)
{
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter workloadTypeIdParameter;
if (workloadTypeId.HasValue)
{
workloadTypeIdParameter = new ObjectParameter("WorkloadTypeId", workloadTypeId);
}
else
{
workloadTypeIdParameter = new ObjectParameter("WorkloadTypeId", typeof(global::System.Int32));
}
return base.ExecuteFunction("CreateWorkload", customerLoginIdParameter, workloadTypeIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult CreateWorkload(Nullable customerLoginId, Nullable workloadTypeId, MergeOption mergeOption)
{
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter workloadTypeIdParameter;
if (workloadTypeId.HasValue)
{
workloadTypeIdParameter = new ObjectParameter("WorkloadTypeId", workloadTypeId);
}
else
{
workloadTypeIdParameter = new ObjectParameter("WorkloadTypeId", typeof(global::System.Int32));
}
return base.ExecuteFunction("CreateWorkload", mergeOption, customerLoginIdParameter, workloadTypeIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
public ObjectResult GetCustomerLoginFromGuid(global::System.String guid)
{
ObjectParameter guidParameter;
if (guid != null)
{
guidParameter = new ObjectParameter("Guid", guid);
}
else
{
guidParameter = new ObjectParameter("Guid", typeof(global::System.String));
}
return base.ExecuteFunction("GetCustomerLoginFromGuid", guidParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
public ObjectResult GetCustomerLoginFromGuid(global::System.String guid, MergeOption mergeOption)
{
ObjectParameter guidParameter;
if (guid != null)
{
guidParameter = new ObjectParameter("Guid", guid);
}
else
{
guidParameter = new ObjectParameter("Guid", typeof(global::System.String));
}
return base.ExecuteFunction("GetCustomerLoginFromGuid", mergeOption, guidParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerWorkloadBag(Nullable customerLoginId, Nullable workloadId, global::System.String uniqueReference)
{
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter uniqueReferenceParameter;
if (uniqueReference != null)
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", uniqueReference);
}
else
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", typeof(global::System.String));
}
return base.ExecuteFunction("UpdateCustomerWorkloadBag", customerLoginIdParameter, workloadIdParameter, uniqueReferenceParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateCustomerWorkloadBag(Nullable customerLoginId, Nullable workloadId, global::System.String uniqueReference, MergeOption mergeOption)
{
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter uniqueReferenceParameter;
if (uniqueReference != null)
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", uniqueReference);
}
else
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", typeof(global::System.String));
}
return base.ExecuteFunction("UpdateCustomerWorkloadBag", mergeOption, customerLoginIdParameter, workloadIdParameter, uniqueReferenceParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult AcceptCustomerBag(Nullable customerId, global::System.String uniqueReference, Nullable operatorLoginId)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter uniqueReferenceParameter;
if (uniqueReference != null)
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", uniqueReference);
}
else
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", typeof(global::System.String));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("AcceptCustomerBag", customerIdParameter, uniqueReferenceParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult AcceptCustomerBag(Nullable customerId, global::System.String uniqueReference, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter customerIdParameter;
if (customerId.HasValue)
{
customerIdParameter = new ObjectParameter("CustomerId", customerId);
}
else
{
customerIdParameter = new ObjectParameter("CustomerId", typeof(global::System.Int32));
}
ObjectParameter uniqueReferenceParameter;
if (uniqueReference != null)
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", uniqueReference);
}
else
{
uniqueReferenceParameter = new ObjectParameter("UniqueReference", typeof(global::System.String));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("AcceptCustomerBag", mergeOption, customerIdParameter, uniqueReferenceParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult GenerateInvoiceFromWorkloadCounts(Nullable workloadId, Nullable operatorLoginId)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("GenerateInvoiceFromWorkloadCounts", workloadIdParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult GenerateInvoiceFromWorkloadCounts(Nullable workloadId, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("GenerateInvoiceFromWorkloadCounts", mergeOption, workloadIdParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateInvoiceItemCount(Nullable invoiceId, Nullable inventoryItemTypeId, Nullable count, Nullable operatorLoginId)
{
ObjectParameter invoiceIdParameter;
if (invoiceId.HasValue)
{
invoiceIdParameter = new ObjectParameter("InvoiceId", invoiceId);
}
else
{
invoiceIdParameter = new ObjectParameter("InvoiceId", typeof(global::System.Int32));
}
ObjectParameter inventoryItemTypeIdParameter;
if (inventoryItemTypeId.HasValue)
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", inventoryItemTypeId);
}
else
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateInvoiceItemCount", invoiceIdParameter, inventoryItemTypeIdParameter, countParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateInvoiceItemCount(Nullable invoiceId, Nullable inventoryItemTypeId, Nullable count, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter invoiceIdParameter;
if (invoiceId.HasValue)
{
invoiceIdParameter = new ObjectParameter("InvoiceId", invoiceId);
}
else
{
invoiceIdParameter = new ObjectParameter("InvoiceId", typeof(global::System.Int32));
}
ObjectParameter inventoryItemTypeIdParameter;
if (inventoryItemTypeId.HasValue)
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", inventoryItemTypeId);
}
else
{
inventoryItemTypeIdParameter = new ObjectParameter("InventoryItemTypeId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateInvoiceItemCount", mergeOption, invoiceIdParameter, inventoryItemTypeIdParameter, countParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult FinishCounting(Nullable workloadId, Nullable operatorLoginId)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("FinishCounting", workloadIdParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult FinishCounting(Nullable workloadId, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("FinishCounting", mergeOption, workloadIdParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
public ObjectResult GetInvoiceForPrinter(Nullable invoiceId)
{
ObjectParameter invoiceIdParameter;
if (invoiceId.HasValue)
{
invoiceIdParameter = new ObjectParameter("InvoiceId", invoiceId);
}
else
{
invoiceIdParameter = new ObjectParameter("InvoiceId", typeof(global::System.Int32));
}
return base.ExecuteFunction("GetInvoiceForPrinter", invoiceIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult DispatchItem(Nullable invoiceItemId, Nullable count, Nullable operatorLoginId)
{
ObjectParameter invoiceItemIdParameter;
if (invoiceItemId.HasValue)
{
invoiceItemIdParameter = new ObjectParameter("InvoiceItemId", invoiceItemId);
}
else
{
invoiceItemIdParameter = new ObjectParameter("InvoiceItemId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("DispatchItem", invoiceItemIdParameter, countParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult DispatchItem(Nullable invoiceItemId, Nullable count, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter invoiceItemIdParameter;
if (invoiceItemId.HasValue)
{
invoiceItemIdParameter = new ObjectParameter("InvoiceItemId", invoiceItemId);
}
else
{
invoiceItemIdParameter = new ObjectParameter("InvoiceItemId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("DispatchItem", mergeOption, invoiceItemIdParameter, countParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateWorkloadItem(Nullable workloadId, Nullable customerInventoryId, Nullable count, Nullable customerLoginId, Nullable operatorLoginId)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter customerInventoryIdParameter;
if (customerInventoryId.HasValue)
{
customerInventoryIdParameter = new ObjectParameter("CustomerInventoryId", customerInventoryId);
}
else
{
customerInventoryIdParameter = new ObjectParameter("CustomerInventoryId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateWorkloadItem", workloadIdParameter, customerInventoryIdParameter, countParameter, customerLoginIdParameter, operatorLoginIdParameter);
}
///
/// No Metadata Documentation available.
///
///
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
/// No Metadata Documentation available.
public ObjectResult UpdateWorkloadItem(Nullable workloadId, Nullable customerInventoryId, Nullable count, Nullable customerLoginId, Nullable operatorLoginId, MergeOption mergeOption)
{
ObjectParameter workloadIdParameter;
if (workloadId.HasValue)
{
workloadIdParameter = new ObjectParameter("WorkloadId", workloadId);
}
else
{
workloadIdParameter = new ObjectParameter("WorkloadId", typeof(global::System.Int32));
}
ObjectParameter customerInventoryIdParameter;
if (customerInventoryId.HasValue)
{
customerInventoryIdParameter = new ObjectParameter("CustomerInventoryId", customerInventoryId);
}
else
{
customerInventoryIdParameter = new ObjectParameter("CustomerInventoryId", typeof(global::System.Int32));
}
ObjectParameter countParameter;
if (count.HasValue)
{
countParameter = new ObjectParameter("Count", count);
}
else
{
countParameter = new ObjectParameter("Count", typeof(global::System.Int32));
}
ObjectParameter customerLoginIdParameter;
if (customerLoginId.HasValue)
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", customerLoginId);
}
else
{
customerLoginIdParameter = new ObjectParameter("CustomerLoginId", typeof(global::System.Int32));
}
ObjectParameter operatorLoginIdParameter;
if (operatorLoginId.HasValue)
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", operatorLoginId);
}
else
{
operatorLoginIdParameter = new ObjectParameter("OperatorLoginId", typeof(global::System.Int32));
}
return base.ExecuteFunction("UpdateWorkloadItem", mergeOption, workloadIdParameter, customerInventoryIdParameter, countParameter, customerLoginIdParameter, operatorLoginIdParameter);
}
#endregion
}
#endregion
#region Entities
///
/// No Metadata Documentation available.
///
[EdmEntityTypeAttribute(NamespaceName="PersonalLaundryModel", Name="BillingProfile")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class BillingProfile : EntityObject
{
#region Factory Method
///
/// Create a new BillingProfile object.
///
/// Initial value of the BillingProfileId property.
/// Initial value of the ProfileName property.
/// Initial value of the IncludeRewashInInvoice property.
public static BillingProfile CreateBillingProfile(global::System.Int32 billingProfileId, global::System.String profileName, global::System.Boolean includeRewashInInvoice)
{
BillingProfile billingProfile = new BillingProfile();
billingProfile.BillingProfileId = billingProfileId;
billingProfile.ProfileName = profileName;
billingProfile.IncludeRewashInInvoice = includeRewashInInvoice;
return billingProfile;
}
#endregion
#region Primitive Properties
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 BillingProfileId
{
get
{
return _BillingProfileId;
}
set
{
if (_BillingProfileId != value)
{
OnBillingProfileIdChanging(value);
ReportPropertyChanging("BillingProfileId");
_BillingProfileId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("BillingProfileId");
OnBillingProfileIdChanged();
}
}
}
private global::System.Int32 _BillingProfileId;
partial void OnBillingProfileIdChanging(global::System.Int32 value);
partial void OnBillingProfileIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String ProfileName
{
get
{
return _ProfileName;
}
set
{
OnProfileNameChanging(value);
ReportPropertyChanging("ProfileName");
_ProfileName = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("ProfileName");
OnProfileNameChanged();
}
}
private global::System.String _ProfileName;
partial void OnProfileNameChanging(global::System.String value);
partial void OnProfileNameChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Boolean IncludeRewashInInvoice
{
get
{
return _IncludeRewashInInvoice;
}
set
{
OnIncludeRewashInInvoiceChanging(value);
ReportPropertyChanging("IncludeRewashInInvoice");
_IncludeRewashInInvoice = StructuralObject.SetValidValue(value);
ReportPropertyChanged("IncludeRewashInInvoice");
OnIncludeRewashInInvoiceChanged();
}
}
private global::System.Boolean _IncludeRewashInInvoice;
partial void OnIncludeRewashInInvoiceChanging(global::System.Boolean value);
partial void OnIncludeRewashInInvoiceChanged();
#endregion
#region Navigation Properties
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_Customers_BillingProfiles", "Customer")]
public EntityCollection Customers
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_Customers_BillingProfiles", "Customer");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_Customers_BillingProfiles", "Customer", value);
}
}
}
#endregion
}
///
/// No Metadata Documentation available.
///
[EdmEntityTypeAttribute(NamespaceName="PersonalLaundryModel", Name="Customer")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class Customer : EntityObject
{
#region Factory Method
///
/// Create a new Customer object.
///
/// Initial value of the CustomerId property.
/// Initial value of the Name property.
/// Initial value of the BillingProfileId property.
/// Initial value of the OperatorLoginId property.
/// Initial value of the EmailAddress property.
public static Customer CreateCustomer(global::System.Int32 customerId, global::System.String name, global::System.Int32 billingProfileId, global::System.Int32 operatorLoginId, global::System.String emailAddress)
{
Customer customer = new Customer();
customer.CustomerId = customerId;
customer.Name = name;
customer.BillingProfileId = billingProfileId;
customer.OperatorLoginId = operatorLoginId;
customer.EmailAddress = emailAddress;
return customer;
}
#endregion
#region Primitive Properties
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CustomerId
{
get
{
return _CustomerId;
}
set
{
if (_CustomerId != value)
{
OnCustomerIdChanging(value);
ReportPropertyChanging("CustomerId");
_CustomerId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CustomerId");
OnCustomerIdChanged();
}
}
}
private global::System.Int32 _CustomerId;
partial void OnCustomerIdChanging(global::System.Int32 value);
partial void OnCustomerIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String Name
{
get
{
return _Name;
}
set
{
OnNameChanging(value);
ReportPropertyChanging("Name");
_Name = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("Name");
OnNameChanged();
}
}
private global::System.String _Name;
partial void OnNameChanging(global::System.String value);
partial void OnNameChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 BillingProfileId
{
get
{
return _BillingProfileId;
}
set
{
OnBillingProfileIdChanging(value);
ReportPropertyChanging("BillingProfileId");
_BillingProfileId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("BillingProfileId");
OnBillingProfileIdChanged();
}
}
private global::System.Int32 _BillingProfileId;
partial void OnBillingProfileIdChanging(global::System.Int32 value);
partial void OnBillingProfileIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 OperatorLoginId
{
get
{
return _OperatorLoginId;
}
set
{
OnOperatorLoginIdChanging(value);
ReportPropertyChanging("OperatorLoginId");
_OperatorLoginId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("OperatorLoginId");
OnOperatorLoginIdChanged();
}
}
private global::System.Int32 _OperatorLoginId;
partial void OnOperatorLoginIdChanging(global::System.Int32 value);
partial void OnOperatorLoginIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String EmailAddress
{
get
{
return _EmailAddress;
}
set
{
OnEmailAddressChanging(value);
ReportPropertyChanging("EmailAddress");
_EmailAddress = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("EmailAddress");
OnEmailAddressChanged();
}
}
private global::System.String _EmailAddress;
partial void OnEmailAddressChanging(global::System.String value);
partial void OnEmailAddressChanged();
///
/// 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 AddressLine1
{
get
{
return _AddressLine1;
}
set
{
OnAddressLine1Changing(value);
ReportPropertyChanging("AddressLine1");
_AddressLine1 = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("AddressLine1");
OnAddressLine1Changed();
}
}
private global::System.String _AddressLine1;
partial void OnAddressLine1Changing(global::System.String value);
partial void OnAddressLine1Changed();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String AddressLine2
{
get
{
return _AddressLine2;
}
set
{
OnAddressLine2Changing(value);
ReportPropertyChanging("AddressLine2");
_AddressLine2 = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("AddressLine2");
OnAddressLine2Changed();
}
}
private global::System.String _AddressLine2;
partial void OnAddressLine2Changing(global::System.String value);
partial void OnAddressLine2Changed();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String AddressCity
{
get
{
return _AddressCity;
}
set
{
OnAddressCityChanging(value);
ReportPropertyChanging("AddressCity");
_AddressCity = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("AddressCity");
OnAddressCityChanged();
}
}
private global::System.String _AddressCity;
partial void OnAddressCityChanging(global::System.String value);
partial void OnAddressCityChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String AddressPostCode
{
get
{
return _AddressPostCode;
}
set
{
OnAddressPostCodeChanging(value);
ReportPropertyChanging("AddressPostCode");
_AddressPostCode = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("AddressPostCode");
OnAddressPostCodeChanged();
}
}
private global::System.String _AddressPostCode;
partial void OnAddressPostCodeChanging(global::System.String value);
partial void OnAddressPostCodeChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
[DataMemberAttribute()]
public global::System.String VATNumber
{
get
{
return _VATNumber;
}
set
{
OnVATNumberChanging(value);
ReportPropertyChanging("VATNumber");
_VATNumber = StructuralObject.SetValidValue(value, true);
ReportPropertyChanged("VATNumber");
OnVATNumberChanged();
}
}
private global::System.String _VATNumber;
partial void OnVATNumberChanging(global::System.String value);
partial void OnVATNumberChanged();
#endregion
#region Navigation Properties
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_Customers_BillingProfiles", "BillingProfile")]
public BillingProfile BillingProfile
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_BillingProfiles", "BillingProfile").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_BillingProfiles", "BillingProfile").Value = value;
}
}
///
/// No Metadata Documentation available.
///
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference BillingProfileReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_BillingProfiles", "BillingProfile");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("PersonalLaundryModel.FK_Customers_BillingProfiles", "BillingProfile", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_CustomerInventory_Customer", "CustomerInventory")]
public EntityCollection CustomerInventories
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_CustomerInventory_Customer", "CustomerInventory");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_CustomerInventory_Customer", "CustomerInventory", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_CustomerLogins_Customers", "CustomerLogin")]
public EntityCollection CustomerLogins
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_CustomerLogins_Customers", "CustomerLogin");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_CustomerLogins_Customers", "CustomerLogin", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_Customers_OperatorLogins", "OperatorLogin")]
public OperatorLogin OperatorLogin
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_OperatorLogins", "OperatorLogin").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_OperatorLogins", "OperatorLogin").Value = value;
}
}
///
/// No Metadata Documentation available.
///
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference OperatorLoginReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_Customers_OperatorLogins", "OperatorLogin");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("PersonalLaundryModel.FK_Customers_OperatorLogins", "OperatorLogin", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_InventoryItems_Customers", "InventoryItem")]
public EntityCollection InventoryItems
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_InventoryItems_Customers", "InventoryItem");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_InventoryItems_Customers", "InventoryItem", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_Workloads_Customers", "Workload")]
public EntityCollection Workloads
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_Workloads_Customers", "Workload");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_Workloads_Customers", "Workload", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_Invoices_Customers", "Invoice")]
public EntityCollection Invoices
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection("PersonalLaundryModel.FK_Invoices_Customers", "Invoice");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection("PersonalLaundryModel.FK_Invoices_Customers", "Invoice", value);
}
}
}
#endregion
}
///
/// No Metadata Documentation available.
///
[EdmEntityTypeAttribute(NamespaceName="PersonalLaundryModel", Name="CustomerInventory")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class CustomerInventory : EntityObject
{
#region Factory Method
///
/// Create a new CustomerInventory object.
///
/// Initial value of the CustomerInventoryId property.
/// Initial value of the CustomerId property.
/// Initial value of the InventoryItemTypeId property.
/// Initial value of the OperatorLoginId property.
/// Initial value of the TimeStamp property.
/// Initial value of the CostGeneralWash property.
/// Initial value of the CostRepeatWash property.
/// Initial value of the CostStainWash property.
public static CustomerInventory CreateCustomerInventory(global::System.Int32 customerInventoryId, global::System.Int32 customerId, global::System.Int32 inventoryItemTypeId, global::System.Int32 operatorLoginId, global::System.DateTime timeStamp, global::System.Int32 costGeneralWash, global::System.Int32 costRepeatWash, global::System.Int32 costStainWash)
{
CustomerInventory customerInventory = new CustomerInventory();
customerInventory.CustomerInventoryId = customerInventoryId;
customerInventory.CustomerId = customerId;
customerInventory.InventoryItemTypeId = inventoryItemTypeId;
customerInventory.OperatorLoginId = operatorLoginId;
customerInventory.TimeStamp = timeStamp;
customerInventory.CostGeneralWash = costGeneralWash;
customerInventory.CostRepeatWash = costRepeatWash;
customerInventory.CostStainWash = costStainWash;
return customerInventory;
}
#endregion
#region Primitive Properties
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CustomerInventoryId
{
get
{
return _CustomerInventoryId;
}
set
{
if (_CustomerInventoryId != value)
{
OnCustomerInventoryIdChanging(value);
ReportPropertyChanging("CustomerInventoryId");
_CustomerInventoryId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CustomerInventoryId");
OnCustomerInventoryIdChanged();
}
}
}
private global::System.Int32 _CustomerInventoryId;
partial void OnCustomerInventoryIdChanging(global::System.Int32 value);
partial void OnCustomerInventoryIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CustomerId
{
get
{
return _CustomerId;
}
set
{
OnCustomerIdChanging(value);
ReportPropertyChanging("CustomerId");
_CustomerId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CustomerId");
OnCustomerIdChanged();
}
}
private global::System.Int32 _CustomerId;
partial void OnCustomerIdChanging(global::System.Int32 value);
partial void OnCustomerIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 InventoryItemTypeId
{
get
{
return _InventoryItemTypeId;
}
set
{
OnInventoryItemTypeIdChanging(value);
ReportPropertyChanging("InventoryItemTypeId");
_InventoryItemTypeId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("InventoryItemTypeId");
OnInventoryItemTypeIdChanged();
}
}
private global::System.Int32 _InventoryItemTypeId;
partial void OnInventoryItemTypeIdChanging(global::System.Int32 value);
partial void OnInventoryItemTypeIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 OperatorLoginId
{
get
{
return _OperatorLoginId;
}
set
{
OnOperatorLoginIdChanging(value);
ReportPropertyChanging("OperatorLoginId");
_OperatorLoginId = StructuralObject.SetValidValue(value);
ReportPropertyChanged("OperatorLoginId");
OnOperatorLoginIdChanged();
}
}
private global::System.Int32 _OperatorLoginId;
partial void OnOperatorLoginIdChanging(global::System.Int32 value);
partial void OnOperatorLoginIdChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.DateTime TimeStamp
{
get
{
return _TimeStamp;
}
set
{
OnTimeStampChanging(value);
ReportPropertyChanging("TimeStamp");
_TimeStamp = StructuralObject.SetValidValue(value);
ReportPropertyChanged("TimeStamp");
OnTimeStampChanged();
}
}
private global::System.DateTime _TimeStamp;
partial void OnTimeStampChanging(global::System.DateTime value);
partial void OnTimeStampChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CostGeneralWash
{
get
{
return _CostGeneralWash;
}
set
{
OnCostGeneralWashChanging(value);
ReportPropertyChanging("CostGeneralWash");
_CostGeneralWash = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CostGeneralWash");
OnCostGeneralWashChanged();
}
}
private global::System.Int32 _CostGeneralWash;
partial void OnCostGeneralWashChanging(global::System.Int32 value);
partial void OnCostGeneralWashChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CostRepeatWash
{
get
{
return _CostRepeatWash;
}
set
{
OnCostRepeatWashChanging(value);
ReportPropertyChanging("CostRepeatWash");
_CostRepeatWash = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CostRepeatWash");
OnCostRepeatWashChanged();
}
}
private global::System.Int32 _CostRepeatWash;
partial void OnCostRepeatWashChanging(global::System.Int32 value);
partial void OnCostRepeatWashChanged();
///
/// No Metadata Documentation available.
///
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.Int32 CostStainWash
{
get
{
return _CostStainWash;
}
set
{
OnCostStainWashChanging(value);
ReportPropertyChanging("CostStainWash");
_CostStainWash = StructuralObject.SetValidValue(value);
ReportPropertyChanged("CostStainWash");
OnCostStainWashChanged();
}
}
private global::System.Int32 _CostStainWash;
partial void OnCostStainWashChanging(global::System.Int32 value);
partial void OnCostStainWashChanged();
#endregion
#region Navigation Properties
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_CustomerInventory_Customer", "Customer")]
public Customer Customer
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_Customer", "Customer").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_Customer", "Customer").Value = value;
}
}
///
/// No Metadata Documentation available.
///
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference CustomerReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_Customer", "Customer");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("PersonalLaundryModel.FK_CustomerInventory_Customer", "Customer", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_CustomerInventory_InventoryItemTypes", "InventoryItemType")]
public InventoryItemType InventoryItemType
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_InventoryItemTypes", "InventoryItemType").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_InventoryItemTypes", "InventoryItemType").Value = value;
}
}
///
/// No Metadata Documentation available.
///
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference InventoryItemTypeReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_InventoryItemTypes", "InventoryItemType");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("PersonalLaundryModel.FK_CustomerInventory_InventoryItemTypes", "InventoryItemType", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_CustomerInventory_OperatorLogins", "OperatorLogin")]
public OperatorLogin OperatorLogin
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_OperatorLogins", "OperatorLogin").Value;
}
set
{
((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_OperatorLogins", "OperatorLogin").Value = value;
}
}
///
/// No Metadata Documentation available.
///
[BrowsableAttribute(false)]
[DataMemberAttribute()]
public EntityReference OperatorLoginReference
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference("PersonalLaundryModel.FK_CustomerInventory_OperatorLogins", "OperatorLogin");
}
set
{
if ((value != null))
{
((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference("PersonalLaundryModel.FK_CustomerInventory_OperatorLogins", "OperatorLogin", value);
}
}
}
///
/// No Metadata Documentation available.
///
[XmlIgnoreAttribute()]
[SoapIgnoreAttribute()]
[DataMemberAttribute()]
[EdmRelationshipNavigationPropertyAttribute("PersonalLaundryModel", "FK_WorkloadItems_CustomerInventory", "WorkloadItem")]
public EntityCollection WorkloadItems
{
get
{
return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection