A C# project using Blazor to create a simple Purchase Order System, incorporating Syncfusion controls and using Dapper to link to a SQL database. In this video we complete the first razor page to maintain Tax Rates by adding the ability to edit and delete Tax Rates. Deletion is achieved by marking records 'as archived' and excluding them from view. Consideration is also given to whether to include archived records in tests for duplicates.
The video also demonstrates how error CS0266 can be inadvertently triggered - and how to avoid it.
I forgot to mention in the video that I had altered the SQL stored procedure to list tax rates so that it only included non-archived records. See the website link below.
Timeline
00.00 - Introduction
00:40 - Introduction to Edit razor page summary
01:40 - SQL to prevent duplicates when updating a record
03:03 - C# Service code
04:37 - C# Interface code
05:35 - Razor page Syncfusion GridEvent RowHandler
07:10 - Toolbar Handler for editing record
08:35 - C# to save edited record
11:07 - Add Syncfusion dialog to handle delete function
17:22 - How to allow addition of duplicate if original has been archived
21:30 - Demonstration of C# error CS0266
Description and code: https://blazorcode.uk/purchaseorders/...
Смотрите видео Maintaining Tax Rates - Update and Delete - Blazor Purchase Orders Part 6 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Christopher Bell 18 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,025 раз и оно понравилось 17 людям.