//Entity Class Library Class Entity { public int value{get; set;} }
// default.aspx.cs using(service1.Execute exe = new service1.Execute()) { service1.Entity ent = new service1.Entity(); ent.value = 10; exe.Run(ent) ; }
//service layer - I use interface while defining contracts for easy understanding i used in a same class [ServiceContract] class Execute { [OperationContract] public void Run(Entity e) { int value = e.value; // i get zero but i set into 10 } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)