Ритуалы!
This commit is contained in:
@@ -14,6 +14,7 @@ using Pf2eModel.Model.Structure.BackgroundRelation;
|
||||
using Pf2eModel.Model.Structure.ClassRelation;
|
||||
using Pf2eModel.Model.Structure.DeityRelation;
|
||||
using Pf2eModel.Model.Structure.FeatRelation;
|
||||
using Pf2eModel.Model.Structure.RitualRelation;
|
||||
using Pf2eModel.Model.Structure.SpellRelation;
|
||||
|
||||
namespace Pf2eModel;
|
||||
@@ -93,6 +94,12 @@ public partial class Pf2eDbContext : DbContext
|
||||
|
||||
public virtual DbSet<Language> Languages { get; set; }
|
||||
|
||||
public virtual DbSet<Ritual> Rituals { get; set; }
|
||||
|
||||
public virtual DbSet<RitualArea> RitualAreas { get; set; }
|
||||
|
||||
public virtual DbSet<RitualCheck> RitualChecks { get; set; }
|
||||
|
||||
public virtual DbSet<Source> Sources { get; set; }
|
||||
|
||||
public virtual DbSet<Spell> Spells { get; set; }
|
||||
@@ -103,8 +110,6 @@ public partial class Pf2eDbContext : DbContext
|
||||
|
||||
public virtual DbSet<SpellDefense> SpellDefenses { get; set; }
|
||||
|
||||
public virtual DbSet<SpellRitual> SpellRituals { get; set; }
|
||||
|
||||
public virtual DbSet<Training> Trainings { get; set; }
|
||||
|
||||
public virtual DbSet<Trait> Traits { get; set; }
|
||||
@@ -114,12 +119,12 @@ public partial class Pf2eDbContext : DbContext
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
DotEnv.Load(options: new DotEnvOptions(probeForEnv: true, probeLevelsToSearch: 2));
|
||||
string databaseCnnection = EnvReader.GetStringValue("DATABASE_CONNECTION");
|
||||
string databaseConnection = EnvReader.GetStringValue("DATABASE_CONNECTION");
|
||||
|
||||
// optionsBuilder.LogTo(Console.WriteLine);
|
||||
optionsBuilder.UseSnakeCaseNamingConvention();
|
||||
optionsBuilder.UseNpgsql(
|
||||
databaseCnnection,
|
||||
databaseConnection,
|
||||
builder =>
|
||||
{
|
||||
builder
|
||||
@@ -143,7 +148,7 @@ public partial class Pf2eDbContext : DbContext
|
||||
.MapEnum<SpellDamageKinds>()
|
||||
.MapEnum<SpellTradition>()
|
||||
.MapEnum<AttributeValues>()
|
||||
.MapEnum<TrainingStage>()
|
||||
.MapEnum<TrainingRank>()
|
||||
.MapEnum<SourceCategory>();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user