static public void Delete(System.Int32 categoryID, esSqlAccessType sqlAccessType) { var obj = new Categories(); obj.CategoryID = categoryID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public void UpdateCategories(BusinessObjects.Categories obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public jsResponse<CategoriesCollection, Categories> Categories_Save(Categories entity) { jsResponse<CategoriesCollection, Categories> response = new jsResponse<CategoriesCollection, Categories>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void InsertCategories(BusinessObjects.Categories obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }