コード例 #1
0
    public void deleteAllAccount()
    {
        IEnumerable <AcountTable> dataTable = connection.Table <AcountTable>();

        foreach (AcountTable item in dataTable)
        {
            connection.Delete(item);
            break;
        }
    }
コード例 #2
0
ファイル: DataService.cs プロジェクト: imoital/Projects
    public void DeleteColection(int collection_id)
    {
        IEnumerable <Pacote> pacotes = _connection.Table <Pacote>().Where(x => x.collection_id == collection_id);

        foreach (Pacote p in pacotes)
        {
            _connection.Delete(p);
        }

        Colection collection = _connection.Table <Colection>().Where(x => x.Id == collection_id).FirstOrDefault();

        _connection.Delete(collection);
    }
コード例 #3
0
        public bool Remove(T item)
        {
            var result = _connection.Delete(item);

#warning what does result mean here?
            return(true);
        }
コード例 #4
0
 public void Delete(T item)
 {
     _connection.Delete(item);
 }
コード例 #5
0
 public void Delete(CollectedItem collectedItem)
 {
     _connection.Delete(collectedItem);
 }
コード例 #6
0
 public virtual void Remove(T entity)
 {
     _sqliteConnection.Delete(entity);
 }
コード例 #7
0
 public void Delete(Kitten kitten)
 {
     _connection.Delete(kitten);
 }
コード例 #8
0
ファイル: DataService.cs プロジェクト: fakhrul/floria
 public void Delete(Transaction trans)
 {
     _connection.Delete(trans);
 }
コード例 #9
0
        public void RemoveTeam(int teamID)
        {
            _connection.Delete <Team> (teamID);

            _messenger.Publish(new TeamsChangedMessage(this));
        }
コード例 #10
0
 public void Delete(BowTie bowTie)
 {
     _connection.Delete(bowTie);
 }
コード例 #11
0
        // TODO: Reminder about all current storage/repositories in here
        // TODO: Use SQLite as xplat file format to store "Event Stream blobs" maybe?
        // TODO: Do we want things that NEVER get deleted like events stored on a phone?
        // TODO: How would/could you be a good mobile-client citizen using ES on a client without infinite storage?
        // TODO: If I use SQLite "relational" approach, remember when I "Delete" an Action/Project, etc.
        // TODO: I have to manually deal with the ref integrity/cascading deletes, etc.

        public void TrashStuff(ItemOfStuff itemOfStuff)
        {
            _sqlConnection.Delete(itemOfStuff);
        }