public new HashSet <string> GetSelectedFieldsList() { var hs = base.GetSelectedFieldsList(); if (Smokes.Count > 0 && Smokes.Any(p => p > 0)) { hs.Add("Smokes"); } if (Alcohol.Count > 0 && Alcohol.Any(p => p > 0)) { hs.Add("Alcohol"); } if (Religion.Count > 0 && Religion.Any(p => p > 0)) { hs.Add("Religion"); } if (DickSize.Count > 0 && DickSize.Any(p => p > 0)) { hs.Add("DickSize"); } if (DickThickness.Count > 0 && DickThickness.Any(p => p > 0)) { hs.Add("DickThickness"); } if (BreastSize.Count > 0 && BreastSize.Any(p => p > 0)) { hs.Add("BreastSize"); } return(hs); }
private void SeedSmokes(List <string> list) { using (CatchmeContext context = new CatchmeContext()) { var i = 0; foreach (var item in list) { var smokes = new Smokes(); smokes.Name = item; smokes.ItemId = i; context.Smokes.Add(smokes); i++; } context.SaveChanges(); } }