2016-10-20 17:55:29 +08:00
|
|
|
|
using Longbow.Data;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.DataAccess
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2016-10-26 21:51:38 +08:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|