CodeSmith Community
Your Code. Your Way. Faster!

Oracle Schema Provider using System.Data.OracleClient

Latest post 09-05-2007 9:48 PM by vbanda1178. 34 replies.
  • 12-13-2004 2:36 AM In reply to

    • BillS
    • Top 500 Contributor
    • Joined on 07-07-2003
    • Posts 16
    • Points 305

    RE: Oracle Schema Provider using System.Data.OracleClient

    ok now. oops, forgot to rebuild the schema provider dll (since it references SchemaExplorer.DLL in the codesmith directory)

    received this warning on the build. anyone remedy this already or have a recommendation?

    C:\TEMP\OracleNativeSchemaProvider\OracleNativeSchemaProvider.cs(979): 'SchemaExplorer.ViewColumnSchema.ViewColumnSchema(SchemaExplorer.ViewSchema, string, System.Data.DbType, string, int, byte, int, SchemaExplorer.ExtendedProperty[])' is obsolete: 'Please use the constructors that contain the allowDBNull parameter.'

    ViewColumnSchema vcs = new ViewColumnSchema(
    view ,
    reader.GetString(POS_COLUMN_NAME),
    GetDbType(reader),
    reader.GetString(POS_DATA_TYPE),
    GetDBTypeLength(reader),
    reader.IsDBNull(POS_DATA_PRECISION) ? (byte)0 : Convert.ToByte( reader[POS_DATA_PRECISION]),
    reader.IsDBNull(POS_DATA_SCALE ) ? 0 : Convert.ToInt32( reader[POS_DATA_SCALE] ),
    properties);
    • Post Points: 5
  • 01-06-2005 8:10 PM In reply to

    RE: Oracle Schema Provider using System.Data.OracleClient

    I have encountered a problem with the provider that I thought I would share with the CodeSmith community at large.
     
    GetTableKeys incorrectly returns extra data due to a missing join in the SQL statement.  I encountered this problem when examining the ForeignKeyMemberColumns property of the TableKeySchema object and got back 4 columns for my 2-column key.
     
    If you add in the additional condition "and r_cols.position = cols.position" into the WHERE clause, it solves the problem.
     
    Thank you all for the Oracle Provider, and thank you, Eric, for your wonderful product.
     
    Daniel
     
    • Post Points: 5
  • 12-28-2006 4:18 PM In reply to

    • mphafner
    • Not Ranked
    • Joined on 11-21-2006
    • Posts 2
    • Points 20

    Re: RE: Oracle Schema Provider using System.Data.OracleClient

    I was having the same problem as feverts I downloaded the  Unofficial OracleProvider.zip which has a bug evidently...

     gmcelhanon said Unofficial OracleProvider.zip should be updated to the latest version, evidently this never happened

    (too bad, cuz that  would have saved me about 4 hours of blindly wondering what I was doing wrong...)

    none of these files are dated and posts jump around... how is one supposed to know where the most recent version is? I want latest...

    Posting these files in messageboard format makes things difficult for noobs like me...

    Sad frustrating

    • Post Points: 5
  • 05-07-2007 6:44 AM In reply to

    Re: Oracle Schema Provider using System.Data.OracleClient

    Any Newer Version Available ?

    thanks & regards,

     

    • Post Points: 5
  • 09-05-2007 9:48 PM In reply to

    Re: RE: Oracle Schema Provider using System.Data.OracleClient

    The oracle schema provider is working great.

     However, I was tryin' to use the extended properties, but couldn't figure out how to access them from a template.

     For example, I have an authors table in the cmbhs_user schema that I connect to with cmbhs_user login. I can access the table's name and columns ok, but how do I get the following extended property of the authors table. It's the pascal case name "Authors" ?

     insert into cmbhs_user.codesmith_extended_properties
    values ('CMBHS_USER', 'AUTHORS', 'TableSchema', 'PascalCaseName', 'Authors', 'System.String')

    Is it ?

    <%=SourceDatabase.Tables["AUTHORS"].ExtendedProperties["PascalCaseName"].Value %>

     

    • Post Points: 5
Page 3 of 3 (35 items) < Previous 1 2 3 | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems