Has column type of complex type in ef core 2.0
问题 I want to change column type of property using fluent api, but i have an error The expression 'x => x.NestedProp.Prop1' is not a valid property expression. The expression should represent a property access: 't => t.MyProperty'. please, i dont want to use DataAnnotations Here is my code (Classes): public class Class1 { public int Id { get; set; } public NestedProp NestedProp { get; set; } = new NestedProp(); } public class NestedProp { public decimal Prop1 { get; set; } } And OnModelCreating: