BootstrapAdmin11/Bootstrap.DataAccess/DBAccessManager.cs

19 lines
409 B
C#
Raw Normal View History

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