how to get the Business Connectivity Services methods collection for an external content type and execute the finder and specific finder methods with Business Connectivity Services object model.
This blog post is the first in a 2 part series which describes how to create a SharePoint 2010 BCS .NET Assembly Connector to read data from a flat file and register it as an external content type in SharePoint