public class AppointmentRepository : GenericRepository<Appointment>, IAppointmentRepository { public AppointmentRepository(Context context) : base(context) { } }
如果将GenericRepository<Appointment>这个继承的基类删除掉,就会提示实现接口。我郁闷,为啥多一个基类,那个实现的接口咋就不提示要我实现了呢?