mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-09-09 20:41:42 -04:00
Add Startup Events to Database
Now emit startup events on conneciton Some events still to add
This commit is contained in:
17
Pulsar/Context/Configuration/BackpackCofiguration.cs
Normal file
17
Pulsar/Context/Configuration/BackpackCofiguration.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using JasperFx.Core;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Observatory.Framework.Files;
|
||||
|
||||
namespace Pulsar.Context.Configuration;
|
||||
|
||||
public class BackpackCofiguration : IEntityTypeConfiguration<BackpackFile>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<BackpackFile> builder)
|
||||
{
|
||||
builder.OwnsMany(b => b.Components, b => b.ToJson());
|
||||
builder.OwnsMany(b => b.Consumables, b => b.ToJson());
|
||||
builder.OwnsMany(b => b.Items, b => b.ToJson());
|
||||
builder.OwnsMany(b => b.Data, b => b.ToJson());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user