EFCore.AutomaticMigrations (nuget): Entity Framework Core Automatic Migrations allows you to use code first migrations without having a code file in your project for each change you make.  			How to use: 			 			/// Migrations Options 			public class DbMigrationsOptions 			{ 				/// <summary> 				/// Allow auto migration with data lost 				/// 				</summary> 				public bool AutomaticMigrationDataLossAllowed { get; set; } = false; 				/// <summary> 				/// Enable to execute auto migration 				/// 				</summary> 				public bool AutomaticMigrationsEnabled { get; set; } = true; 				/// <summary> 				/// Drop all tables from database and recreate based on model snapshot. Useful in scenarios when the data is transient and can be dropped when the schema changes. For example during prototyping, in tests, or for local changes. 				/// 				</summary> 				public bool ResetDatabaseSchema { get; set; } = false; 			} 			 			Option 1 (using method): 			MigrateDatabaseToLatestVersion.Execute(context); 			MigrateDatabaseToLatestVersion.Execute(context, new DbMigrationsOptions { ResetDatabaseSchema = true });  			Option 2 (using context extension) 			context.MigrateToLatestVersion(); 			context.MigrateToLatestVersion(new DbMigrationsOptions { ResetDatabaseSchema = true });
Keywords: Automatic|Migrations|AutomaticMigrations|Entity|Framework|Core|Auto|AutoMigrations|entity-framework-core|efcore-automaticmigrations|EF|O/RM|EntityFramework|EFCore|SQL|Server