eskelProgramming / CrosswordWallTile

An eCommerce website for custom Crossword Wall Tiles.
1 stars 0 forks source link

Tile Class #21

Closed eskelProgramming closed 1 month ago

eskelProgramming commented 1 month ago

The Tile class uses the Product interface and has the following properties:

It also needs the following methods:

eskelProgramming commented 1 month ago

Instead of having a List of Stains in this class, I think a better route would be to have a Static class with a List of Stains in that to reduce redundancy and the chance of errors. Additionally, this class can be used to house other things such as a DBContext object moving forwards.

Also, due to working with EF Core, there needs to be an Id property.

eskelProgramming commented 1 month ago

There is no need to have a method for setting the stain, or the letter, and these methods do not have to be added.