コード例 #1
0
        protected override NodeViewModel Build(Node entity, object args = null)
        {
            this.NodeGroup    = NodeGroupViewModel.NewInstance(entity.NodeGroup);
            this.DatabaseType = entity.DatabaseType.GetEnumKeyValue();

            return(this);
        }
コード例 #2
0
        protected override RouterViewModel Build(Router entity)
        {
            this.Project         = ProjectViewModel.NewInstance(entity.Project);
            this.SourceNodeGroup = NodeGroupViewModel.NewInstance(entity.SourceNodeGroup);
            this.TargetNodeGroup = NodeGroupViewModel.NewInstance(entity.TargetNode.NodeGroup);
            this.TargetNode      = NodeViewModel.NewInstance(entity.TargetNode);

            return(this);
        }