Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit e45e4a1

Browse files
authored
Update README.md
1 parent a14345f commit e45e4a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ class User
3434
public string Name { get; set; }
3535
}
3636

37-
using (var connection = new SQLiteConnection("Data Source=:memory:"))
37+
using (var db = new Database.Database(new SqliteDatabase(), "Data Source=:memory:"))
3838
{
39-
var db = new SqliteDatabase(connection);
40-
4139
db.CreateTableIfNotExists<User>();
4240

4341
db.Insert(new User { Id = 1, Name = "Test User" });
4442

4543
var user = db.Select<User>(u => u.Id == 1);
46-
47-
connection.Close();
4844
}
4945
```
5046

0 commit comments

Comments
 (0)