PIbd-22_Rogashova_E.A._SUBD/BookShop/Models/BookAuthor.cs

22 lines
553 B
C#
Raw Normal View History

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();
}
}