Info
Version: | 1.0.1 |
Author(s): | 姜言俊 |
Last Update: | Sunday, December 2, 2018 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/JYJDataAccess |
Install
Install-Package JYJDataAccess
dotnet add package JYJDataAccess
paket add JYJDataAccess
JYJDataAccess Download (Unzip the "nupkg" after downloading)
public class FactoryService
{
public static string _conntionStr;
public static string ConntionStr
{
get
{
if (string.IsNullOrWhiteSpace(_conntionStr))
_conntionStr = Startup.Configuration.GetConnectionString(Startup.Configuration["ConnectionDatabaseType"]);
return _conntionStr;
}
}
public static BasicFactoryService DbServer
{
get
{
return new BasicFactoryService(new Service(ConntionStr, DbTypeEnum.SqlServer));
}
}
}.