Entity Framework code first: How to ignore classes
问题 This is similar to questions here and here, but those are old and have no good answers. Let's say I have the following classes: class HairCutStyle { public int ID { get; set; } public string Name { get; set; } } class CustomerHairCutPreference { public int ID { get; set; } public Customer Customer { get; set; } public HairCutStyle HairCutStyle { get; set; } } Let's say my HairCutStyle data is stored in a table in another database (I get it from Paul Mitchell himself). I want to use the