static public void Delete(System.String customerID, System.String customerTypeID, esSqlAccessType sqlAccessType) { var obj = new CustomerCustomerDemo(); obj.CustomerID = customerID; obj.CustomerTypeID = customerTypeID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public void UpdateCustomerCustomerDemo(BusinessObjects.CustomerCustomerDemo obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerCustomerDemo_Save(CustomerCustomerDemo entity) { jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void InsertCustomerCustomerDemo(BusinessObjects.CustomerCustomerDemo obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }