Aiursoft.DbTools 7.0.16

DBTools

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.CSTools) ManHours

DbTools are Aiursoft's common database tools. It contains a lot of useful database tools for developers.

Installation

To install Aiursoft.DbTools to your project from nuget.org:

dotnet add package Aiursoft.DbTools

Usage

Easier to register DbContext:

SQLite

var services = new ServiceCollection();
services.AddAiurSqliteWithCache<MyDbContext>("Data Source=app.db");

var built = services.BuildServiceProvider();
var context = built.GetRequiredService<MyDbContext>();

SQL Server

var services = new ServiceCollection();
services.AddAiurSqlServerWithCache<MyDbContext>("Server=(localdb)\\mssqllocaldb;Database=DebugTrusted_Connection=True;MultipleActiveResultSets=true");

var built = services.BuildServiceProvider();
var context = built.GetRequiredService<MyDbContext>();

Easier to update database:

var hostBuilder = Host.CreateDefaultBuilder();
hostBuilder.ConfigureServices(services => 
    services.AddAiurSqliteWithCache<MyDbContext>(@"DataSource=app.db;Cache=Shared")
);
var host = hostBuilder.Build();

// Now update:
await host.UpdateDbAsync<MyDbContext>(UpdateMode.CreateThenUse);

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Showing the top 20 packages that depend on Aiursoft.DbTools.

Packages Downloads
Aiursoft.DbTools.SqlServer
A tool for database.
205
Aiursoft.DbTools.InMemory
A tool for database.
203
Aiursoft.DbTools.InMemory
A tool for database.
167
Aiursoft.DbTools.InMemory
A tool for database.
126
Aiursoft.DbTools.SqlServer
A tool for database.
125
Aiursoft.DbTools.MySql
A tool for database.
87
Aiursoft.DbTools.InMemory
A tool for database.
86
Aiursoft.DbTools.Sqlite
A tool for database.
85
Aiursoft.DbTools.MySql
A tool for database.
84
Aiursoft.DbTools.Sqlite
A tool for database.
82
Aiursoft.DbTools.InMemory
A tool for database.
78
Aiursoft.DbTools.InMemory
A tool for database.
77
Aiursoft.DbTools.Sqlite
A tool for database.
76
Aiursoft.DbTools.InMemory
A tool for database.
72
Aiursoft.DbTools.Sqlite
A tool for database.
67
Aiursoft.DbTools.Sqlite
A tool for database.
65
Aiursoft.DbTools.MySql
A tool for database.
63
Aiursoft.DbTools.Sqlite
A tool for database.
62
Aiursoft.DbTools.InMemory
A tool for database.
59

Version Downloads Last updated
8.0.12 97 11/13/2024
8.0.11 322 10/09/2024
8.0.10 227 08/18/2024
8.0.9 135 07/10/2024
8.0.8 31 07/07/2024
8.0.7 66 06/29/2024
8.0.6 59 06/05/2024
8.0.5 61 05/16/2024
8.0.4 52 05/04/2024
8.0.3 155 03/26/2024
8.0.2 5 03/29/2024
8.0.1 6 03/30/2024
8.0.0 149 03/25/2024
7.0.19 10 04/29/2024
7.0.18 5 04/29/2024
7.0.17 8 04/28/2024
7.0.16 5 04/29/2024
7.0.15 6 04/29/2024
7.0.14 6 04/29/2024
7.0.13 6 04/29/2024
7.0.12 203 03/26/2024
7.0.11 6 04/29/2024
7.0.10 6 04/29/2024
7.0.9 6 04/29/2024
7.0.8 6 04/29/2024
7.0.7 7 04/29/2024
7.0.6 5 04/29/2024
7.0.5 6 04/29/2024
7.0.4 7 04/12/2024
7.0.3 5 04/29/2024
7.0.2 6 04/29/2024
7.0.1 5 04/29/2024
7.0.0 13 04/29/2024
6.0.32 10 04/29/2024
6.0.31 5 04/29/2024
6.0.30 4 06/20/2024
6.0.29 6 04/29/2024
6.0.28 6 04/29/2024
6.0.27 5 04/29/2024
6.0.26 5 04/29/2024
6.0.25 6 04/29/2024
6.0.24 4 04/29/2024
6.0.23 6 04/29/2024
6.0.22 7 04/29/2024
6.0.21 5 04/29/2024
6.0.20 7 04/29/2024
6.0.19 8 03/28/2024
6.0.18 7 04/29/2024
6.0.17 5 04/29/2024
6.0.16 5 04/29/2024
6.0.15 8 04/23/2024
6.0.14 9 04/29/2024
6.0.13 7 04/29/2024
6.0.12 6 04/07/2024
6.0.11 6 04/29/2024
6.0.10 7 04/29/2024
6.0.9 4 04/29/2024
6.0.8 6 04/29/2024
6.0.7 6 04/29/2024
6.0.6 8 04/29/2024
6.0.5 5 04/29/2024
6.0.0 6 04/29/2024
5.0.9 10 04/29/2024
5.0.8 7 04/29/2024
5.0.7 6 04/29/2024
5.0.6 6 04/04/2024
5.0.5 6 04/29/2024
5.0.4 5 04/29/2024
5.0.3 6 04/29/2024
5.0.2 5 04/29/2024
5.0.1 9 04/26/2024
5.0.0 5 04/29/2024
3.2.11 4 04/29/2024
3.2.10 6 04/29/2024
3.2.9 7 04/29/2024
3.2.8 4 04/29/2024
3.2.7 9 04/29/2024
3.2.6 8 04/29/2024
3.2.5 8 04/29/2024
3.2.4 6 04/29/2024
3.2.3 6 04/29/2024
3.2.2 5 04/29/2024
3.2.1 5 04/29/2024
3.2.0 6 04/29/2024
3.1.14 8 04/29/2024
3.1.13 6 04/29/2024
3.1.12 6 04/08/2024
3.1.11 6 04/29/2024
3.1.10 7 04/14/2024
3.1.9 4 04/29/2024
3.1.8 7 04/29/2024
3.1.7 8 04/29/2024
3.1.6 4 04/29/2024
3.1.5 5 04/29/2024
3.1.4 5 04/29/2024