odp.net

How to configure DbContext to work with Oracle ODP.Net and EF CodeFirst?

爷,独闯天下 提交于 2019-12-17 18:58:37
问题 I'm trying to work with EF CodeFirst under Oracle with ODP.net. This is my DbContext class: public class MyCEContext : DbContext { public DbSet<Person> Persons { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<Person>().ToTable("PERSONS","myce"); } public MyCEContext() : base(new OracleConnection( "Data Source=cebd; User ID=myce; Password=****;"), true) {} } Problem is that when I try to do something like this: MyCEContext context = new

Oracle.DataAccess not available for selection in Visual Studio 2013

試著忘記壹切 提交于 2019-12-17 16:49:37
问题 I've recently set up a Windows 8.1 64 Bit Machine with Visual Studio 2013 (probably 32 bit, at least it installed itself at Program Files (x86)). I've also installed the Oracle 11.2.0.1 64 Bit Client with Oracle Data Provider for .NET. When I do gacutil /l | findstr Oracle.DataAccess, I get four entries, including the following: Oracle.DataAccess, Version=2.112.1.0, ..., processorArchitecture=AMD64 However, I cannot find Oracle.DataAccess in any of the lists when trying to add an assembly

Deploying and Configuring ODP.NET to work without installation with Entity Framework

隐身守侯 提交于 2019-12-17 05:33:20
问题 How do you deploy and configure ODP.NET to work without installation with Entity Framework? A. How to deploy and configure Oracle.DataAccess.Client? B. How to deploy and configure Oracle.ManagedDataAccess.Client? C. What do you need to do in order to make builds with EDMXs with Oracle SSDLs work? D. What do you need to install for designer support? 回答1: This answer summarizes (hopefully) all the steps required, many of which documented in various places online and might save someone hours of

Can you use Microsoft Entity Framework with Oracle? [closed]

烂漫一生 提交于 2019-12-17 02:29:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago . Is it possible to use Microsoft Entity Framework with Oracle database? 回答1: DevArt's OraDirect provider now supports entity framework. See http://devart.com/news/2008/directs475.html 回答2: Update : Oracle now fully supports the Entity Framework. Oracle Data Provider for .NET

odp.net db change notification

二次信任 提交于 2019-12-13 18:14:52
问题 Is there a way to get a notification when a certain field in a db table is changed ? I'm using ODP.NET and Oracle 11g, on a .NET 4.0 app. LATER EDIT : So, from the answers i understand that it would be possible, so i've tried something. This is how : OracleConnection con = new OracleConnection(constr); OracleCommand cmd = new OracleCommand(sql, con); con.Open(); cmd.AddRowid = true; **OracleDependency dep = new OracleDependency(cmd);** cmd.Notification.IsNotifiedOnce = false; dep.OnChange +=

C#/ODP.NET: large IN clause workaround

雨燕双飞 提交于 2019-12-13 14:41:25
问题 We have a C# component that handles attaching arbitrary-sized element lists into IN clauses for semi-arbitrary SQL SELECT queries. Essentially this boils down to receiving something like: SELECT COUNT(*) FROM a WHERE b IN (...) ...where the "..." is the only portion of the query the component is allowed to modify. Currently the component will insert a comma-separated set of named bind parameters, then attach the corresponding IDbDataParameter objects to the command and execute; the component

Please help prevent data layer refactoring of this ODP.NET code and transactions

一世执手 提交于 2019-12-13 07:36:15
问题 I am using Oracle 11g client, with ODP.NET. I am trying to add conditional Transaction handling. Dim ds As New DataSet() Dim txn As OracleTransaction Dim _beginTransaction as Bolean = true Using conn As New OracleConnection(ConnString) Try conn.Open() If _beginTransaction Then txn = conn.BeginTransaction(IsolationLevel.Serializable) End If Dim adapter As OracleDataAdapter = New OracleDataAdapter() adapter.SelectCommand = New OracleCommand(sSQL, conn) For i As Integer = 0 To UBound(parameters,

Issue with using ODP with NHibernate

冷暖自知 提交于 2019-12-13 07:25:29
问题 I have .NET 3.5 application wrote in C# using NHibernate. Before I has OracleClientDriver in connection.driver_class property, that say that I use System.Data.Oracle and all works fine, but for some reasons now I need using ODP, so I changed this property to: NHibernate.Driver.OracleDataClientDriver. When I run my code I get following error during Session Factory creation: Unable to cast object of type 'Oracle.DataAccess.Client.OracleConnection' to type 'System.Data.Common.DbConnection' After

Facing Issues Storing Job through AdoJobStore

前提是你 提交于 2019-12-13 06:22:37
问题 I've successfully connected to Oracle DB from AdoJobStore. But when I try to add a job I m getting the following exception. Exception Source: Quartz Exception Method: Void StoreJob(Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder, Quartz.IJobDetail, Boolean) Exception StackTrace: at Quartz.Impl.AdoJobStore.JobStoreSupport.StoreJob(ConnectionAndTransactionHolder conn, IJobDetail newJob, Boolean replaceExisting) in c:\Work\OpenSource\Quartz.NET\quartznet\src\Quartz\Impl\AdoJobStore

EF with oracle - “The specified store provider cannot be found in the configuration, or is not valid.”

和自甴很熟 提交于 2019-12-13 05:05:24
问题 I am using entity framework with oracle client (odp.net) in a .net 4.5 program. In production machine I get the following error: System.ArgumentException: The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) at System.Data.EntityClient.EntityConnection.GetFactory