Skip to content

Commit

Permalink
Make Fortunes message required for EF Core (aspnet#1662)
Browse files Browse the repository at this point in the history
Makes EF Core skip the IsDBNull check
  • Loading branch information
roji committed May 4, 2021
1 parent bed9bbd commit a9c67af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Benchmarks/Data/Fortune.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class Fortune : IComparable<Fortune>, IComparable
[Column("message")]
[StringLength(2048)]
[IgnoreDataMember]
[Required]
public string Message { get; set; }

public int CompareTo(object obj)
Expand Down

0 comments on commit a9c67af

Please sign in to comment.