Thursday, December 21, 2023

.net core migrations

Generate Script 



Package Manager Console


Script-Migration -From 20231221063632_UniqueAuthenticatorKey -To 20231221063632_UniqueAuthenticatorKey


.net CLI


dotnet ef migrations script -i -o "C:\Path\To\Your\Script.sql" -s YourStartupProject -p YourDataProject -from 20231221063632_UniqueAuthenticatorKey -to 20231221063632_UniqueAuthenticatorKey


===============================

No migrations configuration type was found in the assembly 'CompleteDiscoverySource.Website'. (In Visual Studio you can use the Enable-Migrations command from Package Manager Console to add a migrations configuration)


EntityFrameworkCore\Add-Migration "migrationName"

===============================



No comments:

Post a Comment

Two Factor Authentication using .Net Core

Install Package dotnet add package GoogleAuthenticator --version 3.1.1 Model Changes public bool IsAuthenticatorReset { get; set; } public s...