Exemple #1
0
 /// <summary>
 /// コンストラクタ(3)
 /// </summary>
 /// <param name="book">Book</param>
 public Book(Book book)
     : this()
 {
     IdProperty.Init(book.Id);
     TitleProperty.Init(string.Format("*{0}", book.Title));
     AuthorProperty.Init(book.Author);
     PublisherProperty.Init(book.Publisher);
     CategoryProperty.Init(book.Category);
     PriceProperty.Init(book.Price);
     PurchaseDateProperty.Init(book.PurchaseDate);
     ReviewPointProperty.Init(book.ReviewPoint);
 }
Exemple #2
0
 /// <summary>
 /// コンストラクタ(2)
 /// </summary>
 /// <param name="id">int : ID</param>
 /// <param name="title">string : タイトル</param>
 /// <param name="author">string : 著者</param>
 /// <param name="publisher">string : 出版社</param>
 /// <param name="category">BookCategories : カテゴリー</param>
 /// <param name="price">decimal : 価格</param>
 /// <param name="purchaseDate">DateTime? : 購入日</param>
 /// <param name="reviewPoint">int : 評価点</param>
 public Book(int id, string title, string author, string publisher, BookCategories category, decimal price, DateTime?purchaseDate, int reviewPoint)
     : this()
 {
     IdProperty.Init(id);
     TitleProperty.Init(title);
     AuthorProperty.Init(author);
     PublisherProperty.Init(publisher);
     CategoryProperty.Init(category);
     PriceProperty.Init(price);
     PurchaseDateProperty.Init(purchaseDate);
     ReviewPointProperty.Init(reviewPoint);
 }