JSON Field Language is designed to translate JSON into SELECT clause in Linq.

Format

Query => '{' ( 'Field':'' | 'Alias' : 'Field'  ) * '}'

Example


    {
         'AccountID': '',
         'AccountName': '',
         'BrokerName': 'Broker.AccountName'
    }

      Accounts.Select( x=> new {
            x.AccountID,
            x.AccountName,
            BrokerName = x.Broker.AccountName
      });

Last edited May 28, 2013 at 7:07 PM by neurospeech, version 1

Comments

No comments yet.