You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception message: 'ReferenceOwnershipBuilder' does not contain a definition for 'HasDiscriminator' and the best extension method overload 'RelationalEntityTypeBuilderExtensions.HasDiscriminator<string>(EntityTypeBuilder, string)' requires a receiver of type 'EntityTypeBuilder'
16>Migrations/20190228155115_UpdateDateTimeOffsetToBeNullable.Designer.cs(1265,29): Error CS1929 : 'ReferenceOwnershipBuilder' does not contain a definition for 'HasDiscriminator' and the best extension method overload 'RelationalEntityTypeBuilderExtensions.HasDiscriminator<string>(EntityTypeBuilder, string)' requires a receiver of type 'EntityTypeBuilder'
Stack trace: None
Calling .Owned instead of .Entity for the 2 sub-classes causes the base type to not be picked up, and throws an error when generating migrations. Mapping FeedSetting to its own table will also throw the same compilation problem
EF Core version: 2.2.0-rtm-35687
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Ubuntu 16.10
IDE: Visual Studio Code 1.31.1/Rider 2018.3
May be similar to #13945 and #9148, however, would like to be able to do this. We have currently added in a custom extension method to allow it compile, code works as expected when running.
The text was updated successfully, but these errors were encountered:
I am trying to configure an owned type with inheritance, the domain model being similar to this:
Steps to reproduce
Further technical details
Calling
.Owned
instead of.Entity
for the 2 sub-classes causes the base type to not be picked up, and throws an error when generating migrations. Mapping FeedSetting to its own table will also throw the same compilation problemEF Core version: 2.2.0-rtm-35687
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Ubuntu 16.10
IDE: Visual Studio Code 1.31.1/Rider 2018.3
May be similar to #13945 and #9148, however, would like to be able to do this. We have currently added in a custom extension method to allow it compile, code works as expected when running.
The text was updated successfully, but these errors were encountered: