由于几何列,我得到了一个不受支持的列数据类型错误。
我尝试使用EF,EFCORE和其他软件包。这些都不起作用
static void Main(string[] args)
{
string connectionString = "" - left empty on purpose
string queryString =
"SELECT GEOMETRY as geom FROM FOLIO_EXCL_MAP_OBJ WHERE MAP_OBJ_ID IN (SELECT MAP_OBJ_ID FROM PARCEL_INFO WHERE FOLIO_ENTRY_ID IN (SELECT FOLIO_ENTRY_ID FROM FOLIO_ENTRY WHERE FOLIO_ID = 1))";
using (OracleConnection connection =
new OracleConnection(connectionString))
{
OracleCommand command = connection.CreateCommand();
command.CommandText = queryString;
try
{
connection.Open();
OracleDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine("\t{0}\t{1}",
reader[0], reader[1]);
}
reader.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
我希望能够使用几何类型。我目前不能