Question 2. (4 points)
You are asked to write a windows form application that allows listing, adding, editing and deleting employee information in the database, by using Entity Framework.
(0 will be given to the work that not using database connection string in appsettings.json)
frmEmployee
Employeeld
Π
X
EmployeeName Male
Phone
Nguyen Bao Tr..
097-7200-300
Nguyen Phuon...
098-7264-300
Tran Thu Nga
Salary
1100
1050
1320
096-6278-890
Action
☑
Π
Employee Name
Nguyen Phuong Thao
Male
Female
Salary
1050
098-7264-300
Phone
Add
Update
Delete
Figure1. Required form
(1 point) The form is designed as shown in Figure 1.
(1 point) Load list of employees in table Employee in database into the datagridview.
(0.5 point) When user enters the employee's information into controls in [Action] groupbox and presses the button Add, insert one more employee into database. The data of datagridview must be reloaded.
(1.5 point) When user selects a row in the datagridview, load data of corresponding employee into controls in [Action] groupbox. User can use Update and Delete button for updating and deleting information of this employee in database. The data of datagridview must be reloaded.
Zoom
Question 2/2 noints)
+ 100%
Close