Please see: https://www.llblgen.com/Documentation/5.4/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/gencode_addingusercode.htm
to get started with adding a template to the generated code. See: https://www.llblgen.com/Documentation/5.4/SDK/TemplatesandTemplatebindings.htm for details regarding the template system and the syntax you can use (we recommend .lpt templates as you have full control over what you're accessing, TDL is limited and not extended anymore). I'd go for an include template so you can include the info somewhere. But you can also emit a separate class with static properties if you want. The designer ships with many .lpt templates, which you can peek into using the TemplateBindingsViewer to get more info about how things are done. It's just C# between <% %> like in asp.net.
The datetime values you're interested in are on the DBCatalog class, https://www.llblgen.com/Documentation/5.4/ReferenceManuals/Designer/html/482D45AB.htm namely the LastSyncWith* properties.
To obtain these values, you have to obtain the catalogs in scope. To do so, simply do (in your .lpt template):
HashSet<DBCatalog> existingCatalogs = _executingGenerator.GetCatalogsInScope();
And you can then loop over the DBCatalog and read the properties and emit the values into your code, like: (in your template, which emits code for a class)
// this is code that's emitted into the output, as it's not surrounded by <% %>
private Dictionary<string, DateTime?> _syncDatePerCatalog = new Dictionary<string, DateTime?>();
<%
// this is code that's template code and is run at generation time as it's surrounded by <%%>
foreach(var c in existingCatalogs)
{
%> _syncDatePerCatalog.Add(c.CatalogName, c.LastSyncWithDatabaseUTC);
<%
}
%>
// and lower you're simply exposing it through a property, again code that's emitted into the output
public Dictionary<string, DateTime?> SyncDatePerCatalog
{
get { return _syncDatePerCatalog; }
}
Good luck