Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
/MvcPublic archive
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

ExtendModelMetadata to reduce ugliness #5686

Closed
@dougbu

Description

@dougbu

A couple of potentialModelMetadata additions came up in offline conversations about#5676:

  • haveModelMetadata implementIModelMetadataProvider. This should significantly reduce the shenanigans we have around ensuring bothModelMetadata and its provider are available. E.g.
    • many contexts contain bothModelMetadata andIModelMetadataProvider properties.
    • ModelBinderFactory gets the provider from DI thoughModelBinderFactoryContext contains aModelMetadata property.
    • ExpressionMetadataProvider methods contain bothViewDataDictionary (which hasModelMetadata) andIModelMetadataProvider parameters.
  • add aContainerMetadata property. This seem slightly redundant ifModelMetadata implementsIModelMetadataProvider but would be convenient.
    • Note information about the containingproperty is not static and cannot be maintained inModelMetadata.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp