Go to file
Pranav K cdae83efae
Use the declared type to infer NullableContextOptions (#15134)
* Use the declared type to infer NullableContextOptions

Prior to this change MVC used the runtime type rather than the declared type to
determine the nullability of a property based on state. In the case of inheritance,
this can be erroneous since the declared type may have a different nullability context
than the model type.

This change addresses this by adding content to `ModelIdentity` that allows inspecting the
declared type.

* Add an overload to `ModelMetadataIdentity` that allows flowing `PropertyInfo`
* Use the declared type in `DataAnnotationsMetadataProvider` to determine nullability based on context.

Fixes https://github.com/aspnet/AspNetCore/issues/14812
2019-10-20 06:30:58 -07:00
.azure/pipelines Merge pull request #14394 from aspnet/Embedded30 2019-10-04 14:19:13 -07:00
.config
.github Update "feature request" GitHub issue template (#11302) 2019-06-24 13:33:02 -07:00
.vscode OpenAPI ServiceReference Tool (#12810) 2019-08-22 11:16:16 -07:00
docs Avoid null refs in BlazorIgntior when Disposed 2019-09-23 14:51:25 -07:00
eng [release/3.1] Update dependencies from 2 repositories (#15183) 2019-10-20 01:28:46 +00:00
src Use the declared type to infer NullableContextOptions (#15134) 2019-10-20 06:30:58 -07:00
.editorconfig
.gitattributes
.gitignore Make a no-op change 2019-07-03 10:37:36 -07:00
.gitmodules
CONTRIBUTING.md
Directory.Build.props Merge branches 2019-10-14 13:21:58 -07:00
Directory.Build.targets Manually add TypeForwardedTo in ref assemblies (#14538) 2019-10-07 21:00:34 -07:00
LICENSE.txt
NuGet.config Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20191017.5 2019-10-17 12:10:50 -07:00
README.md
SECURITY.md
THIRD-PARTY-NOTICES.txt Added Angular 8 license info (#12367) 2019-07-19 21:28:46 -07:00
activate.ps1
activate.sh
build.cmd Update logging to stop masking return code (#11231) 2019-06-14 11:23:55 -07:00
build.ps1 Find or install Tar on CI 2019-09-30 16:09:12 -07:00
build.sh Use stages pipeline (#13040) 2019-09-10 20:43:24 -07:00
clean.cmd
clean.ps1 Change `clean.ps1` (and `clean.cmd`) to restore deleted files after cleaning 2019-07-18 11:21:50 -07:00
clean.sh
dockerbuild.sh Use stages pipeline (#13040) 2019-09-10 20:43:24 -07:00
global.json [release/3.1] Update dependencies from dotnet/arcade (#14982) 2019-10-15 17:16:21 +00:00
packageIcon.png Merge branches 2019-09-24 13:26:49 -07:00
restore.cmd
restore.sh
startvs.cmd

README.md

ASP.NET Core

ASP.NET Core is an open-source and cross-platform framework for building modern cloud based internet connected applications, such as web apps, IoT apps and mobile backends. ASP.NET Core apps can run on .NET Core or on the full .NET Framework. It was architected to provide an optimized development framework for apps that are deployed to the cloud or run on-premises. It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. You can develop and run your ASP.NET Core apps cross-platform on Windows, Mac and Linux. Learn more about ASP.NET Core.

Get Started

Follow the Getting Started instructions in the ASP.NET Core docs.

Also check out the .NET Homepage for released versions of .NET, getting started guides, and learning resources.

How to Engage, Contribute, and Give Feedback

Some of the best ways to contribute are to try things out, file issues, join in design conversations, and make pull-requests.

Reporting security issues and bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

These are some other repos for related projects:

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.