mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 17:23:01 -05:00
25 lines
551 B
C#
25 lines
551 B
C#
using System.IO;
|
|
|
|
namespace FeedCenter.Data
|
|
{
|
|
public static class Database
|
|
{
|
|
public static string DatabaseFile { get; set; }
|
|
public static string DatabasePath { get; set; }
|
|
|
|
public static FeedCenterEntities Entities { get; set; }
|
|
|
|
public static bool Exists => File.Exists(DatabaseFile);
|
|
|
|
public static bool Loaded { get; set; }
|
|
|
|
public static void Load()
|
|
{
|
|
if (Loaded) return;
|
|
|
|
Entities = new FeedCenterEntities();
|
|
|
|
Loaded = true;
|
|
}
|
|
}
|
|
} |