In what scenarios do I need foreign keys AND navigation properties in entity framework

asked12 years ago
last updated10 years ago
viewed6.1k times
Up Vote14Down Vote

My Order class has:

public int CustomerId { get; set; }

public Customer Customer { get; set; }

Do I really need both properties to make a relation working?

I am not using disconnected entities, I am using code first approach.