I successfully create my database in entity framework code first using this string :
Data Source=DESKTOP-PL8EDEA;Initial Catalog=MyDB;Integrated Security=True;TimeOut=3600
This top connection string create database in default address of sql server databases but I want the database to be saved in my desired path I also tried this field but it was not successful
Data Source=DESKTOP-PL8EDEA;Initial Catalog=|D:\MyFolder|\MyDB;Integrated Security=True;TimeOut=3600