请在抽象类下属性加virtual或abstract
public abstract class CBase { [Dependency] public abstract ARepository ARepository { get; set; } [Dependency] public virtual BRepository BRepository { get; set; }
请在抽象类下属性加virtual或abstract
public abstract class CBase { [Dependency] public abstract ARepository ARepository { get; set; } [Dependency] public virtual BRepository BRepository { get; set; }