public void Retrieve() { _Info = EmployeeDac.Retrieve(this).Tables[0]; if (_Info.HasRows()) { InitializeProperties(_Info.Rows[0]); ReportingDepartment reportingDepartments = new ReportingDepartment(_ResourceID); _ReportingDepartment = reportingDepartments; WarehouseDesignation warehouseDesignation = new WarehouseDesignation(_EmployeeId); _WarehouseDesignation = (IWarehouseDesignation)warehouseDesignation; } else { throw new KeyNotFoundException("Email not found."); } }
public DataTable Retrieve(Int32 Id) { return(EmployeeDac.Retrieve(Id).Tables[0]); }
public DataTable Retrieve(String EmployeeId) { return(EmployeeDac.Retrieve(EmployeeId).Tables[0]); }
public DataTable RetrieveAll() { return(EmployeeDac.Retrieve().Tables[0]); }