/// <summary> /// Store the config info to field member(Entity). /// </summary> /// <param name="config">ConfigManager object.</param> protected override void SetEntity(ConfigManagerBase config) { if (config == null) { this.VMNetwork = new VSEMVMNetwork(); this.VMNetwork.VmNetworks = new List<VMNetwork>(); this.VMNetwork.VMNetworkMappingInformation = new VMNetworkMappingInfo(); this.VMNetwork.VMNetworkMappingInformation.VMNetworkInfo = new List<VMNetworkInfo>(); } else { this.VMNetwork = ((VMNetworkConfig)config).VMNetwork; } }
/// <summary> /// Store the config info to field member(Entity). /// </summary> /// <param name="config">ConfigManager object.</param> protected override void SetEntity(ConfigManagerBase config) { if (config == null) { this.VMNetwork = new VSEMVMNetwork(); this.VMNetwork.VmNetworks = new List <VMNetwork>(); this.VMNetwork.VMNetworkMappingInformation = new VMNetworkMappingInfo(); this.VMNetwork.VMNetworkMappingInformation.VMNetworkInfo = new List <VMNetworkInfo>(); } else { this.VMNetwork = ((VMNetworkConfig)config).VMNetwork; } }