|
|
@ -1,32 +1,32 @@
|
|
|
|
// using JetBrains.Annotations;
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
// using System;
|
|
|
|
using System;
|
|
|
|
// using Devart.Data.Oracle.Entity;
|
|
|
|
using Devart.Data.Oracle.Entity;
|
|
|
|
//
|
|
|
|
|
|
|
|
// namespace Volo.Abp.EntityFrameworkCore
|
|
|
|
namespace Volo.Abp.EntityFrameworkCore
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// public static class AbpDbContextOptionsOracleDevartExtensions
|
|
|
|
public static class AbpDbContextOptionsOracleDevartExtensions
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// public static void UseOracle(
|
|
|
|
public static void UseOracle(
|
|
|
|
// [NotNull] this AbpDbContextOptions options,
|
|
|
|
[NotNull] this AbpDbContextOptions options,
|
|
|
|
// [CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null,
|
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null,
|
|
|
|
// bool useExistingConnectionIfAvailable = false)
|
|
|
|
bool useExistingConnectionIfAvailable = false)
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// options.Configure(context =>
|
|
|
|
options.Configure(context =>
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable);
|
|
|
|
context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable);
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
// public static void UseOracle<TDbContext>(
|
|
|
|
public static void UseOracle<TDbContext>(
|
|
|
|
// [NotNull] this AbpDbContextOptions options,
|
|
|
|
[NotNull] this AbpDbContextOptions options,
|
|
|
|
// [CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null,
|
|
|
|
[CanBeNull] Action<OracleDbContextOptionsBuilder> oracleOptionsAction = null,
|
|
|
|
// bool useExistingConnectionIfAvailable = false)
|
|
|
|
bool useExistingConnectionIfAvailable = false)
|
|
|
|
// where TDbContext : AbpDbContext<TDbContext>
|
|
|
|
where TDbContext : AbpDbContext<TDbContext>
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// options.Configure<TDbContext>(context =>
|
|
|
|
options.Configure<TDbContext>(context =>
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable);
|
|
|
|
context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable);
|
|
|
|
// });
|
|
|
|
});
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|