阅读背景:

使用Unity在多个类型中注入相同的DataContext实例

来源:互联网 

Suppose I have IRepository interface and its implementation SqlRepository that takes as an argument LINQ to SQL DataContext. Suppose as well that I have IService interface and its implementation Services that takes three IRepository, IRepository and IRepository. Demo code is below:Suppose I have IRepository interface and its im




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: