Skip to content

Commit

Permalink
Initialized name field
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam committed Aug 30, 2023
1 parent 602f2c9 commit 8b4dab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Basic_crud/Models/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Customer
[Key]
public int Id { get; set; }
[Required]
public string Name { get; set; }
public string Name { get; set; } =string.Empty;
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
[Required]
Expand Down

0 comments on commit 8b4dab1

Please sign in to comment.