Skip to content

Remove GetValueGenerationStrategy overload with ITypeMappingSource parameter #26671

@dmitry-lipetsk

Description

@dmitry-lipetsk

EF 6.0.

Current declaration of ITypeMappingSource::FindMapping(property) requires reference to IProperty.

new RelationalTypeMapping? FindMapping(IProperty property);

As result, in some code need cast resference of IReadOnlyProperty to IProperty.

For example:

?? typeMappingSource?.FindMapping((IProperty)property))?.Converter;

This cast looks as a problem in interface design.


If I understand everything correctly, IReadOnlyProperty interface is enough for ITypeMappingSource::FIndMapping(property).

Or no?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions