Thank you for contacting us.
The likely reason for the error you are experiencing is that the Unit Test project does not have the connection string
required by the model defined in its App.config
Generally the connection string required by the model to connect to the database is located in the .config
file of the project which contains it
. With this in mind we recommend adding the required connection string to the App.config of the Unit Test project
(you may need to add the App.config file manually).
Please note that if there are multiple connection strings defined in the .config file of the project containing the model you can see which one is required by checking the value
of the connectionStringName
field in the context class of your model (the one that derives from OpenAccessContext
I hope this helps. Should you have further questions, feel free to get back to us.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map