using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Example.Models; namespace Example.Data; public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { } public DbSet Authors => Set(); public DbSet Books => Set(); public DbSet Reviews => Set(); protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.Entity() .Property(author => author.Birthdate) .HasColumnType("date"); builder.Entity() .Property(book => book.Published) .HasColumnType("date"); } }