|
|
|
@ -8,24 +8,22 @@ namespace Volo.Abp.EntityFrameworkCore |
|
|
|
{ |
|
|
|
public static void UseOracle( |
|
|
|
[NotNull] this AbpDbContextOptions options, |
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null, |
|
|
|
bool useExistingConnectionIfAvailable = false) |
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null) |
|
|
|
{ |
|
|
|
options.Configure(context => |
|
|
|
{ |
|
|
|
context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable); |
|
|
|
context.UseOracle(oracleOptionsAction); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public static void UseOracle<TDbContext>( |
|
|
|
[NotNull] this AbpDbContextOptions options, |
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null, |
|
|
|
bool useExistingConnectionIfAvailable = false) |
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null) |
|
|
|
where TDbContext : AbpDbContext<TDbContext> |
|
|
|
{ |
|
|
|
options.Configure<TDbContext>(context => |
|
|
|
{ |
|
|
|
context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable); |
|
|
|
context.UseOracle(oracleOptionsAction); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|