tags:

views:

293

answers:

3
+1  A: 
query.ExecuteAsync(Function(op) op.Results.ForEach(Employees.Add))

also you can do this here: http://www.developerfusion.com/tools/convert/csharp-to-vb/

David
yes I have try it, with the same result :-( I'm Lost..
Iosu
+2  A: 

Starting with 2010, VB10 supports non-functional lambdas.

query.ExecuteAsync(Sub(op) op.Results.ForEach(Employees.Add))
Adam Robinson
also the same erroralready try it,gives errorError 1 Overload resolution failed because no accessible 'ExecuteAsync' can be called with these arguments
Iosu
Can you provide the method definition for `ExecuteAsync`?
Adam Robinson
....using IdeaBlade.Core;using IdeaBlade.EntityModel;namespace SimpleSteps{ public class MainPageViewModel { public MainPageViewModel() { Employees = new ObservableCollection<Employee>(); var mgr = new NorthwindIBEntities(); var query = mgr.Employees; query.ExecuteAsync(op => op.Results.ForEach(Employees.Add)); } public ObservableCollection<Employee> Employees { get; private set; } }}
Iosu
Err, please post it as an edit to your question, not as a comment.
Adam Robinson
A: 

Hi

I found the solution..

query.ExecuteAsync.Results.ForEach(Sub(o) Employees.Add(o))

Hope this helps to others

Iosu