I tried this but its not working as I am using like this connection string.
ss1v1Entities dbContext = new ss1v1Entities ();
<connectionStrings>
<add name="yaapiyalv1Entities" connectionString="metadata=res://*/YZV1Models.csdl|res://*/YZV1Models.ssdl|res://*/YZV1Models.msl;provider=System.Data.SqlClient;provider connection string="data source=DESKTOP-ss;user id=sa;Password=543;initial catalog=yaapiyalv1;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework""
providerName="System.Data.EntityClient" />
</connectionStrings>