-
Notifications
You must be signed in to change notification settings - Fork 192
Closed
Description
I've checked the "source_files" sample but it was to simple for my understanding...
The MySQL provider and Npgsql providers suggests create the database connection inside the Context class, something like:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNpgsql("Host=my_host;Database=my_db;Username=my_user;Password=my_pw");
And in the ConfigureService method of the Startup class, some code like this:
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<OracleContext>().BuildServiceProvider();
}
So, I'd like to know if is possible to make the dependency injection like that, does exist some method like the "UseNpgsql()
" in Oracle.ManagedDataAccess.Core? In fact, does this driver support Entity Framework Core Object Mapping? Or is it only for database access purposes with native queries?
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels