在使用最新版本的Oracle.ManagedDataAccess.Core
nuget时,如果查询中的列包含SDO_GEOMETRY列,则连接将冻结。
我正在连接到Oracle 11g。
namespace OracleTest
{
using Oracle.ManagedDataAccess.Client;
using System;
public static class Program
{
public static void Main(string[] args)
{
var connection = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)));User Id=system;Password=oracle");
connection.Open();
OracleCommand command = connection.CreateCommand();
command.CommandText = "SELECT ID, sdo_geometry_notnull FROM GeometryTypesTestTable";
//code freezes here
OracleDataReader reader = command.ExecuteReader();
Console.WriteLine("Done");
Console.ReadLine();
}
}
}
public static class Program
{
public static void Main(string[] args)
{
var connection = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)));User Id=system;Password=oracle");
connection.Open();
OracleCommand command = connection.CreateCommand();
command.CommandText = "SELECT ID, sdo_geometry_notnull FROM GeometryTypesTestTable";
//code freezes here
OracleDataReader reader = command.ExecuteReader();
Console.WriteLine("Done");
Console.ReadLine();
}
}
}
有什么方法或方法可以从SDO_GEOMETRY列中获取某种模型或数据吗?