16 lines
No EOL
498 B
C#
16 lines
No EOL
498 B
C#
using Femto.Common.Infrastructure.Outbox;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Femto.Modules.Authentication.Data;
|
|
|
|
internal class AuthenticationContext : DbContext, IOutboxContext
|
|
{
|
|
public virtual DbSet<OutboxEntry> Outbox { get; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
builder.HasDefaultSchema("authn");
|
|
builder.ApplyConfigurationsFromAssembly(typeof(AuthenticationContext).Assembly);
|
|
}
|
|
} |