mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Refactors the book, artist, and album slices across the stack
This commit is contained in:
1 parent
8aaf9fe64e
commit
ea6eb9f796
439 files changed
+28235
-3156
No files matched your search
@@ -149,17 +149,13 @@ public class BookConfiguration : IEntityTypeConfiguration<BookEntity>
|
||||
builder.Property(book => book.MetadataProvider)
|
||||
.HasMaxLength(100)
|
||||
.HasColumnOrder(40);
|
||||
builder.Property(book => book.CreatedOnUtc)
|
||||
.HasColumnOrder(30);
|
||||
builder.Property(book => book.UpdatedOnUtc)
|
||||
.HasColumnOrder(31);
|
||||
|
||||
builder.HasMany(book => book.BookContributors)
|
||||
builder.HasMany(book => book.Contributors)
|
||||
.WithOne()
|
||||
.HasForeignKey(bookContributor => bookContributor.BookId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
builder.HasMany(book => book.BookArtwork)
|
||||
builder.HasMany(book => book.Artwork)
|
||||
.WithOne()
|
||||
.HasForeignKey(bookArtwork => bookArtwork.BookId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
Reference in new issue
Block a user