SubSonic Forums
All Your Database Are Belong To Us

Providers: includeTableList

Latest post 09-24-2008 11:26 AM by DiverKas. 1 replies.
  • 09-24-2008 9:40 AM

    • reganj
    • Top 500 Contributor
    • Joined on 09-23-2008
    • Posts 5

    Providers: includeTableList

    I'm using the property includeTableList when pulling from a database.  I don't need everything in the "TestAgents" database.  I'm trying to pull just the "Agents" table.

     

    <add name="TestAgents" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="Database"

    includeTableList="Agents" generatedNameSpace="TestAgents" />

     

    For some reason this is not pulling the Agents table but it is pulling an "AgentsView" table and a "AgentsViewController" table.  Any ideas as to why it wont just pull the "Agents" table?

  • 09-24-2008 11:26 AM In reply to

    Re: Providers: includeTableList

    Assuming the Agents table has a primary key, try changing the include list to jsut AGENT.  Convention is that table names should be singular since the plural adds nothing to the definition. It may be looking at the singular version.

    Software Is Like Cathedrals: First we build 'em, then we pray.
Page 1 of 1 (2 items) | RSS