EF5 Code First (Error cannot be inferred from the usage)
问题 Ok, I have been pulling out my hair because I simply cannot make a many to many relationship. I have the following two models: public class UserProfile { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int UserId { get; set; } public string UserName { get; set; } public string CompanyName { get; set; } public string FirstName { get; set; } public string Lastname { get; set; } public string EmailAddress { get; set; } public string PhoneNumber { get; set; } public