the login works flawlessly, but now im facing this when trying to retreive data using the following code
Backendless.Persistence.Of<Restaurants>()
.Find(dataQueryBuilder, new AsyncCallback<IList<Restaurants>>(response =>
{
Console.WriteLine("Found IT");
},
fault =>
{
Console.WriteLine(fault.Message);
}));
}
but in my output i only get
Cannot create an instance of an interface.
any help would be appreciated
Hi Ibrahim,
Try changing IList in the AsyncCallback generic to a concrete collection class, say ArrayList:
Backendless.Persistence.Of<Restaurants>()
.Find(dataQueryBuilder, new AsyncCallback<ArrayList<Restaurants>>(response =>
{
Console.WriteLine("Found IT");
},
fault =>
{
Console.WriteLine(fault.Message);
}));
}
Regards,
Mark
How do i change it the AsyncCallback genric to a concrete collection , i tried the code you posted it just gave “Cannot convert error” , i know i should wait for the Docs to be uploaded ,
Hi Ibrahim,
I was able to reproduce the problem. There is an updated assembly at:
https://github.com/Backendless/.NET-SDK/blob/4.0/Backendless/Bin/NET_40/Debug/Backendless.dll
Please download and give it a try.
Regards,
Mark
Hello Mark
thank you for replaying to me and helping me , and it works like a charm now i’ll keep trying other stuff and report back if i found anything else,
honestly Extraordinary work from Backendless
thanks again
Ibrahim