开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜