コード例 #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>();
        }
コード例 #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
         });
     }
 }
コード例 #3
0
 public void DeleteTask(Task task)
 {
     siaqodb.Delete(task);
 }