Keyword not supported: data source (Parameter 'keyword') [Blazor Hero]

I tried to connect PostgreSQL in Blazor Hero but I got this problem.

System.ArgumentException: Keyword not supported: data source
(Parameter 'keyword') at
Npgsql.NpgsqlConnectionStringBuilder.GetProperty(String keyword) at
Npgsql.NpgsqlConnectionStringBuilder.set_Item(String keyword, Object
value) at
System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String
value) at Npgsql.NpgsqlConnectionStringBuilder..ctor(String
connectionString) at
Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlDatabaseCreator.Exists(Boolean
async, CancellationToken cancellationToken) at
Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlDatabaseCreator.Exists()
at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
at
Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String
targetMigration) at
Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String
targetMigration, String connectionString, String contextType) at
Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String
targetMigration, String connectionString, String contextType) at
Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_0.<.ctor>b__0()
at
Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action
action) Keyword not supported: data source (Parameter 'keyword')

My connection strings

Host = localhost; Port = 5432; Username = postgres; Password = 1234; Database = HeroDB

0 answers