Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QTecUnitOfWork"/> class.
 /// </summary>
 public QTecUnitOfWork()
 {
     this.dataContext = new QTecDataContext();
     this.disposed = false;
     this.EmployeeRepository = new EmployeeRepository(this.dataContext);
     this.DesignationRepository = new DesignationRepository(this.dataContext);
 } 
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QTecUnitOfWork"/> class.
 /// </summary>
 public QTecUnitOfWork()
 {
     this.dataContext           = new QTecDataContext();
     this.disposed              = false;
     this.EmployeeRepository    = new EmployeeRepository(this.dataContext);
     this.DesignationRepository = new DesignationRepository(this.dataContext);
 }