Skip to content

Conversation

@Smangumb
Copy link
Owner

No description provided.

Copy link

@daniefer daniefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get some help from Lisa or one of the other tutors and see if you can't get this done this week.

ToDo todo4 = new ToDo();

utils.CreateToDo(todo1);
context.CreateToDo(todo1);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on Create, Edit and List All, but you are missing Delete, List by ID and not using EF to save your ToDos between application runs.



//List<String> commands { "Edit", "Add", "Delete" };
//while (answer == )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were heading down the right path here...

{

}
public List<ToDo> ToDos = new List<ToDo>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is almost right. You have to declare your ToDos property as a type of DbSet and it needs to be a property not a field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants