Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adellestrand committed Apr 12, 2019
1 parent d504fe1 commit 10d17fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -73,7 +73,7 @@ The following additional metadata keys are defined:
```cs
using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
{
db.OpenConnection();
db.OpenGeoPackageDatabase();
// Read and write...
db.CloseConnection();
}
Expand All @@ -83,7 +83,7 @@ using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
{
db.CreateGeoPackageDatabase(3006, null, "Example", DataSetType.Snapshot, null, false, true);
db.OpenConnection();
db.OpenGeoPackageDatabase();
// Read and write...
db.CloseConnection();
}
Expand All @@ -93,7 +93,7 @@ using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
```cs
using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
{
db.OpenConnection();
db.OpenGeoPackageDatabase();
TnfLinkSequenceManager manager = db.GetTableManager<TnfLinkSequenceManager>();
List<TnfLinkSequence> linkSequences = manager.GetPage(0, 1000);
db.CloseConnection();
Expand All @@ -104,7 +104,7 @@ using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
```cs
using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
{
db.OpenConnection();
db.OpenGeoPackageDatabase();
TnfLinkSequenceManager manager = db.GetTableManager<TnfLinkSequenceManager>();
manager.Add(new TnfLinkSequence
{
Expand All @@ -118,4 +118,4 @@ using (GeoPackageDatabase db = new GeoPackageDatabase(fileName))
}
```

*Note: When writing large amounts of data, it is recommended to use a transaction, beginning with `db.BeginTransaction()` and completing with `db.EndTransactionCommit()`.*
*Note: When writing large amounts of data, it is recommended to use a transaction, beginning with `db.BeginTransaction()` and completing with `db.EndTransactionCommit()`.*

0 comments on commit 10d17fb

Please sign in to comment.