Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trello exercise #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexsaber89
Copy link

No description provided.

Copy link

@katerebekah katerebekah left a comment

Choose a reason for hiding this comment

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

You did a good job thinking through the database tables necessary to store the data. Entity Framework is going to make it all easier with navigation properties. It helps to think of your Entity Framework models more like your Zoolandia models than the database tables you've been working with lately. If you'd like to see more about this, we can cover it again or we can give you more resources. Just let me know.

namespace FakeTrello.Models
{
public class CardList
{

Choose a reason for hiding this comment

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

If the intention for this class is to represent the one-to-many relationship between Lists and Cards, you don't need to make a class to represent a join table in SQL. Entity Framework will create the join table without this class with just the List in your List class.

using System.Linq;
using System.Web;

namespace FakeTrello.Models

Choose a reason for hiding this comment

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

just like my note above, you don't need to create this class for the join table. Entity Framework will create the table based on the navigation property in your Trello User class.

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.

2 participants