我想将一个asp.net应用程序移植到asp.net核心。我的属性注入(使用ninject)在我这样的UnitOfWork实现上。在Asp.Net核心中的属性注入
[Inject]
public IOrderRepository OrderRepository { get; set; }
[Inject]
public ICustomerRepository CustomerRepository { get; set; }
有没有一种方法可以实现相同的功能,使用建立在.net核心的DI?也有可能使用基于约定的绑定?
相关:https://stackoverflow.com/questions/39849142/when-to-use-property-injection – Steven