The expected results of tasks execution
According to the results of assignments the student must:
- To understand the principles of ORM, the advantages and disadvantages of using.
- To meet
Flexberry ORM
:- Install and configure
Flexberry ORM
to work in your application. - Be able to read objects in different ways
- To understand the concept of masters and datalow and work with them
- Be able to manage the transaction
- Be able to work in mnogoletnei
- Understand what the business server and be able to work with them
- Be able to perform cascade delete
- Install and configure
Assignments for module
Task 1.
- Create a console application. Subject area – order drugs in online shop with delivery to a physical pharmacy.
The buyer drives the name of the medication, then the system first searches for the specified name in the entire network of pharmacies and gives addresses where the drug is available. If the addresses of these pharmacies is inconvenient for the buyer, or the drug is nowhere in stock, the buyer can order the delivery of medicines to the selected pharmacy.
Class
Лекарства
has the attributes: name. ClassАптека
has the attributes: address, list of medicines available with prices at this pharmacy, a list with the work schedule. Classes associated with connectionассоциация
asмногие-to-многим
. - To install and configure
Flexberry ORM
, database (PostgreSQL
). - To create instances of objects. To create instances of objects should be in the code using
Flexberry ORM
. - Add the medications to pharmacies (also using
Flexberry ORM
). - To make the following queries in different ways:
- To obtain a list of all medications available for ordering – using
LINQ-провайдера
; - A list of the addresses of all pharmacies with
LoadingCustomizationStruct
; - A list of all medications in stock at a particular pharmacy conversion
LINQ in LCS
; - The address of the pharmacy where a given drug is in stock and is cheaper than just getting
строкового представления
; - The list of drugs more than the specified amount in a specific pharmacy, using
SQL-запросов
; - A list of pharmacies that operate on the specified day and at specified time – using
LINQ-провайдера
.
Task 2.
- Programmatically delete all instances of medication from the database using
Flexberry ORM
. - To add a new database
PostgreSQL
. - To add instances of drugs in the new database using
Flexberry ORM
. - Make requests from
Задания 1 p.5
specified ways to ensure that queries work correctly. The application should work in the mode of mnogoletnei.
Task 3.
- To create a web application with the same subject area.
- To run queries from
Задания 1 p. 5
specified ways. Each request to create a separate form. - Create a business server. Use it to perform actions:
- Create a form create a new аптеки;
- In the list of medicines available to specify a non-existent лекарство;
- When saving in a single transaction must be created not only the instance of the pharmacy, the specified лекарство;
- Go to the form with all the medications and verify the medication created.
Support resources: