odac

Entity Framework wildcards & Linq

旧时模样 提交于 2019-12-01 22:02:25
问题 Is it possible to construct a valid Linq query which contains wildcard characters? I've seen various answers to this question which suggest using: .Where(entity => entity.Name.Contains("FooBar")) .Where(entity => entity.Name.EndsWith("Bar")) .Where(entity => entity.Name.StartsWith("Foo")) OR constructing RawSql: var commandText = @"SELECT field FROM table WHERE field LIKE @search"; var query = new ObjectQuery<Profile>(commandText, context); query.Parameters.Add(new ObjectParameter("search",

Get value of Oracle OUT parameter from a stored procedure call using Dapper.NET

拜拜、爱过 提交于 2019-12-01 03:35:24
Edit: Using the Execute method instead of the Query / QueryMultiple methods, my OUT_SUCCESS parameter now has an AttachedParam with with an OracleParameter that has the returned value. So this would work if, for instance, I only needed to retrieve non-cursors parameters. Then I could use Execute for procedures with all non-cursor output parameters and Query / QueryMultiple for procedures with only cursor output parameters. But what if I need to call a stored procedure that has both cursor and non-cursor output parameters, as is often the case? Using Dapper.NET and the OracleDynamicParameters

OracleConnection is throwing empty exception

一笑奈何 提交于 2019-11-29 12:13:31
I'm trying to connect to my Oracle Database from my new PC. I've just installed Visual Studio and the ODAC. But when I try to do a simple connect Im getting an exception with an empty message, empty source, empty number, just with the error code which is -2147467259 . OracleConnection Prueba; Prueba = new OracleConnection("Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX.XXX.XXX.XXX)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XXXX)));User Id=XXX;Password=XXX;Pooling=true;Max Pool Size=10;Min Pool Size=1"); Prueba.Open(); Exception Details This is the

Oracle Instant Client and Entity Framework trouble with configuration

最后都变了- 提交于 2019-11-28 21:49:19
I'm trying to learn and figure out if it is possible to deploy an MVC, EF, ODAC 11.2.0.3 app to a server that has a previous version of ODP.NET installed. Rather than updating the sever ODP.NET (which I can't), I figured I could use the Oracle Instant Client. Is this doable? 1) I added these dlls to my project to support Instant Client -Oracle.DataAccess.dll -oci.dll -ociw32.dll -orannzsbb11.dll -oraociei11.dll -OraOps11w.dll 2) Next I updated web.config for the dbProviderFactories <system.data> <DbProviderFactories> <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client

Entity Framework 6 (5) connection to Oracle

一世执手 提交于 2019-11-28 21:43:16
I am attempting to write a Data Access library for our suite of applications that use Oracle in .net. We currently use NHibernate and are thinking of migrating away as it appears to not be supported all that well. I am working with Visual Studio 2013 and we have already constructed our Oracle Database. We don't have writes to update it (that is the domain of the db guys). So that will not be part of any calculation on our end. The client on the server is 32 bit, so we are going to stick with that for now. It is already GAC'd in there, and no need to change it. So we have the 32 bit client on

Entity Framework 6 (5) connection to Oracle

帅比萌擦擦* 提交于 2019-11-27 14:17:26
问题 I am attempting to write a Data Access library for our suite of applications that use Oracle in .net. We currently use NHibernate and are thinking of migrating away as it appears to not be supported all that well. I am working with Visual Studio 2013 and we have already constructed our Oracle Database. We don't have writes to update it (that is the domain of the db guys). So that will not be part of any calculation on our end. The client on the server is 32 bit, so we are going to stick with

How can I deploy a .NET application that uses ODAC without installing the whole component to the user?

孤者浪人 提交于 2019-11-27 03:04:15
I have written a C# application that connects to an Oracle 10g database. Using Oracle Data Access Component 11.2 "ODAC", it works perfectly on my machine. And now I want to deploy the application and install it in another "clean machine" that has the .NET Framework only! And I don't want to install the whole ODAC component to the user! How could I do that? I have tried to include all the necessary DLL files to my bin folder, like: oci.dll ociw32.dll Oracle.DataAccess.dll orannzsbb11.dll oraocci11.dll oraociicus11.dll OraOps11w.dll msvcr71.dll But still it didn't work. What should I do to solve

How can I deploy a .NET application that uses ODAC without installing the whole component to the user?

别来无恙 提交于 2019-11-26 10:23:27
问题 I have written a C# application that connects to an Oracle 10g database. Using Oracle Data Access Component 11.2 \"ODAC\", it works perfectly on my machine. And now I want to deploy the application and install it in another \"clean machine\" that has the .NET Framework only! And I don\'t want to install the whole ODAC component to the user! How could I do that? I have tried to include all the necessary DLL files to my bin folder, like: oci.dll ociw32.dll Oracle.DataAccess.dll orannzsbb11.dll