DbUpgrade 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DbUpgrade --version 1.0.0
NuGet\Install-Package DbUpgrade -Version 1.0.0
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="DbUpgrade" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbUpgrade" Version="1.0.0" />
<PackageReference Include="DbUpgrade" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DbUpgrade --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DbUpgrade, 1.0.0"
#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.
#:package DbUpgrade@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DbUpgrade&version=1.0.0
#tool nuget:?package=DbUpgrade&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DbUpgrade
Database upgrade helper for .NET Core, support MSSQL
Example
static async Task Main(string[] args)
{
var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName)
.AddJsonFile("appsettings.json", false)
.Build();
await UpgradeEngine.To
.SqlDatabase(configuration.GetConnectionString("Database"))
.CreateDatabase()
.WithScriptsFromAssembly(Assembly.GetExecutingAssembly())
.LogToConsole()
.LogToFile()
.LogToTable()
.MinimumCommandLevel(CommandTypeLevel.CreateIfNotExists)
.Build();
var scripts = UpgradeEngine.Scripts;
var commands = UpgradeEngine.Scripts.First().Commands;
await UpgradeEngine.PerformUpgrade();
#if DEBUG
Console.ReadKey();
#endif
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.0
- Dapper (>= 2.0.35)
- Microsoft.Extensions.Configuration (>= 3.1.3)
- Microsoft.Extensions.Configuration.Json (>= 3.1.3)
- Newtonsoft.Json (>= 12.0.3)
- Serilog (>= 2.8.0)
- Serilog.AspNetCore (>= 2.1.1)
- Serilog.Settings.Configuration (>= 3.1.0)
- Serilog.Sinks.Async (>= 1.4.0)
- Serilog.Sinks.Console (>= 3.1.1)
- Serilog.Sinks.File (>= 4.0.0)
- System.Data.SqlClient (>= 4.6.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DbUpgrade:
Package | Downloads |
---|---|
TechAppBuilder.Complete
Complete TechAppBuilder suite with core TAB components for .NET 5.0 applications including Core, Common, CheckIn, CustomHookManager, Media, and TQL modules |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated | |
---|---|---|---|
2.0.1 | 147 | 1/29/2025 | |
2.0.0 | 171 | 12/16/2024 | |
1.2.1 | 156 | 6/13/2024 | |
1.2.0 | 2,055 | 1/4/2024 | |
1.1.19 | 2,831 | 5/11/2023 | |
1.1.18 | 2,455 | 3/9/2023 | |
1.1.17 | 840 | 3/9/2023 | |
1.1.16 | 1,746 | 9/20/2022 | |
1.1.15 | 2,050 | 5/19/2022 | |
1.1.14 | 1,084 | 5/17/2022 | |
1.1.13 | 1,113 | 5/16/2022 | |
1.1.12 | 1,057 | 5/13/2022 | |
1.1.11 | 1,569 | 2/7/2022 | |
1.1.10 | 1,119 | 2/7/2022 | |
1.1.9 | 1,152 | 2/7/2022 | |
1.1.8 | 1,168 | 2/3/2022 | |
1.1.7 | 940 | 11/22/2021 | |
1.1.6 | 1,189 | 11/5/2021 | |
1.1.5 | 1,035 | 10/7/2021 | |
1.1.4 | 958 | 10/6/2021 | |
1.1.3 | 1,075 | 10/6/2021 | |
1.1.2 | 3,476 | 9/22/2021 | |
1.1.1 | 4,350 | 9/1/2021 | |
1.1.0 | 978 | 8/13/2021 | |
1.0.9 | 1,013 | 6/23/2021 | |
1.0.8 | 12,583 | 12/11/2020 | |
1.0.7 | 1,781 | 9/8/2020 | |
1.0.6 | 1,303 | 9/4/2020 | |
1.0.5 | 1,187 | 8/28/2020 | |
1.0.4 | 1,449 | 6/15/2020 | |
1.0.3 | 1,201 | 6/15/2020 | |
1.0.2 | 1,286 | 6/8/2020 | |
1.0.1 | 1,219 | 5/20/2020 | |
1.0.0 | 1,208 | 5/20/2020 |