From discussion with @divega and @ajcvickers. We would like to support Entity classes with indexers:
public class SomeEntity
{
public object this[string propertyName]
{
get
{
// get value of property named propertyName
}
set
{
// set value of property named propertyName
}
}
}
You can then declare an indexed property in OnModelCreating() and have EF use the indexer to access that property, instead of expecting a member. (Note: this addresses parts of issues #2968 and #9914).