CodeSmith Community
Your Code. Your Way. Faster!

Provider for VistaDB version 2.1

Latest post 05-26-2006 8:59 PM by John Sheppard. 4 replies.
  • 11-10-2005 3:34 AM

    • John Sheppard
    • Not Ranked
    • Joined on 11-08-2005
    • St. Louis, Missouri
    • Posts 2
    • Points 40

    Provider for VistaDB version 2.1

    I have created a Schema Provider for VistaDB version 2.1.  You must have VistaDB in order to compile/use this provider.  It was compiled against the SchemaProvider that came with v 2.6 of Codesmith.
     
    I have attached both source and the binaries.  I have done some initial testing against existing templates and it looks to be okay.  I plan to do much more extensive testing using NUnit in the near future.  Please let me know if you have any problems or how it is working for you.
     
    John
    • Post Points: 35
  • 02-09-2006 3:29 PM In reply to

    Re: Provider for VistaDB version 2.1

    Hi,

    I just have some problems with the SchemaProvider.

    I wanted to use Peter Walter's Templates for Wilson's ORMapper and get this errors:

     

    System.MissingMethodException: Methode nicht gefunden: Int16 VistaDB.VistaDBColumn.get_ColumnDecimals().
       bei SchemaExplorer.VistaDBSchemaProvider.GetTableColumns(String connectionString, TableSchema table)
       bei SchemaExplorer.TableSchema.get_Columns()
       bei _CodeSmith.MappingFile_cst.IsManyToManyTable(TableSchema table)
       bei _CodeSmith.MappingFile_cst.__RenderMethod1(TextWriter writer, Control control)
       bei CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
       bei CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
       bei CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
       bei CodeSmith.Engine.CodeTemplate.RenderToString()
       bei CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)

     

    Is it possible to solve this problem?

     

    Thank you very much in advance.

    http://www.codeplex.com/PgSqlSchemaProvider
    • Post Points: 35
  • 05-02-2006 1:48 AM In reply to

    • slowram
    • Top 500 Contributor
    • Joined on 02-20-2005
    • Kansas City, Missouri
    • Posts 12
    • Points 265

    Re: Provider for VistaDB version 2.1

    Thank you for the Provider and code.  I've updated the code slightly adding some throw exceptions to help me debug.  I also couldn't figure out why adding the foreign keys kept failing and had to leave that out.  Aside from lacking foreign key relationships it seems to be working in my limited testing which was on the 2 WORM template mapping.config generators.  Note the keytype on those generated mapping.configs needs changed from User to Auto on identity columns.
    I've included the updated .net 2.0 code working with codesmith v3.2.  For those uninterested in updating the code grab the dll out of the bin/release folder and throw it in the Codesmith schemaprovider folder.
    For the connection details just enter the path and filename, it threw me off (hence the debug code aditions) that it doesn't want the datasource= at the start just the path and filename (even simpler - just unexpected in my case).
    • Post Points: 35
  • 05-26-2006 5:37 PM In reply to

    Re: Provider for VistaDB version 2.1

    Hi,

    I've taken the latest source code provided by slowram and updated it with fixes for the foreign key relationships.  Hope this helps someone!

    • Post Points: 35
  • 05-26-2006 8:59 PM In reply to

    • John Sheppard
    • Not Ranked
    • Joined on 11-08-2005
    • St. Louis, Missouri
    • Posts 2
    • Points 40

    Re: Provider for VistaDB version 2.1

    Christian and Slowram,

        Thanks for the additions.  I've been out of the loop for a bit.  I will check out the additions this weekend since I have to work anyway.

     

    John

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