BootstrapAdmin11/Bootstrap.DataAccess/DBAccessManager.cs

19 lines
384 B
C#
Raw Normal View History

2016-10-20 17:55:29 +08:00
using Longbow.Data;
using System;
namespace Bootstrap.DataAccess
{
/// <summary>
///
/// </summary>
static class DBAccessManager
{
private static Lazy<DBAccess> db = new Lazy<DBAccess>(() => DBAccess.CreateDB("SQL"), true);
public static DBAccess SqlDBAccess
{
get { return db.Value; }
}
}
}