Skip to content

Commit ac06dad

Browse files
committed
Load data from db
1 parent ebe8424 commit ac06dad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

EF Sqlite/Form1.vb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
Public Class Form1
2+
Imports System.ComponentModel
3+
Imports System.Data.Entity
4+
Public Class Form1
25

6+
Dim db As ContactsContext
7+
8+
9+
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
10+
db = New ContactsContext
11+
db.Contacts.Load
12+
ContactBindingSource.DataSource = db.Contacts.Local.ToBindingList
13+
14+
15+
End Sub
316
End Class

0 commit comments

Comments
 (0)