EF4 Code First: how to add a relationship without adding a navigation property
I believe you always need navigation property on at least one side when using code-first. Then you will be able to map it: public class User { public string UserId { get; set; } public string PasswordHash { get; set; } public bool IsDisabled { get; set; } public DateTime AccessExpiryDate { get; set; } … Read more