public LoadDiagramColumnNode(LoadDiagramTableNode tableNode, IHasStageSpecificRuntimeName column, LoadBubble bubble) { _tableNode = tableNode; _column = column; _bubble = bubble; ColumnName = _column.GetRuntimeName(_bubble.ToLoadStage()); var colInfo = _column as ColumnInfo; var preLoadDiscarded = _column as PreLoadDiscardedColumn; if (preLoadDiscarded != null) { _expectedDataType = preLoadDiscarded.SqlDataType; } else if (colInfo != null) { _expectedDataType = colInfo.GetRuntimeDataType(_bubble.ToLoadStage()); } else { throw new Exception("Expected _column to be ColumnInfo or PreLoadDiscardedColumn but it was:" + _column.GetType().Name); } }
protected bool Equals(LoadDiagramTableNode other) { return(Equals(_databaseNode, other._databaseNode) && Bubble == other.Bubble && string.Equals(TableName, other.TableName)); }