اشتراک‌ها
بررسی تغییرات ASP.NET Core در NET 8 Preview 7.

Here’s a summary of what’s new in this preview release:

Servers & middleware
  Antiforgery middleware
API authoring
  Antiforgery integration for minimal APIs
Native AOT
  Request Delegate Generator supports interceptors feature
  Full TrimMode is used for web projects compiled with trimming enabled
  WebApplication.CreateEmptyBuilder
Blazor
  Antiforgery integration
  Server-side form handling improvements
  Auto render mode
  Register root-level cascading values
  Improved integration of interactive components with server-side rendering
  New EmptyContent parameter for Virtualize
Identity
  New bearer token authentication handler
  New API endpoints
Single page apps (SPA)
  New Visual Studio templates
 

بررسی تغییرات ASP.NET Core در NET 8 Preview 7.
نظرات مطالب
Blazor 5x - قسمت 14 - کار با فرم‌ها - بخش 2 - تعریف فرم‌ها و اعتبارسنجی آن‌ها
یک نکته‌ی تکمیلی: Blazor، حساس به بزرگی و کوچکی حروف است
در حین تعاریف المان‌های فرم‌ها ممکن است بجای InputCheckbox بنویسیم InputCheckBox؛ در یک چنین حالتی خطای کامپایلر بسیار عمومی زیر را دریافت خواهیم کرد:
The attribute names could not be inferred from bind attribute 'bind-value'. 
Bind attributes should be of the form 'bind' or 'bind-value' along with their 
corresponding optional parameters like 'bind-value:event', 'bind:format' etc.
دلیل دیگر آن می‌تواند فراموش کردن یک using@ باشد. اگر کامپوننتی در فضای نام خاصی تعریف شده، ذکر using آن نباید فراموش شود. در کل اگر Blazor نتواند المان تعریف شده را شناسایی کند (به علت اشتباه تایپی و یا فراموش کردن ذکر فضای نام آن)، خطای فوق صادر می‌شود.