Skip to content

Commit 8d28c7c

Browse files
authored
Merge pull request #1175 from csm101/isqliteconnection_disposable
ISqliteConnection should be derived from IDisposable
2 parents e79dd0e + 47fdd34 commit 8d28c7c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,6 @@ paket-files/
265265
# CodeRush
266266
.cr/
267267

268+
# NCrunch
269+
*.ncrunchsolution
270+
*.ncrunchproject

src/SQLite.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public enum CreateFlags
159159
FullTextSearch4 = 0x200
160160
}
161161

162-
public interface ISQLiteConnection
162+
public interface ISQLiteConnection : IDisposable
163163
{
164164
Sqlite3DatabaseHandle Handle { get; }
165165
string DatabasePath { get; }
@@ -215,7 +215,6 @@ CreateTablesResult CreateTables<T, T2, T3, T4, T5> (CreateFlags createFlags = Cr
215215
int Delete (object primaryKey, TableMapping map);
216216
int DeleteAll<T> ();
217217
int DeleteAll (TableMapping map);
218-
void Dispose ();
219218
int DropTable<T> ();
220219
int DropTable (TableMapping map);
221220
void EnableLoadExtension (bool enabled);

0 commit comments

Comments
 (0)