static public void Delete(System.String customerID, esSqlAccessType sqlAccessType) { var obj = new Customers(); obj.CustomerID = customerID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public void UpdateCustomers(BusinessObjects.Customers obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
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 void InsertCustomers(BusinessObjects.Customers obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }