Hi There,
I'd like to draw your attention on this interesting (hopefully!) problem. Its not specific to Radzen Studio Or Blazor Studio. I believe this is more wider - to EF & Blazor etc etc... But keen to get your opinion on Workarounds, if any.
To reproduce:
Created Empty DB and 3 tables. 2 under [msi] schema and 1 under [Audit] schema. They look like below... (DDL - Create Tables/schema and DML - Data Insert) are attached.Processing: UITest - Edited Model.zip...
Now trying to generate CRUD via Radzen Blazor Studio.
All Codes are available Here: Click Here
Issues:
-
First of all I created simple CRUD with click> click> click In Radzen Blazor studio. Final Outcome (As attached entire solution & project in - UITest - No Modification of Radzen Code.zip) - Debug/Run Error.
~ I guess this has something to do with Entity Framework's way of interpreting with Identity & Computed column etc. -
So, now I went ahead and altered, my computed column (also is the Primary key) in Model from
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] to [DatabaseGenerated(DatabaseGeneratedOption.None)]
also, added [DatabaseGenerated(DatabaseGeneratedOption.None)] on ID (int identity) columns.
~ With that modification, now program started running. (Modified solution attached in - UITest - Edited Model.zip)
But - Here I guess we have some issues / bugs to fix.... Display pages work for both table but edit page works for none. So, far I assume these are the areas causing trouble -
(a) For master table - There is no trigger but still not working because radzen/blazor studio is not generating child element for TimeSpan field. Could we please fix it, or may be you can share some guidance on while component to use and how to bind TimeSpan field?
(b) For Header Table - It a simple one but still Edit not working because of Trigger and Computed Column & Identity Column. I was assuming Blazor Studio is able to handle it but seems not. Could you please have a look and share some guidance for this?
Thank you so much in advance,