using Oracle.ManagedDataAccess.Client; /// var server = Configuration["ora.server"]; var service_name = Configuration["ora.service_name"]; var user = Configuration["ora.user"]; var passw = Configuration["passw"]; var conn = new OracleConnection(); conn.ConnectionString = $"user id={user}; password={passw}; data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST={server})(PORT=1521))(CONNECT_DATA=(SERVICE_NAME={service_name})))"; conn.Open();
Обсуждают сегодня