nom modif
This commit is contained in:
parent
76e4e68799
commit
dde7dd9f73
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user