EF Core Expression Could Not Be Bound

entity-framework entity-framework-core

Accepted Answer

  I tested with console app you just need to add get and set.

  [Table("WFPP")]
    public class WFPP
    {
        public WFPP()
        {
            AgencyList = new List<PlanningUnit>();
        }

         public int Id { get; set; }

      ///    your are missing get and set 
         public ICollection<PlanningUnit> AgencyList { get; set; }

    }
4
2/28/2017 8:32:17 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow