Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.06 KB

File metadata and controls

38 lines (29 loc) · 1.06 KB

Concrete Class

In order for this to work you will have to have Entity Framework installed on your IDE


Build Database:

Step 1

Navigate to: Visual Studio > Tools > NuGet Pckg Manager > Console

Step 2

Type: enable-migrations

Step 3

Type: add-migration MyMigration where MyMigration is the name

Step 4

Type: update-database


Console Output:

Type an employee's name
then the console waits for a user input and saves that to the Database after one keypress it prints every entry in the Database.

Example:

Type an employee's name
> John Doe user input
John Doe
David Evans
Jackie Chan
where John Doe is the latest entry and David Evans , Jackie Chan are previous entries in the Database


Note:

if you haven't noticed already, I made a little big mistake naming the class Employees istead of Employee but anyways, I hope this helps.