Example #1
0
 public Commands(SQLiteConnection connection)
 {
     this.TableExists        = new TableExistsCommand(connection);
     this.GetVersion         = new GetVersionCommand(connection);
     this.CreateSchema       = new CreateSchemaCommand(connection);
     this.UpsertObject       = new UpsertObjectCommand(connection);
     this.GetObject          = new GetObjectCommand(connection);
     this.QueryObjects       = new QueryObjectsCommand(connection);
     this.UpdateObject       = new UpdateObjectCommand(connection);
     this.GetQueuedRefreshes = new GetQueuedRefreshesCommand(connection);
 }
Example #2
0
            public void Dispose()
            {
                if (TableExists != null)
                {
                    TableExists.Dispose();
                    TableExists = null;
                }

                if (GetVersion != null)
                {
                    GetVersion.Dispose();
                    GetVersion = null;
                }

                if (CreateSchema != null)
                {
                    CreateSchema.Dispose();
                    CreateSchema = null;
                }

                if (UpsertObject != null)
                {
                    UpsertObject.Dispose();
                    UpsertObject = null;
                }

                if (GetObject != null)
                {
                    GetObject.Dispose();
                    GetObject = null;
                }

                if (QueryObjects != null)
                {
                    QueryObjects.Dispose();
                    QueryObjects = null;
                }

                if (UpdateObject != null)
                {
                    UpdateObject.Dispose();
                    UpdateObject = null;
                }

                if (GetQueuedRefreshes != null)
                {
                    GetQueuedRefreshes.Dispose();
                    GetQueuedRefreshes = null;
                }
            }