Info
| Version: | 1.0.0 |
| Author(s): | 姜言俊 |
| Last Update: | Sunday, December 2, 2018 |
| .NET Fiddle: | Create the first Fiddle |
| NuGet Url: | https://www.nuget.org/packages/JYJ.DataAccess |
Install
Install-Package JYJ.DataAccess
dotnet add package JYJ.DataAccess
paket add JYJ.DataAccess
JYJ.DataAccess 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));
}
}
}.