I have an issue with data binding and entity framework 6. I've used inheritance in a couple of my classes and I want to do a two-way databind to from a collection of child objects to a winforms datagrid. The DbContext does not expose the child objects when inheritance is used and when I try to cast the parent collection to the child type, I either can't use the ToBindingList method or I lose the sync with the ObservableCollection. My question is pretty much identical to this one but it was never answered.
Aucun commentaire:
Enregistrer un commentaire