diff --git a/SingletonConnection.cs b/SingletonConnection.cs index e69aa38..8776e37 100644 --- a/SingletonConnection.cs +++ b/SingletonConnection.cs @@ -6,7 +6,7 @@ namespace HegreHotel { public class SingletonConnection : SQLiteAsyncConnection { - private static SingletonConnection instance; + private static SingletonConnection? _instance; private SingletonConnection(string dbPath) : base(dbPath) { @@ -14,11 +14,11 @@ namespace HegreHotel public static SingletonConnection GetInstance(string dbPath) { - if (instance == null) + if (_instance == null) { - instance = new SingletonConnection(dbPath); + _instance = new SingletonConnection(dbPath); } - return instance; + return _instance; } } } \ No newline at end of file