Please help with this

Learning Goal: I’m working on a c# exercise and need support to help me learn.

Must be in C# The app should be a console app with Entity Framework Core using a SQLite database with .NET 6

Please Provide where each part of the Code needs to be in the Models Folder and the DbContext.cs.

Please include screenshot of the OUTPUT.

Please Provide also screenshot of where each part of the Code needs to be placed. Thanks.

Create a Stack Overflow like app that will keep track of users’ questions and answers. Each user will have a first name, last name, e-mail address, and registration date/time. Each question includes a question text and date/time posted. Each answer should have an answer text and date/time posted. The data model must adhere to the following business rules:

  • Each user can post many questions; each question is posted by one user.
  • Each user can post many answers; each answer is posted by one user.
  • Each question can have many answers; each answer applies to one question.

The app should have an interface like Homework 2. A user should be able to perform the following tasks. Structure these tasks similar to Homework 2 with a separate class and code methods within that class for each task. Create an instance of that class and call those methods from Main:

  1. Log In. When your app first starts, ask the user for their email address. If it is already in the database, log the user in automatically, otherwise create a new user account for them. You can use DateTime.Now to store the current date/time as the registration date. You don’t need to deal with passwords, just check the email address.
  2. List all questions.
  3. List only unanswered questions. Hint: This is the same as task 2 except you will use a .Where() LINQ method to filter only unanswered questions. Unanswered questions should have their List<Answer> navigation property with .Count() == 0.
  4. Ask a question.
  5. Remove a question the user previously asked. You will need some business logic to prevent users from removing other users’ questions or questions that don’t exist.
  6. Answer a question. Notify the user if they try to answer a question that doesn’t exist.

The app should be a console app with Entity Framework Core using a SQLite database.

When listing questions, format the printing so that it looks “good” and is easy to read. Display the question ID, the user who posted it, the date it was posted, the question text, and then all answers (including user name and date answer was posted) underneath in a hierarchy. Implement the .ToString() method for each entity.

Don’t forget to include primary keys, foreign keys, and navigation properties in your entity classes. They are always required for your app to work properly even if they are omitted from the business rules.

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

mahjong ways 2