title: ObjectDataSource databinding: Getting object properties following Select Method call
body: <p>I am using an ObjectDataSource control to call a MapInfo object. This object has two properties:</p>
  
  <ul>
  <li>public IList Visits</li>
  <li>public int TotalAvailable</li>
  </ul>
  
  <p>The select method returns an IList but the TotalAvailable property is also populated. I have set the TypeName in the ObjectDataSource to the MapInfo object but because the Select method only returns the IList I don't have access to the TotalAvailable. </p>
  
  <pre><code>[DataObject(true)]
  public sealed class MapInfo
  {
      private IList&lt;Visit&gt; visits;
      private int totalCount;
  
      public IList&lt;Visit&gt; Visits
      {
          get
          {
              if (visits == null)
                  visits = new List&lt;Visit&gt;();
              return visits;
          }
          set
          {
              visits = value;
          }
      }
  
      [DataObjectMethod(DataObjectMethodType.Select)]
      public IList&lt;Visit&gt; GetAccountVisits(DateTime startdate, DateTime enddate, string orgids, int reportlevel,
           string username, int authlevel, bool visited, bool notvisited, string accounttypeid)
      {
  </code></pre>
  
  <p>}</p>
  
  <p>Is there any way to access this value. I know it is being populated in the MapInfo object but all that gets returned from the Select method is the IList</p>