Skip to content

dk-raw/concrete-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

C# concrete class app with SQL server db

Topics

Resources

License

Stars

Watchers

Forks

Languages