title: FetchXML query issue
body: <p>I have a custom entity called Issue which has a grid linked to a entity Cost To Business, users can add records from Cost To Business to the issue record. I want a overall cost to business field to be auto populated from the items in the grid. I've used a plugin to do this for me. Within the plugin I have constructed the following FetchXML Query to retrieve my data</p>
  
  <pre><code>string fetchxml =
              @"&lt;fetch distinct='true' mapping='logical' output-format='xml-platform' version='1.0'&gt;
                      &lt;entity name='new_issue'&gt;
                          &lt;attribute name='new_issueid'/&gt;
                          &lt;attribute name='new_name'/&gt;
                          &lt;attribute name='createdon'/&gt;
                              &lt;order descending='false' attribute='new_issueid'/&gt;
                              &lt;link-entity name='new_costtobusiness' alias='ab' to='new_issueid' from='new_issue_costid'&gt;
                                  &lt;attribute name='new_costtobusiness'/&gt;                                             
                              &lt;/link-entity&gt;
                      &lt;/entity&gt;
                &lt;/fetch&gt;";
  
              EntityCollection result = service.RetrieveMultiple(new FetchExpression(fetchxml));
              {
                  if (result != null &amp;&amp; result.Entities.Count &gt; 0)
                  {
                      List&lt;string&gt; _product = new List&lt;string&gt;();
  
                      foreach (Entity _entity in result.Entities)//loop through every record
                          {
                              costToBusiness = ((AliasedValue)_entity.Attributes["ab.new_costtobusiness"]).Value.ToString(); 
  
                          }
                      throw new InvalidPluginExecutionException(costToBusiness);
                  }
  
              }
  </code></pre>
  
  <p>However, when I'm calling the Invalid Plugin Execution Exception to view what the query is returning the variable "costToBusiness" is only holding "Microsoft.Xrm.Sdk.Money" and not the actual value which is in the record.</p>
  
  <p>Does anyone know what I've done wrong?</p>