Exemple #1
0
 public Author(CatalogEntry book, string authorName, int ordIndex = 0, string role = null) : base(true)
 {
     Book     = book;
     FullName = authorName;
     OrdIndex = ordIndex;
     Role     = role;
 }
Exemple #2
0
 public Genre(CatalogEntry book, string genre) : base(true)
 {
     Book  = book;
     Value = genre.HasValue() ? genre.Truncate(50) : throw new ArgumentNullException(nameof(genre));
 }
 public Identifier(CatalogEntry book, string identifier) : base(true)
 {
     Book  = book;
     Value = identifier.HasValue() ? FixValue(identifier) : throw new ArgumentNullException(nameof(identifier));
 }
Exemple #4
0
 public OwnedBook(int bookNumber, CatalogEntry book) : base(true)
 {
     BookNumber = bookNumber;
     Book       = book ?? throw new ArgumentNullException(nameof(book));
     IsDeleted  = false;
 }