static public void Delete(System.Int32 regionID, esSqlAccessType sqlAccessType) { var obj = new Region(); obj.RegionID = regionID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
static public void Delete(System.Int32 regionID) { var obj = new Region(); obj.RegionID = regionID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(); }
public void UpdateRegion(BusinessObjects.Region obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public jsResponse<RegionCollection, Region> Region_Save(Region entity) { jsResponse<RegionCollection, Region> response = new jsResponse<RegionCollection, Region>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void InsertRegion(BusinessObjects.Region obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }