Error creating ASP.Net Core 2.0 database - Keyword not supported: 'initial catalog

1
Hello, I'm trying to create a database with SQL Server using the Entity Framework Core, but it has the following error:

Keyword not supported: 'initial catalog'.

Does anyone know what it can be?

 {
  "ConnectionStrings": {
    "DefaultConnection": "Data Source=DESKTOP-DVLQUI3/SQLEXPRESS;Initial Catalog=Tarefas;Integrated Security=True"
  },
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  }
}
    
asked by anonymous 21.06.2018 / 04:02

2 answers

0

Change% of% by% with%.

Source: here

    
21.06.2018 / 05:24
0

Hello, Use this connectionStrings format by changing to your database:

{
  "ConnectionStrings": {
    "Default": "Server=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\usuario\Documents\database.mdf; Trusted_Connection=True; MultipleActiveResultSets=true"
  }
}
    
21.06.2018 / 05:09