Code first causing required relation to be optional?
问题 public class Client { public Int32 ClientID { get; set; } public virtual ICollection<Inquiry> InquiryManufacturers { get; set; } public virtual ICollection<Product> Products { get; set; } public virtual ICollection<Inquiry> InquiryRetailers { get; set; } } public class Product { public Int32 ProductID { get; set; } public Int32 ClientID { get; set; } public virtual Client Client { get; set; } public virtual ICollection<Inquiry> Inquiries { get; set; } } public class Inquiry { public Int32