Hi there, I'm in the process of upgrading from LLBLGen v2.6 to v5.3.
Running into an issue where related entities seem to be no longer accessible when using DataBinding.
My project has a custom control used for editing Addresses which includes all the text boxes/drop downs etc required to edit an Address entity. For example, on the form used for editing Supplier entities, this custom control is placed and its EditValue is bound allowing the Supplier's related Address entity to be modified.
Relevant bits of the .Designer file:
private SMS.UI.Control.Address address1; // our customer control
this.supplierBindingSource.DataSource = typeof(SMS.Data.EntityClasses.SupplierEntity);
this.address1.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.supplierBindingSource, "Address", true)); // Address is the Navigator assigned to the relationship
With the new LLBLGen 5.3, this results in a runtime exception:
System.ArgumentException: 'Cannot bind to the property or column Address on the DataSource.'
We can also not bind regular controls to fields on related entities, which worked before:
this.emailTextEdit.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.supplierBindingSource, "Contact.Email", true)); // Contact is the Navigator assigned to another relationship
For this latter issue, I know I can add a Mapped Field to the Supplier entity and use that instead, but that doesn't help with the first issue.
Windows Forms .NET 4.6
Self-servicing
PostgreSQL 10
LLBLGen v5.3 (5.3.3) RTM.
Thank-you!