Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

In this lesson we will explain review how to explore and associate existing databases objects including tables, stored procedures and functions. In this lesson we We will also showcase Tables related features but the same concepts and features apply to SPs Stored Procedures and Functions.

How to explore Database Tables?

On Wayfast, Before getting started make sure that the Project is you have a Wayfast Project created and at least, a requirement is in “Active” status.

Click First let’s click on “Database” icon at the top menu.

...

On In the Submenu, click on “Tables” subtab

...

Wayfast automatically shows will display the different Transactional, Master data and Business data tables in grid view dashboard.

Each table type is treated differently when you deploy your application to QA or Production environments.

Type

Description

Transactional Tables

This kind of tables will be synchronized considering only structure. Data will not travel from development environment to other environments.

Master Tables

This kind of tables will be synchronized considering structure and data. This tables are meant for configurations that will not be modified during application’s life unless there is a new App version.

Business Tables

This kind of tables will NOT be synchronized during deployments. This tables are meant to query tables created outside the application development. This can be useful if you are reusing tables from a different system accessing DB directly or if you are dealing with legacy tables.

Log Tables

This tables are meant for app’s tracing features. Data inserted in this table will be automatically cleared after a configurable period.

How to associate Tables from other databases?

Click on “Associating Tables” button and a popup will be displayed on screen.

...

Clicking the magnifying glass in the “Object” field will retrieves all the tables available. Keep in mind that if you don’t see an object you recently added to the DB you may need to “Synchronize” the DB with Wayfast.

Select the desired table an click on the “Assign” button.

Now that we have the associated this “Table” object associated to the Project and we can continue defining the Requirementswe are able to see it in the list and use it as part of our project.

...

Info

This feature will work only if we associated another existing database to the Project. If we only have the database created for this project, Wayfast won’t retrieve any other database and their tables.

How to create a new Table in SQL and synchronize it on Wayfast?

Let’s open SQL Server Management Studio and connect to the DB associated to the Project.

...

Code Block
languagesql
CREATE TABLE EmployeeEmployeeDemo(
FirstName  NVARCHAR (50)  COLLATE DATABASE_DEFAULT  NULL,
LastName  NVARCHAR (50)  COLLATE DATABASE_DEFAULT  NULL,
Role  NVARCHAR(50)  COLLATE DATABASE_DEFAULT  NULL,
Age  INT  NULL,
)

...

Execute the query and verify that the Table is has been created. Then return to Wayfast and focus on the left navigation barclick on the database menu icon. In the submenu click “SynchronizeDB”.

Click on “End Task” in the “Active” requirement

...

A popup is displayed but we don’t need to end the task, just click on the “Synchronize” button

...

Return to Database-Table submenu

Automatically Now we are able to see the new row is added on the Transactional Tables grid view with the corresponding table in the “Transactional Tables” grid including related “Instance” and “Database” values that we create on SQL.

...

Recap

In this lesson, we learnt how to associate existent tables in our Project’s database. And we We observed how the new tables were created from the in SQL Server Management Studio are synchronized in simple steps into Wayfast.  who to synchronize them to make them available in Wayfast. Remember this same steps are applicable for other database objects like views and stored procedures.