Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

insert oracle with asp.net mvc

Zuka ZarnadzeZuka Zarnadze Member Posts: 1

i have problem When I add parameters in oracle database, with mvc project

this is error

GEOLAB class

  namespace WebApplication4.Models
    {
        using System;
        using System.Collections.Generic;

        public partial class GEOLAB
        {
            public int GEOLAB_ID { get; set; }
            public string GEOLAB_NAME { get; set; }
            public string GEOLAB_JISHI { get; set; }
            public  int GEOLAB_ASAKI { get; set; }
        }
    }

entity class code

{

    public partial class Entities11 : DbContext
    {
        public Entities11()
            : base("name=Entities11")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }

        public DbSet<GEOLAB> GEOLABs { get; set; }
    }
}

webcofig concectionstring

<add name="Entities11" connectionString="metadata=res://*/Models.EasyDocDB.csdl|res://*/Models.EasyDocDB.ssdl|res://*/Models.EasyDocDB.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=XXX;PASSWORD=XXX;PERSIST SECURITY INFO=True;USER ID=XXX&quot;" providerName="System.Data.EntityClient" />

Sign In or Register to comment.