1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00
Sonarr/NzbDrone.Services/NzbDrone.Services.Service/Datastore/Connection.cs
2012-04-22 15:18:28 -07:00

29 lines
607 B
C#

using System.Configuration;
using System.Linq;
using Services.PetaPoco;
namespace NzbDrone.Services.Service.Datastore
{
public static class Connection
{
public static string GetConnectionString
{
get { return ConfigurationManager.ConnectionStrings["SqlExpress"].ConnectionString; }
}
public static IDatabase GetPetaPocoDb()
{
var db = new Database("SqlExpress")
{
KeepConnectionAlive = false,
ForceDateTimesToUtc = false,
};
return db;
}
}
}