Support entity type members defined through default interface implementation
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
### What problem are you trying to solve?
First of all thanks for your work, efcore is very powerful!
If you define indexer properties only in the interface of the entity implementation, the ModelBuilder IndexerProperty method will report an error.
``` csharp
public interface IHasIndexerProperties
{
protected virtual Dictionary Data=>new Dictionary();
public virtual object this[string key]
{
get=>Data[key];
set=>Data[key]=value;
}
}
public class Blog:IHasIndexerProperties
{
public string Url{get;set;}
}
modelBuilder.Entity().IndexerProperty("VisitCount"); // exception occurred
```
### Describe the solution you'd like
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.