Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FacilityRepository" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 public FacilityRepository(FacilityDbContext context, IUnitOfWork unitOfWork) : base(context)
 {
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitOfWork"/> class.
 /// </summary>
 /// <param name="appDbContext">The application database context.</param>
 public UnitOfWork(FacilityDbContext appDbContext)
 {
     _appDbContext = appDbContext;
 }