init
This commit is contained in:
commit
ab2e20f7e1
72 changed files with 2000 additions and 0 deletions
16
Femto.Modules.Media/Data/MediaContext.cs
Normal file
16
Femto.Modules.Media/Data/MediaContext.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue