mardi 10 mars 2015

Issue with 2-way data binding to winforms datagrid and entity framework 6 when using inheritance

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.


How do you add a new record when using EF 6.0 in VS 2013 C# and trying to data bind a grid to an inherited EF object?


Aucun commentaire:

Enregistrer un commentaire