Unknown CS1003 Error
<p>I can't compile my project for code-first migrations in entity framework past a certain point. I am reading in values from xml to populate a table. I have the following code:</p>

<pre><code>        //EnrolmentProgramStartDate

        var programQuery = from r in context.EnrolmentPrograms
                           select r;

        var programList = programQuery.ToList&lt;Entities.MetaData.Enrolment.EnrolmentProgram&gt;();

        resourceName = "LearnLogicElicos_WebApi.SeedData.MetaData.Enrolment.enrolment_program_start_date.xml";
        stream = assembly.GetManifestResourceStream(resourceName);
        xml = XDocument.Load(stream);
        List&lt;Entities.MetaData.Enrolment.EnrolmentProgramStartDate&gt; enrolmentStartdates = new List&lt;Entities.MetaData.Enrolment.EnrolmentProgramStartDate&gt;();

        foreach (var e in xml.Root.Elements("StartDate"))
        {
            DateTime.TryParse((string)e.Element("Start"), out var startDate);

            enrolmentStartdates.Add(new Entities.MetaData.Enrolment.EnrolmentProgramStartDate()
            {
                PrgmCode = (string)e.Element("ProgramCode"),
                StartDate = startDate
            });
        }

        var programStartdateWithFk = (from t1 in enrolmentStartdates
                                      join t2 in programList
                                      on t1.PrgmCode equals t2.PrgmCode
                                      select new Entities.MetaData.Enrolment.EnrolmentProgramStartDate
                                      {
                                          PrgmCode = t1.PrgmCode,
                                          StartDate = t1.StartDate,
                                          EnrolmentProgramFk = t2.PrgmPk
                                      });

        context.EnrolmentProgramStartDates.AddRange(programStartdateWithFk);

        context.SaveChanges();
</code></pre>

<p>I am getting the following error in the output window: <code>Configuration.cs(179,71,179,80): error CS1003: Syntax error, ',' expected</code> but I am not receiving any errors in the error list and I cannot for the life of me see a missing <code>,</code>.</p>

<p>The xml is as follows:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;Starts&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC25&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,2&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC15&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,3,19&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC10&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,4,30&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC5W&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,6,4&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC5R&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,6,4&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC5S&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,6,4&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;DEC5L&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,6,4&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,2&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,8&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,15&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,22&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,29&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;GE&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,2,5&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,2&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,8&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,15&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,22&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,1,29&lt;/Start&gt;
  &lt;/StartDate&gt;
  &lt;StartDate&gt;
    &lt;ProgramCode&gt;ITP&lt;/ProgramCode&gt;
    &lt;Start&gt;2018,2,5&lt;/Start&gt;
  &lt;/StartDate&gt;
&lt;/Starts&gt;
</code></pre>

<p>Could someone please tell me either: a) where the missing comma is, or b) what the real issue leading me to get this error is.</p>

<p>Thanks. </p>