public CustomersProxyStub Customers_QueryForEntity(string serializedQuery)
		{
			CustomersQuery query = CustomersQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(CustomersQuery), AllKnownTypes) as CustomersQuery;

			Customers obj = new Customers();
			if (obj.Load(query))
			{
				return obj;
			}

			return null;
		}
		public CustomersProxyStub Customers_GetByPrimaryKey(System.String customerID)
		{
			Customers obj = new Customers();
			if (obj.LoadByPrimaryKey(customerID))
			{
				return obj;
			}
			return null;
		}
		public jsResponse<CustomerDemographicsCollection, CustomerDemographics> Customers_UpToCustomerDemographicsCollection(System.String customerID)
		{
			jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();

			try
			{
				Customers entity = new Customers();
				entity.CustomerID = customerID;
				response.collection = entity.UpToCustomerDemographicsCollection;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;		
		}
		public jsResponse<OrdersCollection, Orders> Customers_OrdersCollectionByCustomerID(System.String customerID)
		{
			jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>();

			try
			{
				Customers entity = new Customers();
				entity.CustomerID = customerID;
				response.collection = entity.OrdersCollectionByCustomerID;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;		
		}
		public jsResponse<CustomersCollection, Customers> Customers_Save(Customers entity)
		{
			jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>();

			try
			{
				entity.Save();
				response.entity = entity;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
		public jsResponse<CustomersCollection, Customers> Customers_LoadByPrimaryKey(System.String customerID)
		{
			jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>();

			try
			{
				Customers entity = new Customers();
				if (entity.LoadByPrimaryKey(customerID))
				{
					response.entity = entity;
				}
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
Beispiel #7
0
 public void DeleteCustomers(BusinessObjects.Customers obj)
 {
     BusinessObjects.Customers.Delete(obj.CustomerID);
 }
Beispiel #8
0
 public void UpdateCustomers(BusinessObjects.Customers obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
Beispiel #9
0
 public void InsertCustomers(BusinessObjects.Customers obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }