using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookShopDataBaseImplement.Models { public class BookAuthor { public int Id { get; set; } [Required] public int BookId { get; set; } [Required] public int AuthorId { get; set; } public virtual Book Book { get; set; } = new(); public virtual Author Author { get; set; } = new(); } }