static public void Delete(System.String territoryID, esSqlAccessType sqlAccessType) { var obj = new Territories(); obj.TerritoryID = territoryID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public void UpdateTerritories(BusinessObjects.Territories obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public jsResponse<TerritoriesCollection, Territories> Territories_Save(Territories entity) { jsResponse<TerritoriesCollection, Territories> response = new jsResponse<TerritoriesCollection, Territories>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void InsertTerritories(BusinessObjects.Territories obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }