Question: CREATED IN C# CONSOLE ; make your own variables and database rows and I will use for example. Objective : Save method to perform an

CREATED IN C# CONSOLE ; make your own variables and database rows and I will use for example.

Objective: Save method to perform an update to your database if the userId is not blank.

Your user should attempt to log in.

Prompt the user to enter a username and password then call login.

If this log in is successful, display his information using the display method.

If this log in is NOT successful then offer to register the user and create a new user entry in the database. This should use your updated save method.

You will need to prompt the user to enter new information.

Be sure to save the new object to the database, not just to the class-member variables in memory.

This method should enter a new row to the db is the user is a new user and it should also update information for existing users.

Manually, go to Sequel Pro and check the database to ensure the update occurred.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!