HgLib.DB NuGet Package

HgLib数据库帮助。使用.NET Standard 2.0开发。封装了Dapper及其扩展,使用方便快捷。支持SQLServer,PostgreSql,SQLite,MySql四种数据库。需要注意的是SQLite使用时请在项目目录下自行添加X64和X86文件夹及对应的SQLite.Interop.dll。使用方法示例:
DBManager dBManager = new DBManager(DBType.MySql, "server=127.0.0.1;database=test;user=root;password=123456;");
using (var conn = dBManager.Connection)
{
var count = conn.ExecuteScalar("select count(1) from users");
var data = conn.Query("select * from test");
//todo...
}.




Got any HgLib.DB Question?





Info

Version: 1.1.10
Author(s): Hg
Last Update: Thursday, September 15, 2022
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/HgLib.DB


Install
Install-Package HgLib.DB
dotnet add package HgLib.DB
paket add HgLib.DB
HgLib.DB Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

2

days-since-last-release

596