Even this doesn't help:
foreach (var item in test.Items)
{
var code = db.GeneralNeedTypeDD.Single(s => s.Code == item.Value);
var generalneed = new GeneralNeeds()
{
CaseId = cid,
MemberId = mid,
Type = code,
Comment = item.Comment,
Level = db.LevelTypeDD.SingleOrDefault(x => x.Code == "M"),
Status = db.GeneralNeedStatusDD.SingleOrDefault(x => x.Code == "REC"),