For example, with model:
public class Product
{
public int ID { get; set; }
public Supplier Supplier { get; set; }
}
public class Supplier
{
public int ID { get; set; }
public Address Address { get; set; }
}
public class Address
{
public Location Location { get; set;}
}
public Location Location
{
public double Long { get; set; }
public double Lat { get; set; }
}
When Product by ConventionModelBuilder, it will create Address and Location as entity type instead of complex type
Comments: No longer repro
public class Product
{
public int ID { get; set; }
public Supplier Supplier { get; set; }
}
public class Supplier
{
public int ID { get; set; }
public Address Address { get; set; }
}
public class Address
{
public Location Location { get; set;}
}
public Location Location
{
public double Long { get; set; }
public double Lat { get; set; }
}
When Product by ConventionModelBuilder, it will create Address and Location as entity type instead of complex type
Comments: No longer repro