autofac的错误,是在找不出来哪里的问题,请教大神。。。

builder.RegisterType < MainBcUnitOfWork>()
 .As<Booking.Beta.Implement.Interface.IUnitOfWork>()
 .InstancePerLifetimeScope();
builder.RegisterType<Booking.Beta.Implement.DoctorAttachRepository>()
 .As<Booking.Beta.Implement.Interface.IDoctorAttach>();
------------------------------------
public class DoctorAttachRepository:Repository<DoctorAttach>,IDoctorAttach
 {
 public DoctorAttachRepository(MainBcUnitOfWork context)
 : base(context)
 {
 }
 }
--------------------------
public class Repository<TEntity> : IRepository<TEntity> where TEntity : class
 {
 #region Members
 public IUnitOfWork UnitOfWork { get; set; }
#endregion
#region Constructor
/// <summary>
 /// Create a new instance of repository
 /// </summary>
 public Repository(IUnitOfWork unitOfWork)
 {
 if (unitOfWork == null) throw new ArgumentNullException("unitOfWork");
UnitOfWork = unitOfWork;
 }
---------------------------
/// <summary>
 /// 
 /// </summary>
 public class MainBcUnitOfWork:DBClinicBook,IUnitOfWork
 {
 public MainBcUnitOfWork()
 {
 
 }