Configuring Property with a string cannot discover private fields from base class #9603
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
At first, I'd like to sorry for maybe non-descriptive-enough title, but I couldn't think of anything better right now ;)
The problem looks like regression, it used to work with EF Core 1.1.2.
When configuring entity property with a string-name (
Property("propertyName")
) when the given field is a private field in a base class throws an exception inOnModelCreating
method.I've read breaking changes in EF Core 2.0 and also some other articles, but I couldn't find anything mentioning such a change.
The actions that are fixing this behaviour:
Property<string>("propertyName")
Exception message:
Stack trace:
Steps to reproduce
Further technical details
EF Core version: 2.0.0
Database Provider: (e.g. Microsoft.EntityFrameworkCore.InMemory, Npgsql.EntityFrameworkCore.PostgreSQL)
Operating system: Windows 10 Professional 15063.540
IDE: Visual Studio Professional 2017 15.3.2
The text was updated successfully, but these errors were encountered: