This question is locked. New answers and comments are not allowed.
Hi,
I am currently trying to incorporate OpenAccess into my (WPF) application. I am using several backends, one is a Sqlite database.
This sqlite database is accessed from several PRISM modules. All of the modules host their own (vertical architectured) functionality, including data model, view model, view, ...I have one OpenAccess model (fluent) within each PRISM module. My first approach was to share the connection to the sqlite backend (btw. i am only doing read-only access) through the app.config of the executable. This was the first time I encountered the "Type is enhanced and registered, but not available from the database class meta data. This can be caused by a wrong connection id or configuration." exception. Since I am not able to figure out what's wrong, I decided to share the connection string through my own configuration interface and passing it to the models on creation. Nevertheless, the exception still occurs. If I reduce my PRISM app using only one of the modules that use OpenAccess, everything is fine. Would you be so kind and tell me, how I can maintain my loosely coupled design ( I dont want to reference other modules for some kind of model sharing and I dont want a common DAL shared by my modules, since this would lead PRISM usage ad absurdum) and just share a connection string between different models accessing the same backend?
I am so far really happy with OpenAccess, since it beats EF in so many ways. I am sure, you know, what I am doing wrong.
Thanks in advance
Florian
I am currently trying to incorporate OpenAccess into my (WPF) application. I am using several backends, one is a Sqlite database.
This sqlite database is accessed from several PRISM modules. All of the modules host their own (vertical architectured) functionality, including data model, view model, view, ...I have one OpenAccess model (fluent) within each PRISM module. My first approach was to share the connection to the sqlite backend (btw. i am only doing read-only access) through the app.config of the executable. This was the first time I encountered the "Type is enhanced and registered, but not available from the database class meta data. This can be caused by a wrong connection id or configuration." exception. Since I am not able to figure out what's wrong, I decided to share the connection string through my own configuration interface and passing it to the models on creation. Nevertheless, the exception still occurs. If I reduce my PRISM app using only one of the modules that use OpenAccess, everything is fine. Would you be so kind and tell me, how I can maintain my loosely coupled design ( I dont want to reference other modules for some kind of model sharing and I dont want a common DAL shared by my modules, since this would lead PRISM usage ad absurdum) and just share a connection string between different models accessing the same backend?
I am so far really happy with OpenAccess, since it beats EF in so many ways. I am sure, you know, what I am doing wrong.
Thanks in advance
Florian