Statement of the problem
The result of the practical example will be compiled and сгенерированный код
ready Web application.
To the module code generation could generate the application, you need to create:
- submission
- form classes for editing
- form classes for lists
- the application class
- and also to perform certain settings.
To facilitate this process, in Flexberry Designer use rapid prototyping, which performs these actions in a certain way. This results in a working application that can be used as a prototype when working with the customer in the initial stages of the project.
Главное advantage of this способа
prototype obtained almost instantly» qmo, without noticeable downtime. Subsequently created with the help of prototypical objects can be modified, thereby bringing the system to the desired functionality.
Prerequisites for generating a web application
To create prototype web application you must meet the following requirements:
- Must be connected to the module ASP.NET in the application Flexberry Designer.
- The repository should be created a structure up to the system.
- Should be a class diagram.
- Must have Visual Studio 2013 and above.
- Must be installed MS SQL Server 2008 and above.
Refinement of the model
Prototype applications can be created only if the class diagram. It should include all necessary attributes and their types, correctly describes the operation
To Refine the model, you need:
- Open the class diagram
Сущности
established under Practical guide for the creation of UML diagrams. - To specify the types of class attributes, as is done in the following diagram:
Note:
- The types of attributes you specify, and upon the first consideration of the system, but usually in the initial stages they fall in the uncertainty or the lack of need for them. At the stage of prototyping types must be specified.
- To verify the correctness of the attributes, you can view the properties of this class (in the class’s popup menu select
Редактировать свойства
). - When generating code from class diagram should be no relationships of type aggregation (can be used only Association, composition and inheritance), as well as links with a plurality
один-to-одному
orмногие-to-многим
.
3.To save the graph.