public void Serialise(IOracleDatabaseConnector connector, XmlWriter writer) { if (connector == null) { return; } if (writer == null) { return; } writer.WriteStartElement("ConnectionInformation"); writer.WriteAttributeString("DatabaseConnector", "Oracle"); var info = connector.ConnectionInformation; writer.WriteElementString("ServerName", info.ServerName); if (info.UseFileName) { writer.WriteElementString("FileName", info.FileName); } else { writer.WriteElementString("DatabaseName", info.DatabaseName); } if (info.UseIntegratedSecurity) { writer.WriteElementString("UseIntegratedSecurity", "True"); } else { writer.WriteElementString("UserName", info.UserName); if (info.Password != null) { writer.WriteElementString("Password", info.Password.Encrypt()); } } writer.WriteElementString("Port", info.Port.ToString()); writer.WriteElementString("ServiceName", info.ServiceName); writer.WriteElementString("UseDirectConnection", info.UseDirectConnection.ToString()); writer.WriteEndElement(); }
public OracleDatabaseFormFiller(IOracleDatabaseConnector connector) { this.connector = connector; }
public void Serialise(IOracleDatabaseConnector connector, XmlWriter writer) { if (connector == null) return; if (writer == null) return; writer.WriteStartElement("ConnectionInformation"); writer.WriteAttributeString("DatabaseConnector", "Oracle"); var info = connector.ConnectionInformation; writer.WriteElementString("ServerName", info.ServerName); if (info.UseFileName) writer.WriteElementString("FileName", info.FileName); else writer.WriteElementString("DatabaseName", info.DatabaseName); if (info.UseIntegratedSecurity) writer.WriteElementString("UseIntegratedSecurity", "True"); else { writer.WriteElementString("UserName", info.UserName); if (info.Password != null) writer.WriteElementString("Password", info.Password.Encrypt()); } writer.WriteElementString("Port", info.Port.ToString()); writer.WriteElementString("ServiceName", info.ServiceName); writer.WriteElementString("UseDirectConnection", info.UseDirectConnection.ToString()); writer.WriteEndElement(); }
public OracleDatabaseLoader(IOracleDatabaseConnector connector) { this.connector = (OracleDatabaseConnector)connector; }
public OracleDatabaseLoader(IOracleDatabaseConnector connector) { this.connector = (OracleDatabaseConnector)connector; }