Info
Version: | 1.2.1-beta1 |
Author(s): | Azrng |
Last Update: | Monday, January 3, 2022 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Common.SqlSugarQuery |
Install
Install-Package Common.SqlSugarQuery
dotnet add package Common.SqlSugarQuery
paket add Common.SqlSugarQuery
Common.SqlSugarQuery Download (Unzip the "nupkg" after downloading)
Dependencies
- IdHelper(>= 1.4.1)
- Microsoft.EntityFrameworkCore.Relational(>= 5.0.0)
- Microsoft.Extensions.DependencyInjection(>= 5.0.0)
- Microsoft.Extensions.Options(>= 5.0.0)
- sqlSugarCore(>= 5.0.1.4)
1.services.AddDbContext<OpenDbContext>(options => options.UseMySql(Configuration["ConnectionStrings:MySQL"]));
2.
services.AddSqlSugarService(() =>
{
return new BaseQueryConfig
{
ConnectionString = Configuration["ConnectionStrings:MySQL"],
DbType = SqlSugar.DbType.MySql
};
});.