示例#1
0
        public LoadDiagramTableNode(LoadDiagramDatabaseNode databaseNode, TableInfo tableInfo, LoadBubble bubble, HICDatabaseConfiguration config)
        {
            _databaseNode = databaseNode;
            TableInfo     = tableInfo;
            Bubble        = bubble;
            _config       = config;

            State = LoadDiagramState.Anticipated;

            TableName = TableInfo.GetRuntimeName(Bubble);

            //only reference schema if it is LIVE
            string schema = bubble >= LoadBubble.Live ? tableInfo.Schema: null;

            Table = databaseNode.Database.ExpectTable(TableName, schema);


            var cols =
                TableInfo.GetColumnsAtStage(Bubble.ToLoadStage())
                .Select(c => new LoadDiagramColumnNode(this, c, Bubble));

            _anticipatedChildren.AddRange(cols);
        }
示例#2
0
 protected bool Equals(LoadDiagramDatabaseNode other)
 {
     return(string.Equals(DatabaseName, other.DatabaseName) && _bubble == other._bubble);
 }