Skip to content

Commit

Permalink
Set ModifiedOnUtc property to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
Edrisym committed Nov 20, 2024
1 parent 8e4238c commit 9a81ae4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions EWallet.Api/Data/WalletDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
builder.Property(x => x.CreatedOnUtc)
.IsRequired();

builder.Property(x => x.ModifiedOnUtc)
.IsRequired(false);
builder.Property(x => x.ModifiedOnUtc);

builder.Property(x => x.Code)
.HasMaxLength(10) //BASEDGODS,HOTDOGE
Expand Down Expand Up @@ -54,8 +53,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
entity.Property(w => w.CreatedOnUtc)
.IsRequired();

entity.Property(w => w.ModifiedOnUtc)
.IsRequired(false);
entity.Property(w => w.ModifiedOnUtc);

entity.HasOne(w => w.Currency)
.WithMany()
Expand Down

0 comments on commit 9a81ae4

Please sign in to comment.