This quick start project demonstrates how to consume data from SQL Server using Microsoft SqlClient and integrate it with the Blazor Scheduler through Entity Framework Core. It showcases performing CRUD operations on scheduling data with SQL-backed persistence, providing a practical example of seamless data binding, synchronization, and database-driven event management in Blazor applications.
- SQL Server Data Binding: Direct connection to SQL Server databases using Microsoft SqlClient
- Entity Framework Core: Leverages EF Core for database operations and migrations
- CRUD Operations: Complete create, read, update, and delete functionality
- Real-time Synchronization: Automatic data synchronization between UI and database
- Appointment Management: Full scheduling capabilities with event persistence
- Blazor: Server-side rendering for interactive web applications
- SQL Server: Relational database for event storage
- Entity Framework Core: ORM for database access and management
- Microsoft SqlClient: Direct SQL Server data provider
- Visual Studio 2022: Development environment
- Visual Studio 2022
- SQL Server Data Tools within Visual Studio 2022
- .NET 7.0 or later
- SQL Server 2016 or later
- Checkout this project to your local machine
- Open the solution file using Visual Studio 2022
- Build the solution to restore the required NuGet packages
This project uses Entity Framework Core migrations to manage the database schema. Follow these steps to initialize the database:
- Open the Package Manager Console in Visual Studio.
- Run the following command:
PM> update-database - Migrations automatically create the database based on the defined models.
- The EF Core packages required for migration are included with the .NET Core project setup.
- Ensure the database has been created using the migration command above.
- Build the solution to restore all NuGet dependencies.
- Run the project in Visual Studio.
- The Blazor Scheduler will load with SQL Server data binding enabled.
- You can now perform scheduling operations with full CRUD functionality.
For comprehensive information about Blazor Scheduler and SQL Server data binding:
- Syncfusion Blazor Scheduler - Introduction: https://blazor.syncfusion.com/documentation/introduction
- Blazor Scheduler - Getting Started: https://blazor.syncfusion.com/documentation/schedule/getting-started
- Blazor Scheduler - SQL Server Data Binding: https://blazor.syncfusion.com/documentation/scheduler/data-binding#sql-server-data-bindingsql-client
For additional resources and support with Syncfusion Blazor Scheduler, visit the official documentation portal at https://blazor.syncfusion.com/documentation/