It base on the ABP Framework to overwrite, and please refrence the ABP https://github.com/aspnetboilerplate/aspnetboilerplate
public interface IExampleRepository {} public class ExampleRepository:IExampleRepository{}
builder.RegisterType<ExampleRepository>().As<IExampleRepository>().InstancePerLifetimeScope();
public UserAppService(IExampleRepository){}
Just need to define the class and inherit the Entity base class.
public class Task:Entity { public Guid Id{get;set;} public string Name{get;set;} }
public UserAppService(IRepository<Task> taskRepository){}