Skip to content

Commit 47fdd34

Browse files
committed
ISqliteConnection should derive from IDisposable, otherwise it can't be used with the "using" c# construct
(also: added ncrunch files to .gitignore)
1 parent e8a24a8 commit 47fdd34

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)