c# - Am I building the wrong entities in MVC? -
goal. have "gift" entity describes has offer (babysitting, dog walking, etc) rating. , want "giftcategory" entity gives general category descriptive information (pets, sports, automotive, etc) search apon , gift have categories. "gift" entity can have multiple "giftcategory" entities associated it. want ability search category , pull out "gift" entities have been created categories associated them. here have far doesn't seem work entity first approach. maybe need table connects 2 entities because way 2 tables connected doesn't seem correct? gift entity: public class gift { public int id { get; set; } public string name { get; set; } public icollection<giftcategory> categories { get; set; } // incorrect??? public int rating { get; set; } } category entity: public class giftcategory { public int id { get; set; } public string name { get; set; } public string description { get; set; } }...