public UnitOfWork(AdoptionContext context) { Person = new PersonRepository(context); PersonType = new PersonTypeRepository(context); Address = new AddressRepository(context); Province = new ProvinceRepository(context); County = new CountyRepository(context); District = new DistrictRepository(context); JobInformation = new JobInformationRepository(context); StateFile = new StateFileRepository(context); RoomHouse = new RoomHouseRepository(context); WorkerType = new WorkerTypeRepository(context); MarriageInformation = new MarriageInformationRepository(context); MaritalState = new MaritalStateRepository(context); AdoptionProcess = new AdoptionProcessRepository(context); User = new UserRepository(context); this.context = context; }
public UserRepository(AdoptionContext context) : base(context) { this.context = context; }
public JobInformationRepository(AdoptionContext context) : base(context) { this.context = context; }
public AddressRepository(AdoptionContext context) : base(context) { this.context = context; }
public StateFileRepository(AdoptionContext context) : base(context) { this.context = context; }
public RoomHouseRepository(AdoptionContext context) : base(context) { this.context = context; }
public WorkerTypeRepository(AdoptionContext context) : base(context) { this.context = context; }
public PersonTypeRepository(AdoptionContext context) : base(context) { this.context = context; }
public ProvinceRepository(AdoptionContext context) : base(context) { this.context = context; }
public DistrictRepository(AdoptionContext context) : base(context) { this.context = context; }
public MaritalStateRepository(AdoptionContext context) : base(context) { this.context = context; }
public CountyRepository(AdoptionContext context) : base(context) { this.context = context; }