Files
OurUmbraco/NotificationsWeb/BusinessLogic/Data.cs
T
Sebastiaan Janssen 810cbd267f Initial commit
2012-12-17 09:41:11 +01:00

31 lines
743 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using umbraco.DataLayer;
namespace NotificationsWeb.BusinessLogic
{
public class Data
{
private static string _ConnString = umbraco.GlobalSettings.DbDSN;
private static ISqlHelper _sqlHelper;
public static ISqlHelper SqlHelper
{
get
{
if (_sqlHelper == null)
{
try
{
_sqlHelper = DataLayerHelper.CreateSqlHelper(_ConnString);
}
catch { }
}
return _sqlHelper;
}
}
}
}