16 lines
No EOL
520 B
C#
16 lines
No EOL
520 B
C#
using Femto.Modules.Media.Infrastructure.Integration;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Femto.Modules.Media.Data;
|
|
|
|
internal class MediaContext(DbContextOptions<MediaContext> options) : DbContext(options)
|
|
{
|
|
public virtual DbSet<OutboxEntry> Outbox { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
builder.HasDefaultSchema("blog");
|
|
builder.ApplyConfigurationsFromAssembly(typeof(MediaContext).Assembly);
|
|
}
|
|
} |