DMVCFramework 3.2.2-nitrogen - What's New
DMVCFramework 3.2.2-nitrogen
Release Date: September 15, 2020
Major release with Delphi 11 Alexandria support and extensive new features.
Major New Features
Delphi 11.x Alexandria Support
Full support for the new Delphi 11 Alexandria including all new language features.
New TMVCRESTClient
Completely rewritten REST client based on System.Net components:
var
Client: IMVCRESTClient;
Response: IMVCRESTResponse;
begin
Client := TMVCRESTClient.New
.BaseURL('https://api.example.com')
.Header('Authorization', 'Bearer ' + Token);
Response := Client
.Resource('/customers')
.GET;
if Response.Success then
Customers := Response.Content<TObjectList<TCustomer>>;
end;
eLua Server-Side Views
Lua-based template engine for server-side rendering:
<html>
<body>
<h1>{{ title }}</h1>
{% for customer in customers %}
<p>{{ customer.name }}</p>
{% end %}
</body>
</html>
TMVCLRUCache
Least Recently Used cache implementation:
var
Cache: TMVCLRUCache<string, TCustomer>;
begin
Cache := TMVCLRUCache<string, TCustomer>.Create(1000); // Max 1000 items
Cache.Put('cust1', Customer);
Customer := Cache.Get('cust1');
end;
XML Field Type Support in PostgreSQL
MVCActiveRecord now supports PostgreSQL XML columns:
[MVCTableField('config_xml')]
FConfigXML: string; // Stored as XML in PostgreSQL
Other Improvements
- Multiple serialization improvements
- Better error messages
- Performance optimizations
- Bug fixes throughout
Comments
comments powered by Disqus