MauiAppAccelerator icon indicating copy to clipboard operation
MauiAppAccelerator copied to clipboard

Scaffolding models as we once did in MVC

Open adopilot opened this issue 2 years ago • 7 comments
trafficstars

It will be great if we cloud Scaffolding CRUD pages using models, as we once did in MVC projects, In MPC we had to choice model and which CRUD operation page need to cover and engine did the rest.

adopilot avatar Feb 02 '23 20:02 adopilot

XAML PowerToys used to do something like this. Is this the kind of thing you're after?

mrlacey avatar Feb 03 '23 08:02 mrlacey

Is this the kind of thing you're after? Yes something like this.

Or something like this direct from visual studio.

image

adopilot avatar Feb 03 '23 08:02 adopilot

I have something similar that I also plan to bring to VS2022 (& MAUI) at https://rapidxaml.dev/generation

mrlacey avatar Feb 03 '23 09:02 mrlacey

Honestly, I haven't switched to C# markup yet. But I think it would be much better to do code generation in c# markup instead of XAML.

adopilot avatar Feb 03 '23 09:02 adopilot

Honestly, I haven't switched to C# markup yet. But I think it would be much better to do code generation in c# markup instead of XAML.

I'm curious, why do you think doing it in C#Markup would be better? Especially if you haven't used it. It sounds like you have a problem with using XAML. What's the issue? I'm interested in how XAML can be made more productive and easier to work with. I don't think switching to C#Markup is always necessarily better.

mrlacey avatar Feb 03 '23 11:02 mrlacey

I'm curious, why do you think doing it in C#Markup would be better? Perhaps my personal issues with XAML. I get disappointed in XAML once when I realize that I can't do WYSWG like on winforms. Maybe resarching with dart also nuke me to think C# can be language for gui.

I am not fan of XAML from erly stages of Xamarin when it was slow and bugy.

Also I think that gui in C# is smoething new and if we catch in step on time we will be top.

I learned a lot of HTML using Scaffolding methods mentoined before. So I think that learning C# as GUI can be easy for meny users if they can have something to start with.

Sorry for late answer I was on weekend stay.

Also one crazy idea for Scaffolding is to read swagger.json file (open api ).

adopilot avatar Feb 06 '23 15:02 adopilot

Exactly.. that would be a great feature...

dbtech-davidb avatar Mar 19 '23 07:03 dbtech-davidb