Обработка через CSharper
This commit is contained in:
@@ -20,14 +20,10 @@ namespace Pf2eModel;
|
||||
|
||||
public partial class Pf2eDbContext : DbContext
|
||||
{
|
||||
public Pf2eDbContext()
|
||||
{
|
||||
}
|
||||
public Pf2eDbContext() { }
|
||||
|
||||
public Pf2eDbContext(DbContextOptions<Pf2eDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
: base(options) { }
|
||||
|
||||
#region DbSets
|
||||
|
||||
@@ -118,7 +114,8 @@ public partial class Pf2eDbContext : DbContext
|
||||
|
||||
// optionsBuilder.LogTo(Console.WriteLine);
|
||||
optionsBuilder.UseSnakeCaseNamingConvention();
|
||||
optionsBuilder.UseNpgsql(databaseCnnection,
|
||||
optionsBuilder.UseNpgsql(
|
||||
databaseCnnection,
|
||||
builder =>
|
||||
{
|
||||
builder
|
||||
@@ -141,10 +138,8 @@ public partial class Pf2eDbContext : DbContext
|
||||
.MapEnum<SpellDamageKinds>()
|
||||
.MapEnum<AttributeValues>()
|
||||
.MapEnum<TrainingStage>()
|
||||
.MapEnum<SourceCategory>()
|
||||
;
|
||||
.MapEnum<SourceCategory>();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user