fullstackhero / blazor-starter-kit

Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
MIT License
3.44k stars 727 forks source link

Change db to oracle db it not not work #460

Open Hunglmc opened 7 months ago

Hunglmc commented 7 months ago

when i change db to oracle with code internal static IServiceCollection AddDatabase( this IServiceCollection services, IConfiguration configuration) => services .AddDbContext(options => options .UseOracle(configuration.GetConnectionString("OracleConnection"))) .AddTransient<IDatabaseSeeder, DatabaseSeeder>(); and change connect string to oracle the system Oracle.ManagedDataAccess.Client.OracleException: 'ORA-01435: user does not exist when i run migrate()

I tried using toad and connecting with normal connection information and didn't encounter any problems. Please let me know what problem I have or how to change to oracle db

MomboMan commented 7 months ago

What user name is in your connection string? It should be the same as the one you are using when connecting with Toad.

Hunglmc commented 6 months ago

What user name is in your connection string? It should be the same as the one you are using when connecting with Toad. Yes, they are all the same and similar to toad. Perhaps it's because we need to add a user with a schema identity