![]() Now let’s run the application and click on ' Admin Schemas' page. To set up no-code builders, we need to create two razor pages and register them in Shared\NavMenu.razor, also you can delete the Visual Studio demo pages ( Counter.razor and FetchData.razor).Īdd ‘ SchemaDesigner.razor’ to ‘ Pages’ folder: The code generated by T4 templates can be natively connected to Platz dynamic UI components, so you don’t need to do manual coding. The result query is stored in the configuration json file and can be used for C# code generation. The Query Builder is used for visual design of database queries to retrieve data using the full power of SQL. Then applying t4 template, we can generate C# code that will manage the defined database and provide CRUD operations for Platz dynamic UI components. Using Schema Designer, we can visually define database tables and relationships and save them to a configuration file in json format. Platz Schema Designer and Query Builder are no-code elements that we added to simplify and speed up the development process. Next, we need to add a project folder where the schema and query configurations will be stored – right click on the project and select ‘ Add’, then ‘ New Folder’ and type ‘ SchemaStore’. Public void ConfigureServices(IServiceCollection services) We need to install ‘ Platz.SqlForms’ and ‘ Platz.ObjectBuilder’ and extend Startup.cs by adding Platz initialization code: Select ‘ Browse’ tab and type ‘ Platz’ in the search box. The next step is to add NuGet packages - right click on the project and click on the menu item ‘ Manage NuGet Packages…’. Visual Studio should create a new project for you: NET 5.0’ Target Framework and click ‘ Create’. Using Visual Studio, click ‘ Create a new Project’ and find Blazor Server App.Ĭlick ‘ Next’ and set project name and solution name, and click ‘ Next’, then choose ‘. If you don’t have Microsoft Visual Studio, you can download a free ‘Community’ version from here: Microsoft Blazor - Rapid Development with SQL Forms Open-source Platz.SqlForms.Microsoft Blazor - Custom Controls for Dynamic Content.If you are interested, you can read my other articles about Blazor dynamic forms:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |