From 47fdd34ef6b4d4d4659863ee027bfdff1642284c Mon Sep 17 00:00:00 2001 From: Carlo Sirna Date: Wed, 21 Jun 2023 09:16:24 +0200 Subject: [PATCH] ISqliteConnection should derive from IDisposable, otherwise it can't be used with the "using" c# construct (also: added ncrunch files to .gitignore) --- .gitignore | 3 +++ src/SQLite.cs | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ce044810..e4c857d8 100644 --- a/.gitignore +++ b/.gitignore @@ -265,3 +265,6 @@ paket-files/ # CodeRush .cr/ +# NCrunch +*.ncrunchsolution +*.ncrunchproject diff --git a/src/SQLite.cs b/src/SQLite.cs index 5b6941c3..e4faf12e 100644 --- a/src/SQLite.cs +++ b/src/SQLite.cs @@ -159,7 +159,7 @@ public enum CreateFlags FullTextSearch4 = 0x200 } - public interface ISQLiteConnection + public interface ISQLiteConnection : IDisposable { Sqlite3DatabaseHandle Handle { get; } string DatabasePath { get; } @@ -215,7 +215,6 @@ CreateTablesResult CreateTables (CreateFlags createFlags = Cr int Delete (object primaryKey, TableMapping map); int DeleteAll (); int DeleteAll (TableMapping map); - void Dispose (); int DropTable (); int DropTable (TableMapping map); void EnableLoadExtension (bool enabled);