DELPHI MVC (ECB)

3

I would like to know if anyone knows how to implement the MVC (ECB) pattern in Delphi. I use DelphiXE5 and would like to make it as scalable as possible, and I know one of the solutions is to make it an MVC application. Any suggestion? Source? Example?

Thank you!

    
asked by anonymous 11.07.2014 / 16:35

3 answers

3

Well I've never really developed in Mvc with Delphi, but I found this example on the web Delphi Mvc Apostille , To develop in Mvc is basically more separation of layered objects for this the whole project will have to be object-oriented Manipulating and returning objects like any other language up to normal, the only thing that the way to create, inherit, overload in delphi is a bit different so many get scared about it.

    
31.07.2014 / 21:18
2

The MVC model is intended for the construction of interfaces ( link ) and not all application architecture. Other models may also arrive at the same result and the arguments you put forward will not necessarily be reached by just making use of this template.

Business rules and persistence issues are not covered by MVC, since their primary purpose is to construct user interaction objects that allow the use of unit tests during their implementation.

It is considered a mistake to implement business rules in a controller as much as it would be wrong to implement them in a form and for the same reasons.

The implementation of business rules can be located in several parts of the application depending on the architectural model chosen. For example, if you are going to use Domain-Driven Design (DDD) then business rules will be implemented in domain classes and service classes, whereas persistence will be managed by repositories, whether or not they use a persistence system automatic.

There is a product at link

    
31.07.2014 / 22:36
-1

View the MVCBr template - a delphi / MVC framework. link through a set of wizards show how to apply the in-app concept in the MVC standard in practice.

    
29.03.2017 / 05:12