Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Custom collection support broken in EF6 beta1

$
0
0
@sgifford Thanks for reporting this! I have created the following work item for it: https://entityframework.codeplex.com/workitem/1566

The workaround is to set the navigation property in the entity constructor so that EF will not attempt to create an instance of the custom collection class. For example:
class MyMasterObject 
{
  public MyMasterObject 
  {
    Details = new MyCollection();
  }
 
  public virtual MyCollection Details   { get; set; } 
} 

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>