Skip to content

[Breaking change]: ModelMetadataIdentity.ForProperty(Type modelType, string name, Type containerType) is removed #532

Description

@Youssef1313

Description

This API has been marked as obsolete since ASP.NET Core 3.1 in dotnet/aspnetcore#15134. It has been removed in dotnet/aspnetcore#67077.

Version

.NET 11 Preview 7

Previous behavior

The API existed with obsoletion warning.

New behavior

The API no longer exists.

Type of breaking change

  • Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code may require source changes to compile successfully.
  • Behavioral change: Existing binaries may behave differently at run time.

Reason for change

The API was marked obsolete since ASP.NET Core 3.1, with a better alternative overload that accepts PropertyInfo.

Recommended action

Use the ModelMetadataIdentity.ForProperty(PropertyInfo propertyInfo, Type modelType, Type containerType) overload instead.

Affected APIs

  • ModelMetadataIdentity.ForProperty(Type modelType, string name, Type containerType)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions