mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-26 19:03:32 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
22 lines
731 B
C#
22 lines
731 B
C#
using Dinah.Core;
|
|
|
|
namespace DataLayer;
|
|
|
|
public class BookCategory
|
|
{
|
|
internal int BookId { get; private set; }
|
|
internal int CategoryLadderId { get; private set; }
|
|
|
|
public Book Book { get; private set; }
|
|
public CategoryLadder CategoryLadder { get; private set; }
|
|
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
|
|
private BookCategory() { }
|
|
#pragma warning restore CS8618
|
|
|
|
internal BookCategory(Book book, CategoryLadder categoriesList)
|
|
{
|
|
Book = ArgumentValidator.EnsureNotNull(book, nameof(book));
|
|
CategoryLadder = ArgumentValidator.EnsureNotNull(categoriesList, nameof(categoriesList));
|
|
}
|
|
}
|