初始化
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
namespace BLV_API.Dal
|
||||
{
|
||||
public class DbProvider
|
||||
{
|
||||
private static string _SqlConnectionStr = null;
|
||||
public static string SqlConnectionStr
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_SqlConnectionStr == null)
|
||||
{
|
||||
_SqlConnectionStr = System.Configuration.ConfigurationManager.AppSettings["connectionString"];
|
||||
}
|
||||
return _SqlConnectionStr;
|
||||
}
|
||||
}
|
||||
public static SqlHelper SqlServer
|
||||
{
|
||||
get
|
||||
{
|
||||
return new SqlHelper(SqlConnectionStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user