MARS and MONO support?

MARS and MONO support?

Postby hellower » Sun 10 Aug 2014 04:24

I'm considering purchase of dotConnect for Oracle.
Odp.net managed driver support MARS but not woring at MONO environment.
I heard thant dotConnect for Oracle working good at MONO environment.

dotConnect for Oracle support Multiple Active Result Sets (MARS) and MONO environment?


sorry for my poor english.
hellower
 
Posts: 2
Joined: Sun 10 Aug 2014 04:19

Re: MARS and MONO support?

Postby Pinturiccio » Mon 11 Aug 2014 13:25

Multiple open result sets are supported by Oracle. There is no need to add any connection string parameters when using dotConnect for Oracle to enable MARS.

dotConnect for Oracle supports Mono only in the Direct connection mode: http://www.devart.com/dotconnect/oracle/docs/?directmode.html
http://www.devart.com/dotconnect/oracle/compatibility.html

If you create an application in Visual Studio on Windows OS, you can run the application on Mono afterwards.

If you want to create and build your application in MonoDevelop, you will have to build the license resource manually on a Windows computer and then copy it to the Mono computer and attach it to your project as an embedded resource because dotConnect for Oracle can't be installed on Mono.
For more information, please refer to http://www.devart.com/dotconnect/oracle/docs/Licensing.html#mono

The license resource can be compiled in the following way:
1. Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle

2.Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.Oracle.dll"
Where:

- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file;
- licenses.licx is your licenses.licx file;
- %Assembly Path% is the Devart.Data.Oracle.dll assembly location.

3. The License compiler will generate the 'MyApplication.exe.licenses' resource file;
4. Add this file to your MonoDevelop project as an embedded resource and rebuild the project.
Pinturiccio
Devart Team
 
Posts: 1893
Joined: Wed 02 Nov 2011 09:44

Re: MARS and MONO support?

Postby hellower » Mon 11 Aug 2014 13:43

Thank you!
hellower
 
Posts: 2
Joined: Sun 10 Aug 2014 04:19


Return to dotConnect for Oracle