I would like to have the following to be translated to VB 2010 (with advanced syntaxes)
_domainContext.SubmitChanges(
submitOperation =>
{
_domainContext.Load<Customer>(
_domainContext.GetCustomersQuery(),
LoadBehavior.RefreshCurrent,
loadOperation =>
{
var results = _domainContext.Customers.Where(
entity => !loadOperation.Entities.Contains(entity)).ToList();
results.ForEach( enitity => _domainContext.Customers.Detach(entity));
}, null);
}, null);
I managed to get the above with other ways (but not using anonymous methods). I would like to see all the advanced syntaxes available in VB 2010 to be applied to the above.
Can anyone help me on this?
thanks