Using C# and Repository Factory and the error: The requested database is not defined in configuration ? What causes that?
I am using Repository factory for visual studio 2008 for a personal project.
It generated a class called ProductRepository
which inherits from Repository<Product>
.
The ProductRepository
has a constructor which gets a database name as string and passes it to its base (I mean Repository<Product>
).
When I try to debug my project step by step, I pass my database name t开发者_开发百科o ProductRepository
but it raises the following error:
The requested database is not defined in configuration.
What's wrong?
I guess that means it has to do with the configured connectionstring. Check your config.
精彩评论