none
Changing the type of collection navigation properties to ObservableCollection RRS feed

  • Question

  • Hi,

    I am using Entity Framework 4.1, Database first and the DbContext API

    I noticed that collection navigation properties of the entities generated with the DbContext T4 template are declared as ICollection.

    To fully use the binding support of WPF I changed the type from ICollection to ObservableCollection. This works great.

    My question is: Are there any consequences from this change that I need to know of?

    Thanks,

    Michel Miranda

    Friday, August 12, 2011 10:35 AM

Answers

All replies