Mapping Mode "File" don't work

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Webscotty
Posts: 4
Joined: Wed 30 Jun 2021 08:08

Mapping Mode "File" don't work

Post by Webscotty » Wed 30 Jun 2021 08:59

Hello,

if i use the mapping mode "File" there will be thrown an exception at runtime:

System.TypeInitializationException: "The type initializer for 'DefaultXmlMappingProvider' threw an exception."
Inner Exception: ArgumentException: Requested value 'Out' was not found.


Stacktrace:
at System.Enum.TryParseByName(RuntimeType enumType, String originalValueString, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result)
at System.Enum.TryParseInt32Enum(RuntimeType enumType, String originalValueString, ReadOnlySpan`1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result)
at System.Enum.TryParse(Type enumType, String value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at [1].(String [1])
at .(XmlReader [1])
at .(XmlReader [1])
at .[1](XmlReader [1])
at Devart.Data.Linq.Mapping.XmlMappingSource.FromReader(XmlReader reader)
at Devart.Data.Linq.Mapping.XmlMappingSource.FromStream(Stream stream)
at Devart.Data.Linq.Mapping.XmlMappingSource.[1](String [1], Assembly)
at Devart.Data.Linq.Mapping.XmlMappingSource.FromResource(String resName)

After spending some hours i figured out the error is caused by "direction" attribute at parameter element.

Example:

<Function Name="ZWT_WS.PKG_PROGRAMMDATEN.PRC_SET_PROGRAMMDATEN" Method="PRCSETPROGRAMMDATEN">
<Parameter Name="P_PROG_ID" Parameter="P_PROG_ID" DbType="NUMBER(12)" />
<Parameter Name="P_FACHL_ID" Parameter="P_FACHL_ID" DbType="VARCHAR2(48 CHAR)" />
<Parameter Name="P_ERGEBNIS" Parameter="P_ERGEBNIS" DbType="VARCHAR2(12 CHAR)" Direction="Out" />
<Parameter Name="P_ERR_TEXT" Parameter="P_ERR_TEXT" DbType="VARCHAR2(2000 CHAR)" Direction="Out" />
</Function>

As soon as a "direction" is given, the error occurs, no matter if direction="In" ... "Out" or "InOut".

Additional Infos:
Provider: Devart dotConnect for Oracle 9.14.1273.0
Devart Entity Developer 6.11.1258
Target Framework: .net5

Can someone please help me?

best regards

Webscotty

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Mapping Mode "File" don't work

Post by Shalex » Wed 30 Jun 2021 13:50

Thank you for your report. We have reproduced the issue and are investigating it. We will notify you when the bug is fixed.

Webscotty
Posts: 4
Joined: Wed 30 Jun 2021 08:08

Re: Mapping Mode "File" don't work

Post by Webscotty » Thu 08 Jul 2021 07:24

Thats great, thank you.

Is there any estimation, when this will be fixed?


best regards

Webscotty

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Mapping Mode "File" don't work

Post by Shalex » Wed 21 Jul 2021 16:08

The bug with using out parameters of a stored procedure, when Mapping Mode is set to File in Model Settings, is fixed. We will notify you when the new public build of dotConnect for Oracle is available for download.

Webscotty
Posts: 4
Joined: Wed 30 Jun 2021 08:08

Re: Mapping Mode "File" don't work

Post by Webscotty » Thu 22 Jul 2021 08:31

Really great,

big thx to you and your team!


Webscotty

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Mapping Mode "File" don't work

Post by Shalex » Fri 14 Oct 2022 14:56

The bug is fixed in v9.14.1312 and higher.

Post Reply