lundi 13 mai 2019

Usign EF Core (database first) with design patterns

I ve already worked with EF core before, but I wanted to know if it is possible to use general design patters with this framework. For instance, lets say I have a Issue table on my DataBase, that Issue table has a one-to-many relation with IssueStatus. After setting up EF Core I will have two classes, Issue and IssueStatus. Since an Issue can have different behaviour depending on its status I would like to use the decorator pattern. How can this be achieved with the generated model and how well does EF Core get along with other patterns (like Strategy, Command, Composite, etc).

Aucun commentaire:

Enregistrer un commentaire