Created
July 16, 2024 06:25
-
-
Save wullemsb/27e6e1fa2376786d8d12c3fa14e94787 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
protected override void OnModelCreating(ModelBuilder modelBuilder) | |
{ | |
modelBuilder.Entity<Product>() | |
.Property(e => e.DateField) | |
.HasColumnType("datetime2"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment