static public void Delete(System.String customerTypeID, esSqlAccessType sqlAccessType) { var obj = new CustomerDemographics(); obj.CustomerTypeID = customerTypeID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
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; }
public void InsertCustomerDemographics(BusinessObjects.CustomerDemographics obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }