jeudi 26 novembre 2015

How to correctly arrange WPF project that uses SQLite database with Entity Framework, and data access layer is in separate dll

I have prepared WPF app which connects to SQLite database.

My application is not organized into layered and I wanted to separate DAL - data access layer into separated project.

I have a problem with connection to database.

Should connection be defined in DAL dll app.config or in WPF app app.config? Where should I store my sqlite database file?

Could you give good practice example?

I think such connection should be defined outside DLL but in such case I have a problem with defining that connection.

Aucun commentaire:

Enregistrer un commentaire