Aiursoft.DbTools.MySql 7.0.24

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aiursoft.DbTools.MySql --version 7.0.24                
NuGet\Install-Package Aiursoft.DbTools.MySql -Version 7.0.24                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aiursoft.DbTools.MySql" Version="7.0.24" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aiursoft.DbTools.MySql --version 7.0.24                
#r "nuget: Aiursoft.DbTools.MySql, 7.0.24"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aiursoft.DbTools.MySql as a Cake Addin
#addin nuget:?package=Aiursoft.DbTools.MySql&version=7.0.24

// Install Aiursoft.DbTools.MySql as a Cake Tool
#tool nuget:?package=Aiursoft.DbTools.MySql&version=7.0.24                

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.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aiursoft.DbTools.MySql:

Package Downloads
Aiursoft.DbTools.Switchable

Nuget package of 'Switchable' provided by Aiursoft

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.28 31 11/14/2024
8.0.27 46 11/13/2024
8.0.25 84 11/9/2024
8.0.24 106 10/26/2024
8.0.23 110 10/14/2024
8.0.22 97 10/9/2024
8.0.21 99 9/29/2024
8.0.20 96 9/28/2024
8.0.19 95 9/22/2024
8.0.18 135 8/22/2024
8.0.17 115 8/18/2024
8.0.16 97 7/23/2024
8.0.15 88 7/10/2024
8.0.14 103 7/7/2024
8.0.13 117 6/29/2024
8.0.12 94 6/5/2024
8.0.11 102 5/28/2024
8.0.10 116 5/16/2024
8.0.9 122 5/4/2024
8.0.8 123 4/6/2024
8.0.7 111 3/31/2024
8.0.6 109 3/31/2024
8.0.5 120 3/17/2024
8.0.4 103 3/17/2024
8.0.3 120 3/3/2024
8.0.2 108 2/28/2024
8.0.1 108 2/25/2024
8.0.0 109 2/19/2024
7.0.24 123 2/14/2024
7.0.23 116 2/4/2024
7.0.22 102 2/2/2024
7.0.21 108 2/2/2024
7.0.20 107 1/30/2024
7.0.19 106 1/27/2024
7.0.18 122 1/21/2024
7.0.17 120 1/10/2024
7.0.16 112 1/4/2024
7.0.15 121 12/30/2023
7.0.14 134 12/24/2023
7.0.13 146 12/12/2023
7.0.12 134 12/12/2023
7.0.11 139 12/1/2023
7.0.10 132 11/26/2023
7.0.9 137 11/18/2023
7.0.8 128 11/12/2023
7.0.7 150 11/2/2023
7.0.6 128 11/2/2023
7.0.5 132 11/1/2023
7.0.4 135 10/31/2023
7.0.3 145 10/27/2023
7.0.2 134 10/18/2023
7.0.1 135 10/11/2023
7.0.0 144 9/5/2023
6.0.32 161 8/4/2023
6.0.31 157 8/3/2023
6.0.30 172 7/11/2023
6.0.29 159 6/30/2023