Exemplo n.º 1
0
        public async Task DropSchemaAsync(string objectName)
        {
            JMXObjectName name = objectName;

            using (var mdb = await MdbContext.CreateMdbContextAsync(_cn).ConfigureAwait(false))
            {
                await _syncronizer.DropSchemaAsync(mdb, name.AreaName, name.ObjectName).ConfigureAwait(false);
            }
            lock (objLock)
                _schemaCache.Remove(name.ToString());
        }
Exemplo n.º 2
0
        public override async Task DeleteSchemaAsync(string objectName)
        {
            JMXObjectName name   = objectName;
            MdbContext    mdb    = Factory.GetMdbContext();
            var           schema = await GetSchemaAsync(mdb, name.AreaName, name.ObjectName);

            await mdb.ExecuteAsync(SQLite.DelSysSchemas,
                                   new MdbParameter("@ID", schema.ID));

            _schemaCache.Remove(name.ToString());
        }