-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mar 06 #21
Open
jkillz2020
wants to merge
7
commits into
nss-evening-cohort-04:master
Choose a base branch
from
jkillz2020:Mar_06
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mar 06 #21
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b0f2b7b
add first classes to reference database objects
jkillz2020 6824538
add my two classes to match my diagram
jkillz2020 698dead
add new properties on classes
jkillz2020 760b44d
add classes and relationships
jkillz2020 8973ea6
add classes per ERD
jkillz2020 915bc61
add changes to reflect my erd
jkillz2020 ead96fd
add ERD img
jkillz2020 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using FakeTrello.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace FakeTrello.DAL | ||
{ | ||
public class FakeTrelloContext : ApplicationDbContext | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace FakeTrello.Models | ||
{ | ||
public class Board | ||
{ | ||
[Key] | ||
public int BoardId { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public string URL { get; set; } | ||
|
||
//Auxillary (not required to define/drive relationship) | ||
public TrelloUser Owner { get; set; } | ||
|
||
public List<List> Lists { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace FakeTrello.Models | ||
{ | ||
public class Card | ||
{ | ||
[Key] | ||
public int CardId { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public string Description { get; set; } | ||
|
||
// returns the list the card belongs to | ||
public List BelongsTo { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace FakeTrello.Models | ||
{ | ||
public class List | ||
{ | ||
[Key] | ||
public int ListdId { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public List<Card> Cards { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
//Entity is our Object Relational Mapper (ORM) | ||
|
||
namespace FakeTrello.Models | ||
{ | ||
public class TrelloUser | ||
{ | ||
[Key] | ||
public int TrelloUserId { get; set; } //Primary Key | ||
|
||
// Stacking of properties applies to multiple annotations | ||
// to the following property | ||
[MinLength(10)] | ||
[MaxLength(60)] | ||
public string Email { get; set; } | ||
|
||
[MaxLength(60)] | ||
public string Username { get; set; } | ||
|
||
[MaxLength(60)] | ||
public string FullName { get; set; } | ||
|
||
public ApplicationUser BaseUser { get; set; } // 1 to 1 relationship | ||
|
||
public List<Board> Boards { get; set; } // 1 to many (boards) relationship | ||
|
||
public List<List> Lists { get; set; } // 1 to many | ||
|
||
public List<Card> Cards { get; set; } // 1 to many | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Fake Trello | ||
|
||
## Features | ||
|
||
- Users will be able to create boards, lists and cards. | ||
- Users will be able to delete baords, lists and cards. | ||
- Users will be able to attach up to 3 other users to a cards (regardless of card creator). | ||
- Users will be able to move and copy Cards between lists | ||
|
||
|
||
## Instructions | ||
|
||
1. Create a Logical ERD (models with columns). | ||
2. Add your ERD to this README as an image. (under the "Fake Trello ERD" section) | ||
2. Create C#/Entity models using your ERD | ||
|
||
|
||
### Fake Trello ERD | ||
|
||
 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't displaying for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, mmmm I added the image to mine by editing the README on Github....I may need to import the image into my project folder. I can refactor my code to match my ERD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@katerebekah I think mine more accurately reflects my own ERD now. Removed references to classes not in my model.