I have the following class
[DataContract]
public class A
{
private List<B> b= new List<B>();
public float getSum()
{
float sum= 0;
foreach (B b1 in b)
{
sum+= b1.sum;
}
return sum;
}
[DataMember]
public int B
{
get { return b; }
set { b = value; }
}
The function getSum() is domain specific function.
I have wcf service hosted in IIS and wcf client.
In the client I like to use the class A and to call the function getSum().
The function needs to be local call, not remote.
I like to use it this way:
A a = proxy.getA(101);
var1 = a.getSum();
A a1 = new A();
a1.setSomething
proxy.Insert(a1);
How can I do this with wcf ?