CodeSmith Community
Your Code. Your Way. Faster!

Fieldname bug at Mapping.config file

Latest post 06-19-2007 6:28 AM by swin. 1 replies.
  • 06-19-2007 4:53 AM

    • geochatz
    • Top 500 Contributor
    • Joined on 09-18-2006
    • Piraeus, Greece
    • Posts 13
    • Points 365

    Fieldname bug at Mapping.config file

    After the last update and the refactoring of the naming functions I am using the Mapping.config file but I have the following bug. I have a Table in the DB with the name DMenu and with fields

    MenuID , MenuGroupID, Params (and some other).

    My Mappings.config file is like that :
    <Table Id="DMenu" EntityName="DMenu" Owner="dbo" PropertyName="DMenu" FieldName="dmenu" FriendlyName="Dmenu" IncludeInOutput="true">
            <Column Id="MenuID" CSType="System.Decimal" PropertyName="MenuID" FieldName="menuId" FriendlyName="Menu Id" IncludeInOutput="true" />
            <Column Id="MenuGroupID" CSType="System.Decimal" PropertyName="MenuGroupID" FieldName="menuGroupId" FriendlyName="Menu Group Id" IncludeInOutput="true" />
            <Column Id="Params" CSType="System.String" PropertyName="Params" FieldName="parrams" FriendlyName="Params" IncludeInOutput="true" />
    </Table>

    As you can see above the FiedName for the column Params is parrams (with double r) as the word params is a reserved word and can't be used as a variable name. But when I am building NetTiers files the generated file use the word params in the constructor of the Entity which is wrong and produce a compilation error. Can you please check it?
     

    Sex is like programming; one mistake and you must support it forever...
    • Post Points: 35
  • 06-19-2007 6:28 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 924
    • Points 34,750

    Re: Fieldname bug at Mapping.config file

    Thanks for reporting this problem.

    Fixed in SVN576

    swin 

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