![]() |
VOOZH | about |
dotnet add package DbContextBackup --version 2026.6.523
NuGet\Install-Package DbContextBackup -Version 2026.6.523
<PackageReference Include="DbContextBackup" Version="2026.6.523" />
<PackageVersion Include="DbContextBackup" Version="2026.6.523" />Directory.Packages.props
<PackageReference Include="DbContextBackup" />Project file
paket add DbContextBackup --version 2026.6.523
#r "nuget: DbContextBackup, 2026.6.523"
#:package DbContextBackup@2026.6.523
#addin nuget:?package=DbContextBackup&version=2026.6.523Install as a Cake Addin
#tool nuget:?package=DbContextBackup&version=2026.6.523Install as a Cake Tool
Backup and restore data from database with DbContext.
Prepare:
//Backup file format: d3b
var backupContext = new DbContextBackup.D3b.D3bDbContextBackupContext(
type => ModesJsonSerializerContext.Default2,
(process, text) => Console.WriteLine($"[Progress][{process}%] {text}"),
state => Console.WriteLine($"[State] {state}")
);
//Backup file format: xlsx
var backupContext = new DbContextBackup.Excel.XlsxDbContextBackupContext(
type => ModesJsonSerializerContext.Default2,
(process, text) => Console.WriteLine($"[Progress][{process}%] {text}"),
state => Console.WriteLine($"[State] {state}")
);
Backup:
using (var dbContext = new MyDbContext())
{
backupContext.Backup(dbContext, backupFile);
}
Restore:
using (var dbContext = new MyDbContext())
{
backupContext.Restore(dbContext, backupFile);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on DbContextBackup:
| Package | Downloads |
|---|---|
|
Quick.EntityFrameworkCore.Plus
为EntityFrameworkCore添加缓存与依赖管理支持 |
|
|
DbContextBackup.Excel
Backup and restore data from database with DbContext. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.6.523 | 249 | 5/23/2026 |
| 2026.5.522 | 124 | 5/22/2026 |
| 2026.4.421 | 235 | 4/21/2026 |
| 2026.3.416 | 226 | 4/16/2026 |
| 2026.2.202 | 782 | 2/2/2026 |
| 2026.1.110 | 250 | 1/10/2026 |
| 8.0.2026.2 | 317 | 1/9/2026 |
| 8.0.2026.1 | 150 | 1/9/2026 |
| 8.0.18.2 | 443 | 7/29/2025 |
| 8.0.18.1 | 260 | 7/29/2025 |
| 8.0.18 | 239 | 7/29/2025 |
| 8.0.16 | 470 | 6/10/2025 |
| 8.0.15.2 | 575 | 4/30/2025 |
| 8.0.15.1 | 349 | 4/30/2025 |
| 8.0.15 | 351 | 4/12/2025 |