Hi,
I try to use lazy loading from hibernate and WCF. Now i know i first must get ride of the prox's.
so i got :
Code:
SessionFactory.CloseSession();
f.LocalVariables = null;
f.Nodes = new HashedSet<FlowchartNode>();
f.Notes = new HashedSet<Note>();
f.TypeIdentifier = null;
f.Type = FlowchartType.Interaction;
OpenFlowchartMessageResponse response = new OpenFlowchartMessageResponse()
{
//Flowchart = new Flowchart() { Name = "boom", Id = 1, Description = "bla" },
Flowchart = f, Nodes = null
};
return response;
things like LocalVariables aren't even data member.
when i use this the callback event in the silverlight application is never called. When use Flowchart = new Flowchart() { Name = "boom", Id = 1, Description = "bla" },
and comment out Flowchart = f it works. The only differance i see is the proxy class of the FLowchart; is there a way to get rid of that thing?