Skip to content

Migrations Identity column (SQL Server)

Pawel Gerr edited this page Nov 11, 2025 · 1 revision

This feature is using SQL Server capabilities.

Required Nuget Package: Thinktecture.EntityFrameworkCore.SqlServer

Usage

migrationBuilder.AddColumn<int>("Id", "Customer")
                .AsIdentityColumn();

Clone this wiki locally