←
Al
Zolo
Q
+
Cốc Cốc
NEFW.Practice.T01.pdf
- Google ☑
youtube - Tìm với Cốc Cốc
drive.google.com/file/d/1M6avD4Mq5dMYM7_f6KZb2RDaQcXpsA3r/view
Finaltest
LQ
NEFW.Practice.T01 - Tìm với Cốc Cốc
entity framework final test fsoft - Tim +
Entity Framework
issue/Revision. .1
Create a solution named NEFW.Practice. T01 by using Visual Studio Solutions template.
Problem 01: Create Database using Entity Framework Code-First
Specifications:
Consider the following E-R diagram about Employee Management System in a company.
Company manage employees in departments. Each department has many employees. One of them is manager of the department. Employee is belong to one department only.
Name of employee consists 3 segments: Fname, Minit, LName.
+
Task:
Fname Minit Lname
Bdate
Name Address
Salary
Ssn
Sex
Locations
N
1
WORKS_FOR
Name
Number
EMPLOYEE
Start date
Number_of_employees
1
1
MANAGES
DEPARTMENT
Pre to search
Inside the solution, create project name NEFW.Practice.T01.Core, using Class Library (.NETFramework) template.
Create Database using Entity Framework Code-First.
Create models with the most appropriate properties, constraints & types
Using DataAnnotation and/or FluentAPI for properties' constraints of models
Create DbContext and DbInitializer class by customize CreateDatabaseIfNotExists approach.
Add at least 5 records for each model
Add comments to explain your code.
Zalo
Si Gần mức kỷ lục
←
1:46 PM
11/23/2023