title: Acumatica Bql with generics C#
body: <p>This is AcumaticaERP specific.  I have created a BaseBlcHelper class that looks like this:</p>
  
  <pre><code>public abstract class BaseBlcHelper&lt;TBlcObject, TDacObject&gt; :
                                                              PXGraph&lt;TBlcObject&gt;,
                                                              IBaseBlcHelper&lt;TDacObject, TDacObject&gt; where TBlcObject : PXGraph
                                                              where TDacObject : class, IBqlTable, new()
  </code></pre>
  
  <p>I've created this class because I'm thinking I can put some shared functionality in there.<br>
  Here is the issue.  When I have a select statement like this:</p>
  
  <pre><code>Vendor next_vendor = (Vendor)PXSelect&lt;Vendor, Where&lt;Vendor.vendor1099, Equal&lt;True&gt;&gt;, OrderBy&lt;Desc&lt;Vendor.acctCD&gt;&gt;&gt;.Select(this);
  </code></pre>
  
  <p>how would you resolve the the TDacObject (generic) object to "Vendor.vendor1099" portion of the query and so on?</p>