اشتراکها
ChameleonForms برای ASP.NET MVC
@using (var f = Html.BeginChameleonForm()) { using (var s = f.BeginSection("Signup for an account")) { @s.FieldFor(m => m.FirstName) @s.FieldFor(m => m.LastName) @s.FieldFor(m => m.Mobile).Placeholder("04XX XXX XXX") @s.FieldFor(m => m.LicenseAgreement).InlineLabel("I agree to the terms and conditions") } using (var n = f.BeginNavigation()) { @n.Submit("Create") } }
Routing order can be broken down into the following steps :
Check the Order property (if available).
Order all routes without an explicit Order attribute as follows:
Literal segments.
Route parameters with constraints.
Route parameters without constraints.
Wildcard parameter segments with constraints.
Wildcard parameter segments without constraints.
As a tie-breaker, order the routes via a case-insensitive string comparison.
اشتراکها
آسنکرون Repository
علیرغم تمام مخالفت هایی که با این pattern وجود داره به نظر میرسه که برای پروژههای وب (مخصوصا MVC) پیاده سازی آسنکرونِ این الگو میتونه جوابگو باشه. پیاده سازی دیگری از این الگو رو میتونید اینجا مشاهده کنید.
اشتراکها