using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain
{
    public class Book
    {
        public int BookId { get; set; }

        [MaxLength(255)]
        public string Title { get; set; }


        public int AuthorId { get; set; }
        public virtual Author Author { get; set; }

        public int PublisherId { get; set; }
        public virtual Publisher Publisher { get; set; }


        public virtual ICollection<Comment> Comments { get; set; } 

    }
}
