Тёмный

Binding select element with database data in Blazor 

kudvenkat
Подписаться 836 тыс.
Просмотров 37 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@sureshm3672
@sureshm3672 3 года назад
Never seen anyone teaching as sincerely as you do Sir!!
@naserabdullahalam
@naserabdullahalam 4 года назад
Exactly what I needed. Thank you soo much. Your tutorials are great, please keep them up. Thank you again.
@Jaracara11
@Jaracara11 3 года назад
Excellent video! Just what I needed!
@yyttommy2456
@yyttommy2456 10 месяцев назад
very Great, thank you
@db81zg
@db81zg 7 месяцев назад
Any idea or recommendation how to avoid null exception when saving data to database for the first time? even though the InputSelect is populated.
@imransdin
@imransdin 3 года назад
really grate sir
@charles-y2z6c
@charles-y2z6c 4 года назад
Thanks this is what I have been waiting for. CRUD too
@coolwaterdvr
@coolwaterdvr 4 года назад
Thanks Venkat. 🙏🙏🙏🙏🙏
@tripleaxray3716
@tripleaxray3716 3 года назад
Is it possible that the InputSelect now support the type System.Int32? I copied all the code in my own test solution, but do not get the error that the InputSelect is not accepting Int32.
@howie806
@howie806 2 года назад
same here. I also tried debugging it and it does change the DepartmentId correctly.
@tripleaxray3716
@tripleaxray3716 2 года назад
@@howie806 It was actually a bug that has been fixed in later releases.
@trustingod0
@trustingod0 4 года назад
You need to do some architecture stuff so we know how to build systems the right way.
@charles-y2z6c
@charles-y2z6c 4 года назад
Ronald This seems like a decent pattern architecture.
@ashishdeora8522
@ashishdeora8522 4 года назад
@@charles-y2z6c No its not. Ideally, we should have folder for each component and a folder to keep components of a module. It's not great in terms of code organization. Repository pattern is always great though.
@charles-y2z6c
@charles-y2z6c 4 года назад
@@ashishdeora8522 Thank you
@MegaChandar
@MegaChandar 4 года назад
Hi Sir, I am facing error "CS1061 'Department' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'Department' could be found (are you missing a using directive or an assembly reference?)" could you please help...
@Sapanpatibandha
@Sapanpatibandha 4 года назад
use FirstOrDefaultAsync method in GetDepartment and ToListAsync() in GetDepartments as following. public async Task GetDepartment(int departmentId) { return await appDbContext.Departments .FirstOrDefaultAsync(d => d.DepartmentID == departmentId); } public async Task GetDepartments() { return await appDbContext.Departments.ToListAsync(); } This will resolve your issue.
@javaguitarist
@javaguitarist 4 года назад
@@Sapanpatibandha Thank you!
@armanx2
@armanx2 4 года назад
Thank you :)
@michaeleasterbrook8996
@michaeleasterbrook8996 2 года назад
Every time he says "in the interest of time" I know I'm in trouble
@mohammedaltahan4703
@mohammedaltahan4703 4 года назад
I think Wep Api should call the services not the opposite.
@conaxlearn8566
@conaxlearn8566 3 года назад
6:50 Wouldn't it be great if InputSelect can accept the options using attributes instead of having to write a foreach loop? Like:
@TysonGibby
@TysonGibby 3 года назад
If you haven't already, you could write your own version of that does take parameters for the options.
@conaxlearn8566
@conaxlearn8566 3 года назад
@@TysonGibby That's a great idea!
@dlmac
@dlmac 4 года назад
Razor front end, not Blazor cshtml. very different and not clear.
@javaguitarist
@javaguitarist 4 года назад
I thought the same thing. Seemed like it should be cshtml.
@amitlimbu5025
@amitlimbu5025 4 года назад
I am just curious why microsoft is promoting blazor when it copies everything from angular. Rather they should work on optimizing razor pages.
@vincentotieno9197
@vincentotieno9197 4 года назад
Because we C# developers don't have the time to learn angular, yet we want to develop web solutions fast... :)
@TysonGibby
@TysonGibby 3 года назад
A great answer to this is Web Assemblies. Angular is a bulky, cumbersome, mass of JS libraries. Blazor is a better user experience in so many ways because of the Web Assembly technology.
@TysonGibby
@TysonGibby 3 года назад
Also, Blazor web assemblies is a literal optimization to Razor pages.
@torrvic1156
@torrvic1156 4 месяца назад
Sorty but Angular looks like shite.
Далее
InputSelect does not support the type System Int32
7:12
Compare validation in blazor
8:55
Просмотров 17 тыс.
Always Help the Needy
00:28
Просмотров 13 млн
DEMONS ARE ATTACKING BRAWL STARS!!!
09:08
Просмотров 15 млн
Blazor data binding
8:15
Просмотров 34 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Blazor route parameters
10:21
Просмотров 37 тыс.
Blazor Forms
18:51
Просмотров 4 тыс.
What is AutoMapper and using it in ASP NET Core
9:03
Microservices with Databases can be challenging...
20:52
Always Help the Needy
00:28
Просмотров 13 млн