Skip to content

Commit

Permalink
add: PersonNameConfiguration into modelBuilder using ApplyConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
nixhantb committed Feb 16, 2024
1 parent f64fbe5 commit 34a0d54
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ public BaseDBContext(DbContextOptions<BaseDBContext> options) : base(options)
}
public virtual DbSet<Email> Emails { get; set; }
public virtual DbSet<Skill> Skills { get; set; }
public virtual DbSet<PersonName> PersonNames { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfiguration(new EmailConfiguration());
modelBuilder.ApplyConfiguration(new SkillConfiguration());
modelBuilder.ApplyConfiguration(new PersonNameConfiguration());
base.OnModelCreating(modelBuilder);
}
}
Expand Down

0 comments on commit 34a0d54

Please sign in to comment.