Skip to content
#

ASP.NET

aspnet logo

ASP.NET is an open source web framework for building modern web apps and services with .NET. ASP.NET creates websites based on HTML5, CSS, and JavaScript that are simple, fast, and can scale to millions of users.

Here are 702 public repositories matching this topic...

michalsznajder
michalsznajder commented Feb 22, 2022

In section for Complex types I think this sentence

For each property of the complex type, model binding looks through the sources for the name pattern prefix.property_name. If nothing is found, it looks for just property_name without the prefix.

is not 100% correct.

If a query like ?Instructor.Id=100&Name=foo is bound to method void OnGet(Instructor instructor) than resulting obj

Good first issue Source - Docs.ms doc-enhancement
server
Areedtz
Areedtz commented May 29, 2021

Describe the Bug

Sending invalid GUIDs to API endpoints will cause them to return an error code "500 Internal Server Error".

Steps To Reproduce

  1. HTTP DELETE to API endpoint such as /api/emergency-access/ with invalid GUID like "asd"

Expected Result

Endpoint returns a "400 Bad Request"

Actual Result

Endpoint returns a "500 Internal Server Error"

Environment

BaGet
loic-sharma
loic-sharma commented Jan 21, 2020

Bug

If BaGet is started in debug mode it will log:

dbug: Microsoft.EntityFrameworkCore.Model.Validation[10600]
      The property 'PackageKey' on entity type 'PackageDependency' was created in shadow state because there are no eligible CLR members with a matching name.
dbug: Microsoft.EntityFrameworkCore.Model.Validation[10600]
      The property 'PackageKey' on entity type 'Packa

Created by Microsoft

Released January 2002

Website
asp.net
Wikipedia
Wikipedia