NXHub.EntityFrameworkCore.Migrate 0.0.2

用于在程序启动时迁移数据库: host.TryMigrateDb<TestDataContext>(app);

Install-Package NXHub.EntityFrameworkCore.Migrate -Version 0.0.2
dotnet add package NXHub.EntityFrameworkCore.Migrate --version 0.0.2
<PackageReference Include="NXHub.EntityFrameworkCore.Migrate" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NXHub.EntityFrameworkCore.Migrate --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NXHub.EntityFrameworkCore.Migrate, 0.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NXHub.EntityFrameworkCore.Migrate as a Cake Addin
#addin nuget:?package=NXHub.EntityFrameworkCore.Migrate&version=0.0.2

// Install NXHub.EntityFrameworkCore.Migrate as a Cake Tool
#tool nuget:?package=NXHub.EntityFrameworkCore.Migrate&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

概述

封装了 EF Core 数据库迁移方法,用于在程序启动时迁移数据库。

安装

<PackageReference Include="NXHub.EntityFrameworkCore.Migrate" Version="0.0.2" />

使用

public void Configure(
    IApplicationBuilder app,
    IWebHostEnvironment env,
    IHostApplicationLifetime host)
{
    // ...
    
    host.TryMigrateDb<TestDataContext>(app);
}

概述

封装了 EF Core 数据库迁移方法,用于在程序启动时迁移数据库。

安装

<PackageReference Include="NXHub.EntityFrameworkCore.Migrate" Version="0.0.2" />

使用

public void Configure(
    IApplicationBuilder app,
    IWebHostEnvironment env,
    IHostApplicationLifetime host)
{
    // ...
    
    host.TryMigrateDb<TestDataContext>(app);
}

Release Notes

修改图标。

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.2 198 7/7/2020
0.0.1 202 6/17/2020
0.0.1-alpha 331 6/16/2020