Calling a Program Across Projects
When large application are migrated, they are usually splitted into multiple sibling projects.
So far, when we have called a controller, it was eight in our project, or in a project we referenced, and we've done that using the
When we are in a project, and we want to call a
controller in a siebling project we need to use a different syntax.
For example - if we're in the
Northwind.Orders project and we need the
ShowCustomers program from the
Northwind.Customers porject to select a customer, we can't use the
new syntax - since we are not referncing the
Northwind.Costomers project. Instead we'll use a syntax called
- In the
Northwind.Ordersproject add a dev demo folder.
- Add a UIContorller called
- Add a local TextColumn called CustomerId
- Put it on the screen.
- In the
ShowCustomerscontroller to select a customer.
You can only call programs across project that were prepared for that.
The easy way to call a program in another project, is to add a reference to it.
For example We can add in
Northwind.Orders a reference to
Northwind.Customers and it'll be ok.
The problems starts if then we want to call a controller from
Northwind.Orders it'll create a cyrcular reference and break.
We do recommend adding the reference in most scenariosFor the rest learn how to adjust a program to be called across project see. creating-a-program-that-can-be-called-across-projects.html
Help us improve, Edit this page on GitHub
or email us at email@example.com