I want to update database on Azure SQL to fit .Net Core application using Entity Framework Core migrations. The following command is advised online:
Update-Database -ConnectionString $ConnectionString -ConnectionProviderName "System.Data.SqlClient"
However, it does not work since Update-Database
cmdlet does not recognize parameter –ConnectionString
. How can automate database migrations?
-Connection
not-ConnectionString
– vivek nunaUpdate-Database [[-Migration] <String>] [-Context <String>] [-Project <String>] [-StartupProject <String>] [<CommonParameters>]
– user2341923Update-Database -Connection
– vivek nunaUpdate-Database : A parameter cannot be found that matches parameter name 'Connection'.
– user2341923Update-Database
which of the remote databases on Azure SQL is needed to be updated? – user2341923