@@ -37,9 +37,9 @@ namespace SQLite.Net2
3737 /// </summary>
3838 public class SQLiteConnection : IDisposable
3939 {
40- private static readonly IDbHandle ? NullHandle = null ;
41- private readonly SqliteApi sqlite = SqliteApi . Instance ;
40+ private static ConfigOption firstConfigOption ;
4241
42+ private readonly SqliteApi sqlite = SqliteApi . Instance ;
4343 /// <summary>
4444 /// Used to list some code that we want the MonoTouch linker
4545 /// to see, but that we never want to actually execute.
@@ -64,7 +64,7 @@ public class SQLiteConnection : IDisposable
6464 public bool StoreDateTimeAsTicks { get ; }
6565 public IDictionary < Type , string > ExtraTypeMappings { get ; }
6666 public IContractResolver Resolver { get ; }
67- public IDbHandle Handle { get ; private set ; }
67+ public IDbHandle ? Handle { get ; private set ; }
6868 public bool TimeExecution { get ; set ; }
6969 public ITraceListener ? TraceListener { get ; set ; }
7070
@@ -90,8 +90,6 @@ static SQLiteConnection()
9090 /// </remarks>
9191 public virtual SQLiteConnection Clone ( )
9292 => new ( DatabasePath , databaseOpenFlags , StoreDateTimeAsTicks , Serializer , _tableMappings , ExtraTypeMappings , Resolver , encryptionKey ) ;
93-
94- private static ConfigOption firstConfigOption ;
9593
9694 /// <summary>
9795 /// Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
@@ -181,7 +179,7 @@ public TimeSpan BusyTimeout
181179 set
182180 {
183181 _busyTimeout = value ;
184- if ( Handle != NullHandle )
182+ if ( Handle != null )
185183 sqlite . BusyTimeout ( Handle , ( int ) _busyTimeout . TotalMilliseconds ) ;
186184 }
187185 }
@@ -1788,7 +1786,7 @@ protected virtual void Dispose(bool disposing)
17881786
17891787 public void Close ( )
17901788 {
1791- if ( _open && Handle != NullHandle )
1789+ if ( _open && Handle != null )
17921790 {
17931791 try
17941792 {
@@ -1805,7 +1803,7 @@ public void Close()
18051803 }
18061804 finally
18071805 {
1808- Handle = NullHandle ;
1806+ Handle = null ;
18091807 _open = false ;
18101808 }
18111809 }
0 commit comments