private void Delete() { IObjectList <Company> allCompanies = siaqodb.LoadAll <Company>(); //delete object in database( in memory will still be available until GC will take it) siaqodb.Delete(allCompanies[0]); int count = siaqodb.Count <Company>(); }
/// <summary> /// Deletes the task. /// </summary> /// <param name="task">Task.</param> public void DeleteTask(TaskItem task) { try { siaqodb.Delete(task); } catch (Exception ex) { siaqodb.StoreObject(new ErrorLogEntry() { ErrorText = ex.Message }); } }
public void DeleteTask(Task task) { siaqodb.Delete(task); }