اشتراک‌ها
روش صحیح استفاده از ASP.NET Identity، بدون وابستگی Domain و سایر لایه ها به آن

The Problem

What they neglect to say is all that testability and persistence ignorance flies right out the window when you create a new ASP.NET Web Application using the MVC template and "Individual User Accounts" authentication. What you get is a single-layered application, tightly coupled to Entity Framework, that:

  • Ignores the patterns that facilitate testing, including: the repository pattern, unit of work pattern, and dependency injection;

  • Forces you to implement their IUser interface in your application’s User entity, thereby coupling it to ASP.NET Identity;

  • Eliminates any clear separation between your entities, persistence concerns, and business logic. Persistence ignorance? Forget about it.

Thankfully, due to the extensibility designed into ASP.NET Identity, it is possible to ditch the reference to the Microsoft.AspNet.Identity.EntityFramework assembly and write a custom implementation that can address these and other architectural issues. Just be forewarned: it is not a trivial undertaking, and you’ll have to put up with some code smell that is baked into the Microsoft.AspNet.Identity.Core assembly. 

روش صحیح استفاده از ASP.NET Identity، بدون وابستگی Domain و سایر لایه ها به آن
اشتراک‌ها
کتاب رایگان Eloquent JavaScript

Licensed under a Creative Commons attribution-noncommercial license. All code in this book may also be considered licensed under an MIT license 

کتاب رایگان Eloquent JavaScript
اشتراک‌ها
لیست تغییرات جدید ASP.NET Core 5.0

عناوین برخی از امکانات و بهبود ها

  • MVC model binding improvements, including support for C# 9 record types
  • Blazor Server & Blazor WebAssembly support and improvements
  • Built-in OpenAPI and Swagger UI support for Web APIs
  • SignalR Hub filters and parallel Hub invocations
  • Azure AD authentication with MIcrosoft.Identity.Web
  • Auto browser refresh with dotnet watch
  • HTTP/2 and gRPC performance improvements 
لیست تغییرات جدید ASP.NET Core 5.0