This commit is contained in:
@@ -10,6 +10,7 @@ namespace AyaNova.Models
|
||||
{
|
||||
public virtual DbSet<Event> Event { get; set; }
|
||||
public virtual DbSet<User> User { get; set; }
|
||||
public virtual DbSet<UserOptions> UserOptions { get; set; }
|
||||
public virtual DbSet<License> License { get; set; }
|
||||
public virtual DbSet<Widget> Widget { get; set; }
|
||||
public virtual DbSet<FileAttachment> FileAttachment { get; set; }
|
||||
@@ -30,6 +31,7 @@ namespace AyaNova.Models
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
//AUTOMATICALLY MATCH NAMES
|
||||
//https://andrewlock.net/customising-asp-net-core-identity-ef-core-naming-conventions-for-postgresql/
|
||||
foreach (var entity in modelBuilder.Model.GetEntityTypes())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user