From 39e8ac23942e4a33bdd296d9cec9495b79f13abc Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 15 Oct 2020 16:03:23 -0400 Subject: [PATCH] chore: Turn on MD024 for non-siblings Inline disabled in the case of old tab style headings --- .markdownlint.json | 4 +++- entity-framework/core/managing-schemas/migrations/index.md | 4 ++++ entity-framework/core/managing-schemas/migrations/managing.md | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.markdownlint.json b/.markdownlint.json index f713bcf2c2..ef9d8fa17d 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -1,7 +1,9 @@ { "default": true, "MD013": false, - "MD024": false, + "MD024": { + "allow_different_nesting": true + }, "MD025": { "front_matter_title": "" }, "MD028": false, "MD033": { "allowed_elements": ["sup", "sub", "a"] }, diff --git a/entity-framework/core/managing-schemas/migrations/index.md b/entity-framework/core/managing-schemas/migrations/index.md index 37514b5e20..a6992b3e3d 100644 --- a/entity-framework/core/managing-schemas/migrations/index.md +++ b/entity-framework/core/managing-schemas/migrations/index.md @@ -112,6 +112,8 @@ Since this isn't the project's first migration, EF Core now compares your update You can now apply your migration as before: + + #### [.NET Core CLI](#tab/dotnet-core-cli) ```dotnetcli @@ -124,6 +126,8 @@ dotnet ef database update Update-Database ``` + + *** Note that this time, EF detects that the database already exists. In addition, when our first migration was applied above, this fact was recorded in a special migrations history table in your database; this allows EF to automatically apply only the new migration. diff --git a/entity-framework/core/managing-schemas/migrations/managing.md b/entity-framework/core/managing-schemas/migrations/managing.md index a5abc0c37e..492e8a9bf3 100644 --- a/entity-framework/core/managing-schemas/migrations/managing.md +++ b/entity-framework/core/managing-schemas/migrations/managing.md @@ -44,6 +44,8 @@ The timestamp in the filename helps keep them ordered chronologically so you can You are free to move Migrations files and change their namespace manually. New migrations are created as siblings of the last migration. Alternatively, you can specify the namespace at generation time as follows: + + ### [.NET Core CLI](#tab/dotnet-core-cli) ```dotnetcli @@ -56,6 +58,8 @@ dotnet ef migrations add InitialCreate --namespace Your.Namespace Add-Migration InitialCreate -Namespace Your.Namespace ``` + + *** ## Customize migration code