Esempio n. 1
0
        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>();
        }
Esempio n. 2
0
 /// <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
         });
     }
 }
Esempio n. 3
0
 public void DeleteTask(Task task)
 {
     siaqodb.Delete(task);
 }