Things That I Still Totally Do Not Understand in ASP.NET Core
builder . Services . AddScoped < T , U > ( ) ;
builder . Services . AddScoped ( factory ) ;
builder . Services . AddDistributedMemoryCache ( ) ;
builder . Services . AddSingleton < T , U > ( ) ;
builder . Services . AddSession ( ) ;
app . UseSession ( ) ;
private readonly StoreDBContext context ;
public IQueryable < T > QueryableCollection => context. Collection;
public ViewResult Route < T > ( params T [ ] args ) { }
public IActionResult Route < T > ( params T [ ] args ) { }
ViewBag . DynamicProperty = SomeValue ;
< input asp-for ="Property " />
< div asp-validation-summary ="All " />
< form asp-action ="Action " />
< a asp-controller ="Controller " />
[ Fact ]
public void CanPassTest ( ) { }
public IViewComponentResult Invoke ( ) { }
context . AttachRange ( collection ) ;
collection1
. Include ( collection => collection2 )
. ThenInclude ( collection => collection3 ) ;
@page PageName
@model ModelName
@functions {
[BindProperty(SupportsGet = true)]
public T? Property { get; set; }
}