예제 #1
0
        static public void Delete(System.String customerTypeID, esSqlAccessType sqlAccessType)
        {
            var obj = new CustomerDemographics();

            obj.CustomerTypeID = customerTypeID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
예제 #2
0
 public void UpdateCustomerDemographics(BusinessObjects.CustomerDemographics obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
		public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographics_Save(CustomerDemographics entity)
		{
			jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();

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

			return response;
		}
예제 #4
0
 public void InsertCustomerDemographics(BusinessObjects.CustomerDemographics obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }