<connectionStrings>
<add name="CalculatorEntities"
connectionString="metadata=res://*/DomainModel.Model.csdl|res://*/DomainModel.Model.ssdl|res://*/DomainModel.Model.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="data source=|DataDirectory|\Calculator.sdf""
providerName="System.Data.EntityClient"/>
</connectionStrings>
We are reading data in C# win app from a SQL Server CE 4.0 .sdf
file. Problem is that first time when application is opening taking more then 30s but when application is opened then application working normally.
I think that problem is with the connection string and reading from assembly
. Probably application searching so long for .sdf
file before can find it.
How can I optimize connectionStrings
? What can we do?