CodeSmith Community
Your Code. Your Way. Faster!

GenereicTypeConvert build problem.

Latest post 12-12-2006 9:30 AM by mike123. 2 replies.
  • 12-11-2006 4:17 PM

    • WeroCool
    • Not Ranked
    • Joined on 12-11-2006
    • Posts 2
    • Points 50

    GenereicTypeConvert build problem.

    I've used the default template (NetTiers.cst) in order to generate the coding for a SQL Server 2005 database.
    The template compiles sucessfully around 300 files, but when I try to compile the result into dll (Data, Entity), the following errors.

     It seems the class Entities.GenericTypeConvert.cs tries to overide a missing parent method.

    Error 1 PPP.Entities.GenericTypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, PPP.Entities.Type)': no suitable method found to override C:\NetTiers\PPP\PPP.Entities\GenericTypeConverter.cs 26 24 PPP.Entities
    Error 2 'PPP.Entities.GenericTypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, PPP.Entities.Type)': no suitable method found to override C:\NetTiers\PPP\PPP.Entities\GenericTypeConverter.cs 37 26 PPP.Entities

     Any help would be appreciated, thanks.

    • Post Points: 5
  • 12-12-2006 12:16 AM In reply to

    • WeroCool
    • Not Ranked
    • Joined on 12-11-2006
    • Posts 2
    • Points 50

    Re: GenereicTypeConvert build problem.

    It seem to have problem with table named "Type" and "Attribute".

    • Post Points: 35
  • 12-12-2006 9:30 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 735
    • Points 17,045

    Re: GenereicTypeConvert build problem.

    Reply |Contact |Answer

    WeroCool,

    To avoid naming collusion use alias.txt file to map your entities to their aliases like following:

    Type:MyType

    Attribute:MyAttribute

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

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