hello all i'm beginner in asp.net mvc and entity framework. and i have started following this example in github : https://github.com/abdelkafiahmed/BankManagementSystem i creatd a new project MVC5 in visual studio 2012 ultimate, all model class (Banque, Client,...etc), and entity framework context class BankDbContext. i have oracle database 12c version Since there is not a connection string in web.config on this example, i decided to use entity framework for accessing to oracle database. i downloaded by nuget and installed the oracle.ManagedDataAccess.EntityFramework, oracle.ManagedDataAccess and EntityFramework v6 packages and t alrered the connection string given by thes packages to
after i have created the Initializer class:
i have started by creating a BanquesController and Banques/Index view when i executed the application, the database is created in first time. after, i created PersonneMoralesController by scaffolding and altered the index Action by the code on this example but when executing the application i get an exception:
and database is not recreated. i thought that i have got these errors because of the codes in initializer and banque Controller Index Action, two transactions in same Banques table, so i excluded this Initializer Class File. but even this, the problem persists when the exectioning of application why and how to fix this? soon |
↧
ORA-00604 & ORA-08177 with entity framework
↧