title: How to use EzAPI FlatFile Source in SSIS?
body: <p>I am using the EzAPI to create a dataflow with FlatFile Source</p>
  
  <pre><code>public class EzOleDbToFilePackage : EzSrcDestPackage&lt;EzFlatFileSource, EzFlatFileCM, EzOleDbDestination, EzSqlOleDbCM&gt;
  </code></pre>
  
  <p>Using the example from <a href="http://blogs.msdn.com/b/mattm/archive/2008/12/30/ezapi-alternative-package-creation-api.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/mattm/archive/2008/12/30/ezapi-alternative-package-creation-api.aspx</a> I am trying to use a flat file source. However in the flat file source/connection I am unable to map the columns from the flat file. </p>
  
  <p>Is there something like Dest.DefineColumnsInCM() for the zFlatFileSource? </p>
  
  <p>In the BIDM when I open the created package, I see that the EzFlatFileCM is saying Columns are not defined for this connection manager. As soon as I click on Columns it automatically detects everything and the error goes away. What method do I need to call in my code to get the EzFlatFileSource to automatically pick these columns up? </p>