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);
        }