如何将实体集合设置为空?我尝试过这样的事情
user.movies = new List<movie>();
但我收到此错误:
Cannot implicitly convert type 'System.Collections.Generic.List<MvcApplication2.dal.movie>' to 'System.Data.Objects.DataClasses.EntityCollection<MvcApplication2.dal.movie>'
如何将实体集合设置为空?我尝试过这样的事情
user.movies = new List<movie>();
但我收到此错误:
Cannot implicitly convert type 'System.Collections.Generic.List<MvcApplication2.dal.movie>' to 'System.Data.Objects.DataClasses.EntityCollection<MvcApplication2.dal.movie>'