Language And Object Relational Mapping Demo
This demo, based on SqlServer, is meant to showcase the strongly typed excellence and range of the WYSE framework, along with its groundbreaking (Hierarchical) Object Relation Mapping capabilities. The idea is to be able to code without having to make code quality damaging compromises.
...and since code speaks louder than words demo code (stack trace) and database results are shown in a developer-tools-like panel as you interact with the server.
Below you can find, grouped firstly by SQL statement type and later by object relational mapping feature, a list of links. These links are server calls in which increasingly advanced WYSE features of language and ORM are used.
Plain Text Expression Building
Be sure to check out the Report Generator demo. That playable demo explores what is possible in combination with self-constructed plain text where clauses. So it is functionally similar to GraphQL.
Working With State (BETA)
The 'Generic Mappings With SelectBuilder' examples listed above showcase how objects can be fully instantiated hierarchically. But that is only the 'reading' part. The 'writing' part is where State comes into play. With this, given an object with properties that have properties and so forth, a script will be generated to sync the state of the database with with that of the object. This script will contain all the necessary inserts, updates and/or deletes. The deletes are important when a property is a list of objects, so with 1:n relationships.
The small window you are using greatly diminishes your demo experience. Please consider viewing using a larger window.
Command Text:
SELECT
[dbo_Customer_1].[FullName] [dbo_Customer_FullName_1],
[dbo_Customer_1].[HomeAddressId] [dbo_Customer_HomeAddressId_1],
[dbo_Customer_1].[BillingAddressId] [dbo_Customer_BillingAddressId_1],
[dbo_Customer_1].[Id] [dbo_Customer_Id_1]
FROM [dbo].[Customer] [dbo_Customer_1]
UNION ALL
SELECT
[dbo_Customer_2].[FullName] [dbo_Customer_FullName_2],
[dbo_Customer_2].[HomeAddressId] [dbo_Customer_HomeAddressId_2],
[dbo_Customer_2].[BillingAddressId] [dbo_Customer_BillingAddressId_2],
[dbo_Customer_2].[Id] [dbo_Customer_Id_2]
FROM [dbo].[Customer] [dbo_Customer_2]
UNION
SELECT
[dbo_Customer_3].[FullName] [dbo_Customer_FullName_3],
[dbo_Customer_3].[HomeAddressId] [dbo_Customer_HomeAddressId_3],
[dbo_Customer_3].[BillingAddressId] [dbo_Customer_BillingAddressId_3],
[dbo_Customer_3].[Id] [dbo_Customer_Id_3]
FROM [dbo].[Customer] [dbo_Customer_3]