CodeSmith Community
Your Code. Your Way. Faster!

Auto-Naming Convention

Latest post 10-04-2006 1:24 PM by sean_mcad. 2 replies.
  • 10-03-2006 11:15 AM

    Auto-Naming Convention

    It apears I get the words "view" apended to my table names in code. I ask if this is correct becuase my grid which should be a table is still having paging problems which I am looking into. So for example:

    <data:TableNameDataSource ID="nameIwant".....> </data:tableNameDataSource>

    The underlining object when placing a breakpoint for "nameIwant" becomes "nameIwantView". Is this correct or did I do something incorrect for it to add "view" to a table? If it is correct and the object is indeed a table then I have a paging problem I need to look into.

     Thanks

    • Post Points: 35
  • 10-03-2006 4:38 PM In reply to

    Re: Auto-Naming Convention

    Reply |Contact |Answer

    Yes, this is correct, this the just following the archicecture from microsoft with the DataSource controls.  For every datasource, you have a View, which represents the current view for the data you are working with.  Don't confuse this view with an actual sql server view.

     You can find more info in paragraph 2, which i believe was the inspiration Bobby used for the DataSource controls:

    http://www.nikhilk.net/DataSourceControlBasics.aspx
     


    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 35
  • 10-04-2006 1:24 PM In reply to

    Re: Auto-Naming Convention

    Thanks! I know it seems like a silly question but it relates to a different problem so I had to make sure.

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