i use ef in wpf application
i want to avoid accessing to database structure and data after installing app on customers system.
i used sql compact edition but it is very slow than sql express,
then i used sql express instead of ce edition but it's .mdf file can attach to an instance sqlserver simply and access to its structure and data.
(in my app confidentiality of database and speed of responsiveness are very important)
please tell me your best solution:
According to your security constrain,I think the best fit is
SQL CE.But you're worrying about the performance of the app.That is not due to database provider.That is due to issues of EF queries on your app.So my suggestion is to optimise those queries. Firstly you have to identify the very slow one,then next one and so on.
You have to consider the below mentioned items when you do the optimisation.
- Cold vs. Warm Query Execution
- Caching in the Entity Framework
- Autocompiled Queries
- NoTracking Queries
- Query Execution Options
- Design time performance considerations
- Loading Related Entities
- Other Considerations
- Investigating Performance
You can get huge knowledge about above topics using this article : Performance Considerations for Entity Framework