How to Implement MVVM in a .NET Core Console Application?

.net-core cross-platform design-patterns entity-framework-core

Question

I’d like to use .Net Core (Console App) and EF Core to create my business logic, a number crunching engine that loads financial data from a local database (MySQL or SQLite), process it, will store the results in the same database and show them to the user.

I want to be able to easily add in the future a GUI to manage the CRUD operations and simple commands.

How can I implement the MVVM pattern in a console application to be able to easily add a GUI in the future (Win7-10 and MacOs)?

1
0
2/19/2017 11:12:31 AM

Accepted Answer

Representing a view model on the command line sound like a natural mismatch. There are engines for drawing views using the terminal, however, in my opinion you should target the command line not with a mvvm pattern. MVC where the view is the console and the controller received the command line sounds like a better fit.

1
2/18/2017 10:26:17 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow