2023-05-07 00:03:07 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2023-05-07 19:58:49 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel;
|
2023-05-07 00:03:07 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BookShopDataBaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class BookAuthor
|
|
|
|
|
{
|
2023-05-07 19:58:49 +04:00
|
|
|
|
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();
|
2023-05-07 00:03:07 +04:00
|
|
|
|
}
|
|
|
|
|
}
|