How can I send complete IList from application to WCF? Then on the basis of that IList, I want to Save data in Database. For Example:
I have below function in my app.
private IList<Users> UserList() {
}
Now in my WCF i have Below Function
public Void SaveUser(Users U) {
}
Now I want to send whole list of UserList Function from My Application to WCF, and call SaveUser @ WCF.
I can do the whole operation with Loop also by calling SaveUser of WCF withing Loop of my USerList in Application. But due to Performance reasons, I want to avoid this method.
I assume your WCF service currently defines that method as an OperationContract?
You can just add another method that takes a List, or an Array:
This is of course assuming you have control over the WCF service and can add that to its contract.