یک مثال دیگر متداول آن، استفادهی از آن در EF Code first است:
در اینجا تنظیمات مهاجرتها در داخل یک سازندهی استاتیک قرار گرفتهاست. به این ترتیب این تنظیم در اولین باری که قرار است اولین وهلهی این کلاس ساخته شود، انجام خواهد شد و دیگر تکرار نمیشود.
public class ProjectsContext : DbContext { //the static constructor runs a single time with the first instance of a class static ProjectsContext() { Database.SetInitializer(new CreateDatabaseIfNotExists<ProjectsContext>); } }
اشتراکها
کتابخانه jquery-form-validation
The jQuery form validation plugin unifies the way to validate HTML
forms using JavaScript.
It is a simple clientside library that will save you a lot of time when
it comes to adding validation on your HTML form inputs or selects! Demo
اشتراکها
داستان مخزن کد Definitely Typed
اشتراکها
چک لیستی برای طراحی API
اشتراکها
مقایسهی Blazor و Vue
If you're comfortable with JavaScript and the ecosystem, Vue is a solid framework which can easily scale up or down as your application requires.
On the other hand, if you already know and enjoy using C#, and have generally found JavaScript (the language and ecosystem) difficult to learn and live with, Blazor WASM is potentially a game changer.
اشتراکها
کتابخانه amplitudejs
A JavaScript library that allows you to control the design of your
media controls in your webpage -- not the browser. No dependencies
(jQuery not required) Demo
نسخه نهایی Blazor WebAssembly 3.2.0 تا اواسط ماه May 2020 (ماه جاری) منتشر میشود
The Blazor WebAssembly Release Candidate is here! This release contains all of the features and improvements that we expect to release for the upcoming Blazor WebAssembly release. There are no more breaking changes planned at this point.