Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 11e6834

Browse files
committed
Aggiornata documentazione
1 parent 6c06e98 commit 11e6834

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/NET6CustomLibrary/Docs/README-DateTimeOnly.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
# Date and Time only configuration
22

33

4-
## Add the converters and the comparers in the OnModelCreating method of the DbContext
5-
```csharp
6-
modelBuilder.Entity<MyEntity>(builder =>
7-
{
8-
// Date is a DateOnly property and date on database
9-
builder.Property(x => x.Date)
10-
.HasConversion<DateOnlyConverter, DateOnlyComparer>();
11-
12-
// Time is a TimeOnly property and time on database
13-
builder.Property(x => x.Time)
14-
.HasConversion<TimeOnlyConverter, TimeOnlyComparer>();
15-
});
16-
17-
```
18-
194
## Registering services at Startup
205

216
```csharp

0 commit comments

Comments
 (0)