Na most kezd valami kinézni
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WorkFlowCheck.MAUI.DataLayer.SQLiteFolder
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public const string DatabaseFilename = "WFC.db3";
|
||||
|
||||
public const SQLite.SQLiteOpenFlags Flags =
|
||||
// open the database in read/write mode
|
||||
SQLite.SQLiteOpenFlags.ReadWrite |
|
||||
// create the database if it doesn't exist
|
||||
SQLite.SQLiteOpenFlags.Create |
|
||||
// enable multi-threaded database access
|
||||
SQLite.SQLiteOpenFlags.SharedCache;
|
||||
|
||||
public static string DatabasePath =>
|
||||
Path.Combine(FileSystem.AppDataDirectory, DatabaseFilename);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user