Telosys news
WebsiteTwitterLinkedInDocumentation
  • Telosys news
  • Version 4.2.0 (2024-November)
  • Version 4.1.1 (2024-January)
  • Version 4.1.0 (2023-August)
    • Model
    • Templates
    • Target languages
    • Model from database
    • Telosys-CLI
  • Version 4.0.0 (2022-April)
  • Version 3.3.0 (2021-July )
    • DSL model annotations
    • DSL model "Tags"
    • Templates features
    • Templates objects
Powered by GitBook
On this page
  • Kotlin
  • C#
  • PHP
  • Nullable types
  1. Version 4.1.0 (2023-August)

Target languages

Kotlin

Kotlin is a new predefined target language added in version 4.1.0

It supports nullable types.

C#

C# target language has been improved

New temporal types have been added :

  • DateOnly ( Day / Month / Year )

  • TimeOnly ( Hour / Min / Sec / NanoSec )

Nullable types are now supported for C#

PHP

Typed class properties have been added in PHP 7.4

So it's now possible to generate PHP code with the type corresponding to the attribute.

The type can be : string, bool, int, float or DateTime

Nullable types are supported for PHP

Nullable types

Nullable types are now automatically provided for the languages concerned ( C#, PHP and Kotlin )

A nullable type is a type with a "nullable mark" at the end or at the beginning of the type, for example :

  • "int?" and "string?" for C#

  • "?int" and "?string" for PHP

The "nullable mark" is automatically added to the type if : the attribute is 'nullable' and $env.typeWithNullableMark is set to TRUE

PreviousTemplatesNextModel from database

Last updated 1 year ago