ef core update database command

Code Example - ef core update database command

                
                        update database
                    
                
 

ef rollback migration

                        
                                //EF 6.4 
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"
                            
                        
 

entity framework core add database migrations

                        
                                dotnet tool install --global dotnet-ef
dotnet ef database drop
dotnet ef database update
dotnet ef migrations add InitialCreate