Relationships on Configure Entity form not available

Hello,

I have been attempting to generate CRUD pages and consistently receive the same error on add/edit forms for all FK fields:

Found a malformed 'RadzenFormField' tag helper. Tag helpers must have a start and end tag or be self closing.
and
Found a malformed 'ChildContent' tag helper. Tag helpers must have a start and end tag or be self closing.

The generated source code for the Add page is


<PageTitle>Add CompanyAttendanceauthorization</PageTitle>
    <RadzenColumn SizeMD=12>
        <RadzenAlert Shade="Shade.Lighter" Variant="Variant.Flat" Size="AlertSize.Small" AlertStyle="AlertStyle.Danger" Visible="@errorVisible">Cannot save CompanyAttendanceauthorization</RadzenAlert>
        <RadzenTemplateForm TItem="MWAdmin.Server.Models.MW_Dev.CompanyAttendanceauthorization" Data="@(companyAttendanceauthorization)" Visible="@(companyAttendanceauthorization != null)" Submit="@FormSubmit">
          <RadzenStack>
            <RadzenFormField Text="User Key Navigation" Variant="Variant.Outlined">
                  <ChildContent>
            <RadzenFormField Text="Department Key Navigation" Variant="Variant.Outlined">
                  <ChildContent>
            <RadzenFormField Text="Shift Key Navigation" Variant="Variant.Outlined">
                  <ChildContent>
          </RadzenStack>
          <RadzenStack style="margin-top:1rem;" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.End" Gap="0.5rem">
                    <RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Submit" Icon="save" Text="Save" Variant="Variant.Flat" />
                    <RadzenButton ButtonStyle="ButtonStyle.Light" Text="Cancel" Variant="Variant.Flat" Click="@CancelButtonClick"  />
          </RadzenStack>
        </RadzenTemplateForm>
    </RadzenColumn> 

Additionally none of the FKs generated dropdown datagrids as I would expect.

Assuming I did something wrong, I watched the CRUD tutorial and realized I do not have the Relationships options available on the Configure Entity form:

Whereas the tutorial does:

My database has functioning FKs and I have already used the same database to generate an app in Radzen Studio that I am attempting to recreate in Radzen Blazor Studio. I included all FK tables when inferring the schema and have encountered this with every CRUD page I have attempted so far.

Please let me know if I am doing something wrong or if this is a bug. Thanks!

Zach

We can’t tell why the relationships are not listed unless we examine your database schema. Please send us your schema as SQL script at info@radzen.com.

I've checked your schema and looks like the relations are retrieved properly and the relevant code is generated for both DbContext and CRUD pages (FK are represented by DropDowns):


We will check Configure Entity dialog to see why relations are not listed and we will provide fix in our next update.

Excellent, thank you very much!

Hello,

I have installed the latest version of RBS today and all of the issues listed above still remain for me. I cannot see entity relations on the configure entity form and all FK fields do not generate correctly on the add and edit razor files. The razor.cs files are correct, but the razor files generate the code I provided earlier and require manual adjustment.

Please let me know if you if you need any more information. I am running RBS 1.49.0.

Thanks,

Zach

Sorry @Zach.E, we were unable to fix the issue - we will do our best to include fix in one of your upcoming updates.

I am still having this issue. I am using the latest version of RBS and have even installed it on a completely different computer and the issue still persists. I can see the relationships when generating the page, but it still doesn’t correctly generate the form fields. Any ideas on how to fix this? Manually fixing every add and edit form field that has a dropdown datagrid linked to a foreign key certainly makes development more tedious than it should be with a tool like this. I love the tool, but fixing this issue would be extremely helpful.

Here is what I see using latest version of RBS and the schema you’ve sent us on 9 July:

The generated razor is also correct: