![]() |
VOOZH | about |
dotnet add package Albatross.EFCore.Admin --version 8.1.1
NuGet\Install-Package Albatross.EFCore.Admin -Version 8.1.1
<PackageReference Include="Albatross.EFCore.Admin" Version="8.1.1" />
<PackageVersion Include="Albatross.EFCore.Admin" Version="8.1.1" />Directory.Packages.props
<PackageReference Include="Albatross.EFCore.Admin" />Project file
paket add Albatross.EFCore.Admin --version 8.1.1
#r "nuget: Albatross.EFCore.Admin, 8.1.1"
#:package Albatross.EFCore.Admin@8.1.1
#addin nuget:?package=Albatross.EFCore.Admin&version=8.1.1Install as a Cake Addin
#tool nuget:?package=Albatross.EFCore.Admin&version=8.1.1Install as a Cake Tool
A library that can be used to create efcore admin commandline utility.
The library contains the following generic utilities:
--directory is a required option to specify the input script directory. The utility will only execute scripts
within a subfolder of the directory whose name matches the version of the entry assembly. For example, if the
input directory is c:\deployment and the entry assembly version is 2.0.0, the target folder would be
c:\deployment\2.0.0. The prerelease part of the version will not be considered as part of the
folder name. Version 2.0.0-prerelease and 2.0.0 will have the same target folder of 2.0.0.--pre-migration flag is set, the command should be executed prior the actual migration. The utility
however will skip execution if the target database has no pending migrations.Use the following sample projects for reference
Notice that the Sample.Admin project leverages the utilities of the Albatross.EFCore.Admin project by
creating verbs that reference the admin project. The Sample.Admin only needs to create its
own migration db context such as SampleSqlMigration
and SamplePostgresMigration.
Since most projects only target either sql server or postgres, the code in Sample.Models and Sample.SqlServer or
Sample.Postgres could be combined into a single project. But an admin project such as Sample.Admin should always be
used to seperate the admin utility from the actual program itself. Sample.Admin contains its own dbcontext
class SamplePostgresMigration that derives from the actual db context
class SampleDbSession because migration dbcontext has different requirements.
dotnet ef migrations add SampleSqlServerMigration_$name --context SampleSqlServerMigration --output-dir (Get-Path Migrations, SqlServer)
Sample.Admin projectSample.Admin.exe sql ef-migrate --verbose Information
Sample.Admin.exe sql create-sql-script;
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0-99.main | 27 | 6/2/2026 |
| 10.0.0-98.main | 33 | 5/27/2026 |
| 10.0.0-97.main | 40 | 5/22/2026 |
| 10.0.0-96.main | 31 | 5/19/2026 |
| 8.1.1 | 131 | 3/20/2025 |
| 8.1.0 | 101 | 3/16/2025 |