title: Simple CRM 2011 Collections Syntax
body: <p>In CRM 2011, I wish to create a collection of a specific entity. I've tried using the following without luck. It may be my syntax is just off, or I may be using the wrong type of declaration. I am using the Early Bound technique.</p>
  
  <pre><code>DataCollection&lt;SalesOrderDetail&gt; orderDetails = new DataCollection&lt;SalesOrderDetail&gt;();
  </code></pre>
  
  <p>That appears to work with certain types of queries, but not as self-defined. Compilation Error: "The type 'Microsoft.Xrm.Sdk.DataCollection' has no constructors defined"</p>
  
  <p>What is the proper way of defining a generic collection for CRM? After this code block, I build individual a handful of SalesOrderDetail entities, then I want to Add them to the collection:</p>
  
  <pre><code>orderDetails.AddRange(od1, od2, od3);
  </code></pre>
  
  <p>Should I just be using a generic List? I assumed it better to use the SDK methods.</p>