Radzen apps can connect to Microsoft SQL Server databases. All you need to do is specify the connection
string. Radzen will discover the schema and will create a service which will expose the tables using Entity Framework context.
This tutorial will show you how to connect to a MS SQL Server database, read, add, update and delete data.
In this step we create a data source that connects to a MS SQL Server database.
Open the application that you created in the previous step for editing.
Click data to go to the My DataSources screen.
Click new to add a new data source.
Select MS SQL Server as data source type.
Pick a Name for your data source.
Enter the MS SQL Server connection info - server, database name, user and password. Optionally you can specify port in the server field separated with , or :.
Click Next.
Radzen will connect to the database and infer all tables, views and stored procedures. By default all tables are checked and you can choose/uncheck tables and/or table properties, views and stored procedures needed for your application.
Check the Generate pages for CRUD operations check-box.Radzen can create pages only for tables with primary keys. For views only read page can be created and no auto-pages will be created for stored procedures.
Radzen will open Edit and Add pages by default in dialogs. Uncheck the check-box if you want to have navigation instead.
Click Finish.
You can now run the application to verify that you have full CRUD support.
Optionally you can data-bind a data grid component manuallylink
Drag-and-drop a data grid component from the toolbox.
Use Data property wizard to select data source for the DataGrid.