Added API project.
This commit is contained in:
@@ -8,7 +8,7 @@ public sealed class CircleConfiguration : IEntityTypeConfiguration<Circle>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Circle> builder)
|
||||
{
|
||||
builder.ToTable("circles");
|
||||
builder.ToTable("Circles");
|
||||
builder.HasKey(x => x.CircleId);
|
||||
|
||||
builder.Property(x => x.Name).IsRequired().HasMaxLength(256);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class CreatorConfiguration : IEntityTypeConfiguration<Creator>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Creator> builder)
|
||||
{
|
||||
builder.ToTable("creators");
|
||||
builder.ToTable("Creators");
|
||||
builder.HasKey(x => x.CreatorId);
|
||||
|
||||
builder.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class EnglishTagConfiguration : IEntityTypeConfiguration<EnglishTa
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<EnglishTag> builder)
|
||||
{
|
||||
builder.ToTable("english_tags");
|
||||
builder.ToTable("EnglishTags");
|
||||
builder.HasKey(x => x.EnglishTagId);
|
||||
|
||||
builder.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class EnglishVoiceWorkConfiguration : IEntityTypeConfiguration<Eng
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<EnglishVoiceWork> builder)
|
||||
{
|
||||
builder.ToTable("english_voice_works");
|
||||
builder.ToTable("EnglishVoiceWorks");
|
||||
builder.HasKey(x => x.EnglishVoiceWorkId);
|
||||
|
||||
builder.Property(x => x.ProductName).HasMaxLength(256);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class TagConfiguration : IEntityTypeConfiguration<Tag>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Tag> builder)
|
||||
{
|
||||
builder.ToTable("tags");
|
||||
builder.ToTable("Tags");
|
||||
builder.HasKey(x => x.TagId);
|
||||
|
||||
builder.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkConfiguration : IEntityTypeConfiguration<VoiceWork>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWork> builder)
|
||||
{
|
||||
builder.ToTable("voice_works");
|
||||
builder.ToTable("VoiceWorks");
|
||||
builder.HasKey(x => x.VoiceWorkId);
|
||||
|
||||
builder.Property(x => x.ProductId)
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkCreatorConfiguration : IEntityTypeConfiguration<Voi
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkCreator> builder)
|
||||
{
|
||||
builder.ToTable("voice_work_creators");
|
||||
builder.ToTable("VoiceWorkCreators");
|
||||
builder.HasKey(x => new { x.VoiceWorkId, x.CreatorId });
|
||||
|
||||
builder.HasOne(x => x.VoiceWork)
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkSearchConfiguration : IEntityTypeConfiguration<Voic
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkSearch> builder)
|
||||
{
|
||||
builder.ToTable("voice_work_searches");
|
||||
builder.ToTable("VoiceWorkSearches");
|
||||
builder.HasKey(x => x.VoiceWorkId); // also the FK
|
||||
|
||||
builder.Property(x => x.SearchText).IsRequired(); // TEXT/LONGTEXT
|
||||
|
||||
@@ -8,7 +8,7 @@ public sealed class VoiceWorkTagConfiguration : IEntityTypeConfiguration<VoiceWo
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<VoiceWorkTag> builder)
|
||||
{
|
||||
builder.ToTable("voice_work_tags");
|
||||
builder.ToTable("VoiceWorkTags");
|
||||
builder.HasKey(x => new { x.VoiceWorkId, x.TagId });
|
||||
|
||||
builder.HasOne(x => x.VoiceWork)
|
||||
|
||||
Reference in New Issue
Block a user