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()); }
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()); }