Base solution for your next web application
Open Closed

Oracle Database #4567


User avatar
0
registosglintt created

hi,

I want to migrate my database from mysql to oracle.
I followed the next steps:

1- I install the Oracle.ManagedDataAccess and Oracle.ManagedDataAccess.EntityFramework nuget packages into your .EntityFramework and .Web projects.

2- I change myconnection string in the web.config file in order to work with my Oracle database:

<connectionStrings>
<add name="Abp.Redis.Cache" connectionString="localhost" />
<add name="Default" providerName="Oracle.ManagedDataAccess.Client" connectionString="Data Source=SERVER:PORT/DB;User ID=;Password=;" />
</connectionStrings>

Note: I didn't change the constructor in the (Configuration.cs) file : public Configuration()
> {

       AutomaticMigrationsEnabled = false;
       ContextKey = "GlinttAccessManagement";

       //SetSqlGenerator("MySql.Data.MySqlClient", new MySQLGenerator());
   }

When I run the following command to add a migration for Oracle "Add-Migration "AbpZero_Initial", I have the following error:

System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Oracle.ManagedDataAccess.Client.OracleException,Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342'.

Thanks in advice


3 Answer(s)