Created
August 13, 2023 15:03
-
-
Save mortezadalil/f75b0b07a1c955634c7a7eeb4cade194 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApplicationDbContext : DbContext | |
{ | |
public DbSet<Book> Books { get; set; } | |
protected override void OnModelCreating(ModelBuilder modelBuilder) | |
{ | |
modelBuilder.Entity<Book>().Property<DateTime>("ModifiedDate"); | |
} | |
} | |
public class Book | |
{ | |
public int Id { get; set; } | |
public string Title { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment