mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
override default table names to Pascal
This commit is contained in:
parent
732848b549
commit
4e9200eefb
3 changed files with 9 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,6 +8,8 @@ public class FilterListTypeConfiguration : BaseEntityTypeConfiguration<FilterLis
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<FilterList> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("FilterLists");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Description)
|
||||
.HasMaxLength(1022);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,6 +8,8 @@ public class LanguageTypeConfiguration : BaseEntityTypeConfiguration<Language>
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<Language> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("Languages");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Iso6391)
|
||||
.HasMaxLength(2);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,6 +8,8 @@ public class MaintainerTypeConfiguration : BaseEntityTypeConfiguration<Maintaine
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<Maintainer> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("Maintainers");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Email)
|
||||
.HasMaxLength(126);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue