internal void ConvertTableTypeTo(System.Data.Design.TableType newTableType) { if (newTableType != this.tableType) { IComponentChangeService service = (IComponentChangeService) this.GetService(typeof(IComponentChangeService)); if (service != null) { service.OnComponentChanging(this, null); } try { this.TableType = newTableType; this.mainSource = null; this.sources = null; this.mappings = null; this.provider = string.Empty; this.OnTableTypeChanged(); } finally { if (service != null) { service.OnComponentChanged(this, null, null, null); } } } }
private void RemoveColumnsFromSource(Source source, string[] colsToRemove) { }
public void Remove(Source s) { base.List.Remove(s); }
public int IndexOf(Source s) { return base.List.IndexOf(s); }
public bool Contains(Source s) { return base.List.Contains(s); }
public int Add(Source s) { return base.List.Add(s); }
private void SetConnectionProperty(Source source) { DbSource source2 = source as DbSource; if (source2 != null) { string connectionRef = source2.ConnectionRef; if ((connectionRef != null) && (connectionRef.Length != 0)) { IDesignConnection connection = this.DesignConnections.Get(connectionRef); if (connection != null) { source2.Connection = connection; } } } }