DataGrid with Form double declaration

I tried to create a new page with page type DataGrid with Form. I have an error where the model is declared twice with the same name and the different type.

        protected IEnumerable<Bezra.Models.BEZRA.BROSP> bROSP;
        .
        .
        .
        protected Bezra.Models.BEZRA.BROSP bROSP;

of course this confuses generated code and I have several errors which are related to this double declaration.

I'm unable to replicate this using our Sample database with the following settings:



Let us know how to replicate this.

I do not know how to replicate this at your side but also do not know how to not replicate this at my side.
RBS version 1.30.2

I can only attach freshly generated code to see it yourself. If you have any suggestions on how to help you I will try.

Tried to attach but the forum allows only .JPG or similar files so it's no go.

Maybe some mail to send you generated code just to see for yourself.

You can zip and send us the entire application at info@radzen.com with instructions what options are checked when you create the page in the scaffold wizard. Use service like Google/One Drive since the zip will be big most probably.

We were able to identify and fix the problem, the fix will be part of our next update.

1 Like