Skip to content
Aleksey Stukalov edited this page Nov 17, 2016 · 20 revisions

Migration of Lightswitch Sample Application to CUBA Platform

##LightSwith Application

You can find development guide for the Vision Clinic sample and develop it yourself or simply download it.

The Vision Clinic example stores data in two different databases, linking data between them. In order to simplify the example, we merge two databases into one and create a foreign key between Product and InvoiceDetails tables.

In fact, we need only the database, so you can find the instruction in the Database section.

CUBA application will not change the structure of existing tables, so CUBA and LS applications will have an ability to work simultaneously, using the same instance of the database.

Database

To make your application up and running on MS SQL Server:

  1. Download and install MS SQL Server 2012+ from the official website.
  2. Run create-db.sql script; then run insert-data.sql script.
  3. Enable SQL Server and Windows Authentication mode and sa user to login as it is shown here. Remember password for the sa, it will be used for connecting the database from CUBA Application.
Clone this wiki locally