static void Main(string[] args)
using (var context = new BookStore())
context.Database.EnsureCreated();
var authors = new List<Author>
BirthDate = DateTime.Parse("1985-09-01"),
new Book { Title = "Introduction to Machine Learning"},
new Book { Title = "Advanced Topics on Machine Learning"},
new Book { Title = "Introduction to Computing"}
BirthDate = DateTime.Parse("1970-09-01"),
new Book { Title = "Introduction to Microeconomics"}
BirthDate = DateTime.Parse("1963-09-01"),
new Book { Title = "Calculus I"},
new Book { Title = "Calculus II"}
context.Authors.AddRange(authors);
using (var context = new BookStore())
var list = context.Authors
foreach (var author in list)
Console.WriteLine(author.FirstName + " " + author.LastName);
foreach (var book in author.Books)
Console.WriteLine("\t" + book.Title);