I'm building a project with Oracle Database 11g and VS.Net 2013 (ASP.NEt & C#).
The problem is when i'm trying to create a controller based on one of the Entities contained in my DbContext, appears the following Error:
Error:
Is not possible to retrieve metadata for 'Test1.Models.XX_GL_JOURNALS_VIEW. Is not possible to find data provider.NET for the requested Framewrok.It might not be installed.
This is the window i'm using for creating new Controllers:
This my connection String in webconfig:
<add name="EntitiesOracle"
connectionString="metadata=res://*/Models.DIGP.csdl|res://*/Models.DIGP.ssdl|res
://*/Models.DIGP.msl;provider=Oracle.ManagedDataAccess.Client;provider
connection string="data source=DIGP;password=admin#01;persist security
info=True;user id=ADMIN"" providerName="System.Data.EntityClient" />
This my DB Context:
using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; public partial class EntitiesOracle : DbContext { public EntitiesOracle() : base("name=EntitiesOracle") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); } public DbSet<XX_USER_DIGP> XX_USER_DIGP { get; set; } public DbSet<XX_GL_JOURNALS_VIEW> XX_GL_JOURNALS_VIEW { get; set; } public DbSet<XX_GL_TRIAL_BALANCE> XX_GL_TRIAL_BALANCE { get; set; } public DbSet<XX_GL_TRIAL_BALANCE_DETAIL> XX_GL_TRIAL_BALANCE_DETAIL { >get; set; } }
I cannot understand why is failing, because the connection seems working well and my data model is correctly build from database.