using PetaPoco;
namespace Bootstrap.DataAccess
{
///
///
///
public static class DbManager
{
///
///
///
///
///
public static IDatabase Create(string connectionName = null, bool keepAlive = false)
{
var db = Longbow.Data.DbManager.Create(connectionName, keepAlive);
return db.AddMaps();
}
private static IDatabase AddMaps(this IDatabase database)
{
database.AddMap("Dicts");
database.AddMap("Users", new string[] { "Checked", "Period", "NewPassword", "UserStatus" });
database.AddMap("Exceptions", new string[] { "Period" });
database.AddMap("Groups", new string[] { "Checked" });
database.AddMap("Logs");
database.AddMap