Skip to content

Commit 1a354ad

Browse files
committed
Add birthdate
1 parent 52990df commit 1a354ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EF Sqlite/Contacts/Contact.vb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Public Class Contact
1111
<EmailAddress>
1212
<Required>
1313
Property EmailAddress As String
14-
14+
<Required>
15+
Property Birthdate As Date = Now.Date.AddYears(-18)
1516
End Class
1617
Partial Class ContactsContext
1718
Property Contacts As DbSet(Of Contact)

0 commit comments

Comments
 (0)