BootstrapAdmin/Bootstrap.Client.DataAccess/DbAccessManager.cs

18 lines
427 B
C#
Raw Normal View History

2018-10-19 23:09:52 +08:00
using Longbow.Data;
using System;
namespace Bootstrap.Client.DataAccess
{
/// <summary>
///
/// </summary>
public static class DbAccessManager
{
private static readonly Lazy<IDbAccess> _db = new Lazy<IDbAccess>(() => DbAccessFactory.CreateDB("sql"), true);
/// <summary>
///
/// </summary>
public static IDbAccess DbAccess { get { return _db.Value; } }
}
}