Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: ConventionModelBuilder will add complex type as entity type [342]

$
0
0
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

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>