public DatabaseInterface(DatabaseInterfaceXmlType xmlType) { this.DatabaseID = xmlType.DatabaseID; this.ServerAddress = xmlType.ServerAddress; this.Port = xmlType.Port; this.DatabaseName = xmlType.DatabaseName; this.DatabaseType = xmlType.DatabaseType; }
public DatabaseInterfaceXmlType GetXmlType() { DatabaseInterfaceXmlType retValue = new DatabaseInterfaceXmlType(); retValue.DatabaseID = this.DatabaseID; retValue.ServerAddress = this.ServerAddress; retValue.Port = this.Port; retValue.DatabaseName = this.DatabaseName; retValue.DatabaseType = this.DatabaseType; return retValue; }