Same rule applies don't autobind. You end up with 1-5 connections open on
the database. Do your own mapping and binding away from the EF objects.

If you don't make the break from the bound objects, you have to deal with
objects that have been disassociated from their context and are stale.

As ever datalayer is for connecting to the database and translating to and
from your private objects.

Davy.
Ps. My current team went against my advice and now are feeling the pain.
Lucky i have nothing to do with that part of the code.

Sent from my starfleet datapad.

On 7 nov. 2013, at 00:04, Kirsten Greed <[email protected]> wrote:

 I am using Entity Framework with Winforms
I have set up my object as a data source and would like to do a sales order
maintenance screen.

Can I use BindingSource and BindingNavigator controls in this scenario?

With my VB6 legacy code i learned not to use them, however I want to try
again with VS2012 and C#
Thanks
Kirsten

Reply via email to