async void SqlFDB_TableAltered(string table) { if (_layers == null) { return; } foreach (IDatasetElement element in _layers) { if (element.Class is pgFeatureClass && ((pgFeatureClass)element.Class).Name == table) { var fields = await _fdb.FeatureClassFields(this._dsID, table); pgFeatureClass fc = element.Class as pgFeatureClass; ((Fields)fc.Fields).Clear(); foreach (IField field in fields) { ((Fields)fc.Fields).Add(field); } } } }