This project is read-only.

controlling columns to include in serialization

Topics: Web Api
Nov 14, 2011 at 9:57 AM


Our requirement is during the service call client will specify the columns that he want to include in serialization. Some thing like OData Select query option. Any ideas on this ?


Sri Harsha

Nov 14, 2011 at 10:34 AM

Is Formatters the way to go for doing this ?

Nov 14, 2011 at 10:46 AM

We created a formatter that
uses automapper to convert entities to dtos, that have fewer columns.

/kzu from mobile

On Nov 14, 2011 7:34 AM, "shghanta" <> wrote:

From: shghanta

Is Formatters the way to go for doing this ?

Read the full discussion online.

To add a post to this discussion, reply to this email (

To start a new discussion for this project, email

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at

Nov 14, 2011 at 11:54 AM

In our case client specifies the columns that needs to be included in the serialization. It should not be a static entity.

Nov 14, 2011 at 12:54 PM
Edited Nov 14, 2011 at 12:54 PM

You may consider to use JsonValue as return type.

Due to JsonValue/JonObject dictionary-like structure, it becomes pretty easy to manage "columns" - "properties" within return type

Nov 14, 2011 at 1:01 PM

It solves the problem, but we specifically need it in multiple formats.