the use of "OracleCustomTypeMappingAttribute" in .net5

Hans 251 Reputation points
2021-05-05T09:03:16.807+00:00

Hi

With .net 4.8 I was able to run:

using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;

[Serializable]
    [OracleCustomTypeMappingAttribute ("MDSYS.SDO_GEOMETRY")]
    public class SdoGeometry: OracleCustomTypeBase <SdoGeometry>
    {
        [OracleObjectMappingAttribute (0)]
        public decimal? SdoGtype {get; set; }

Now I am trying with .net 5 and I cannot find an oracle package that allows the above.
I have found the nuget pacjage "Oracle.ManagedDataAccess". This does not seem to support "OracleCustomTypeMappingAttribute " yet !?

Is there an Oracle package that already works with .net 5 and supports "OracleCustomTypeMappingAttribute"?

Greetings

Developer technologies Windows Forms
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-05-05T10:49:08.027+00:00

    You will need to ask about this in an Oracle forum as according to the Oracle docs this attribute is no longer supported (as you have seen).

    93925-f1.png

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Hans 251 Reputation points
    2021-05-07T15:34:48.867+00:00

    hi,

    I think the unmanaged Oracle dataaccess.dll does but i think only from version 19 if you use .net 5. i have a version conflict.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.