Пример #1
0
 public ExtensionNetwork(ExtensionNetwork copyNetwork)
 {
     this.Id                 = copyNetwork.Id;
     this.NetworkId          = copyNetwork.NetworkId;
     this.NetworkName        = copyNetwork.NetworkName;
     this.NetworkURIPartName = copyNetwork.NetworkURIPartName;
     this.NetworkDescription = copyNetwork.NetworkDescription;
     this.URIFull            = copyNetwork.URIFull;
     this.AdminConnection    = copyNetwork.AdminConnection;
     this.WebFileSystemPath  = copyNetwork.WebFileSystemPath;
     this.WebConnection      = copyNetwork.WebConnection;
     this.WebDbPath          = copyNetwork.WebDbPath;
     this.XmlConnection      = copyNetwork.XmlConnection;
     this.NetworkGroupId     = copyNetwork.NetworkGroupId;
     this.NetworkGroupName   = copyNetwork.NetworkGroupName;
 }
Пример #2
0
        public static Network GetNetwork(ExtensionNetwork copyNetwork)
        {
            Network newNetwork = new Network();

            newNetwork.PKId = copyNetwork.Id;
            //newNetwork.NetworkId = copyNetwork.NetworkId;
            newNetwork.NetworkName        = copyNetwork.NetworkName;
            newNetwork.NetworkURIPartName = copyNetwork.NetworkURIPartName;
            newNetwork.NetworkDesc        = copyNetwork.NetworkDescription;
            newNetwork.URIFull            = copyNetwork.URIFull;
            newNetwork.AdminConnection    = copyNetwork.AdminConnection;
            newNetwork.WebFileSystemPath  = copyNetwork.WebFileSystemPath;
            newNetwork.WebConnection      = copyNetwork.WebConnection;
            newNetwork.WebDbPath          = copyNetwork.WebDbPath;
            //newNetwork.XmlConnection = copyNetwork.XmlConnection;
            newNetwork.NetworkClassId = copyNetwork.NetworkGroupId;
            //newNetwork.NetworkGroupName = copyNetwork.NetworkGroupName;
            return(newNetwork);
        }