The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Column names that start with a number.

Last post 08-13-2008, 11:05 AM by Jeremy. 2 replies.
Sort Posts: Previous Next
  •  08-13-2008, 9:55 AM 10728

    Column names that start with a number.

     

    Hello all,

    I know it's a bad idea, but I am not in control of our database. We have a column name that is named "1stYear". When I generate code, I get a compile error because it's trying to create a property that starts with a number. Is there any way around this that does not include changing the column name in the database?

  •  08-13-2008, 10:26 AM 10730 in reply to 10728

    Re: Column names that start with a number.

    You can alias any table or column name in EntitySpaces, without having to touch the database schema.

    http://community.entityspaces.net/forums/thread/3168.aspx


    David Neal Parsons
    www.entityspaces.net
  •  08-13-2008, 11:05 AM 10732 in reply to 10730

    Re: Column names that start with a number.

    Thank you very much! :)
View as RSS news feed in XML