Become a member!

DMVCFramework 3.2.1-carbon - What's New

DMVCFramework 3.2.1-carbon

Release Date: November 27, 2019

This is the reference version for the Official DMVCFramework Guide. A stable, well-documented release.


Major New Features

snake_case Naming Support

JSON serialization with snake_case naming convention:

[MVCNameCase(ncSnakeCase)]
TCustomer = class
private
  FFirstName: string;  // Serialized as "first_name"
  FLastName: string;   // Serialized as "last_name"
end;

Mustache Partial Support

Include reusable template fragments:

{{! main.html }}
<html>
  {{> header}}
  <body>
    {{> navigation}}
    <main>{{{content}}}</main>
    {{> footer}}
  </body>
</html>

Dynamic Property Access for TMVCActiveRecord

Access properties dynamically by name:

Customer['FirstName'] := 'John';
Value := Customer['LastName'];

Field Options: foReadOnly and foWriteOnly

Control field serialization direction:

[MVCTableField('password_hash', [foWriteOnly])]
FPasswordHash: string;  // Never serialized to JSON

[MVCTableField('created_at', [foReadOnly])]
FCreatedAt: TDateTime;  // Never deserialized from JSON

The Official Guide

This version is the reference for “DMVCFramework - The Official Guide” available at:



← Back to DMVCFramework

Comments

comments powered by Disqus