hjohnson12 / Kanban-Tasker

A simple personal kanban board for Windows 10 Universal Windows Platform (UWP) to manage tasks and create a simple and easy workflow for each board
Other
269 stars 45 forks source link

Refactor services and domain models. #6

Closed leaderanalytics closed 4 years ago

leaderanalytics commented 5 years ago

I made a few more changes than I thought I would. In order to make this app (or any app) platform agnostic it has to be layered like an n-tier application.
I moved the model (DTOs) to it's own assembly - need to do that so other layers can resuse it. Same with services.

I did not yet add support for multiple databases but doing so at this point is pretty simple - add another implementation of IKanbanTaskerService. It will be easy to add a web API also.

Issues: The delete button on the panel does not call the bound command. I don't know why - it's a problem for the UWP guys. The SfKanban control does not support the concept of SelectedItem like most other XAML controls that are bound to a collection. This presents a lot of problems for methods that need to act on a selected object.

leaderanalytics commented 5 years ago

What is the difference between a Data Transfer Object and a presentation model?

A DTO is a low level class used to shuttle data back and forth to the database. It usually has a structure that exactly matches the table structure on the database.

A presentation model has these differences:

hjohnson12 commented 4 years ago

Known bugs in this merge that will be worked on: