I have a class as shown below
public class Survey
{
public Survey()
{
SurveyResponses=new List();
Change the ICollection
public class Survey
{
public Survey()
{
SurveyResponses=new List();
}
[Key]
public Guid SurveyId { get; set; }
public string SurveyName { get; set; }
public string SurveyDescription { get; set; }
public virtual List Questions { get; set; }
public virtual List SurveyResponses { get; set; }
}