ASP.NET MVC5 - Keeping Users in Oracle Database

前端 未结 4 910
陌清茗
陌清茗 2021-02-02 01:51

Once creating a ASP.NET MVC5 project (with target framework is .NET 4.5.1 and the authentication type is Individual User Account

4条回答
  •  长情又很酷
    2021-02-02 02:44

    Yes is an old question but i think is useful to say some things about this.The answer of Andres Bejarano worked for me BUT there are some things about dll Versions. For Entity Framework 6 On VS 2015 i added to the MVC project a reference to the following dll:

    • Oracle.DataAccess.EntityFramework 6.121.2.0
    • Oracle.ManagedDataAccess 4.121.2.0
    • Oracle.managedDataAccess.EntityFramework 6.121.2.0.

    After this you need to write the correct configurations in web.config file as follow.
    At the end of the Configuration tag add:

    
    
      
      
     
    

    In provider section add:

    
    

    And of course in connectionstrings section you need to put the connection string for oracle: a thing like:

    
    

    With this configurations the changes said by Andres Bejorano have worked for me without messing with the Nuget.

提交回复
热议问题