complex-data-types

Complex data types in WCF?

I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'. Is there any way to make this work? I currently have a structure resembling this: pseudo code: Person: IEnumerable<Order> Order: IEnum...

how to use TypeConverters to convert a System.Datetime to custom type

For some reason I need to cast/convert a DateTime into one of many custom objects This proves to be very difficult to do in a nice generic fashion. I am thinking of implementing an extension method on object or perhaps extending DateTimeConverter. But then what would be the generic way to handle this, I have an object and a destinatio...

how do you go about dealing with ajax and Model Binding when complex types are involved?

I would like to keep model binding when doing ajax calls from my view. I'm using jquery ajax to make the calls, and just as an example- this is my controller method I want to call from ajax: public ActionResult Create(Person personToCreate) { //Create person here } As you can see, this method is relying on Model Binding. This make...