2023-05-28 09:56:49 +00:00
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
|
|
|
|
|
namespace Elsa.EntityFrameworkCore.Common;
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Contains options for configuring Elsa's Entity Framework Core integration.
|
|
|
|
|
/// </summary>
|
2023-05-28 09:56:49 +00:00
|
|
|
public class CustomDbContextOptionsExtensionInfo : DbContextOptionsExtensionInfo
|
|
|
|
|
{
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public CustomDbContextOptionsExtensionInfo(IDbContextOptionsExtension extension)
|
|
|
|
|
: base(extension)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public override bool IsDatabaseProvider => false;
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public override string LogFragment => "";
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public override int GetServiceProviderHashCode()
|
|
|
|
|
{
|
|
|
|
|
// Return a unique hash code for your custom extension
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public override void PopulateDebugInfo(IDictionary<string, string> debugInfo)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 10:47:36 +00:00
|
|
|
/// <inheritdoc />
|
2023-05-28 09:56:49 +00:00
|
|
|
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|