using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace ConsoleApp6 { [Table("Books")] public class Book { public int BookId { get; set; } [Required] [StringLength(50)] public String Title { get; set; } [StringLength(50)] public String Publisher { get; set; } } } namespace ConsoleApp6 { public class BooksContext:DbContext { public BooksContext(DbContextOptions<BooksContext> options) : base(options)