in

CodeSmith Community

Your Code. Your Way. Faster!

PrimaryKeys Collection Empty with OracleSchemaProvider

Last post 09-05-2007 12:31 PM by vgutierrch. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-05-2007 12:31 PM

    PrimaryKeys Collection Empty with OracleSchemaProvider

    I want to generate bussines clasess implementing navegability. My database is Oracke 10g, and I´m using the OracleNativeSchemaProvider.

    But when I want to iterate though the PrimaryKeys Collection of the table, this collection is always empty.

    However, I test the same code with SQL Server 2005 and the SqlSchemaProvider and the code work fine.

    The code section is this: 

    <% foreach (TableKeySchema k in SourceTable.PrimaryKeys) {     %>
        <%= k.Name %>, <%= k.PrimaryKeyTable.Name %>, <%= k.ForeignKeyTable.Name %>
    <% } %>

     I suspect a problem with the OracleNativeSchemaProvider. I want to know if exists a solution to this problem or if something wrong in my code.

    Thanks for help.

    vgutierrez 

     

     

     

     

     

    Vidal Antonio Gutiérrez Ch.
    • Post Points: 5
Page 1 of 1 (1 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems