The EntitySpaces Community

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

question about meta.Catalog in the generated classes

Last post 10-30-2007, 11:38 PM by mfreidge. 4 replies.
Sort Posts: Previous Next
  •  04-14-2007, 12:39 PM 1816

    question about meta.Catalog in the generated classes

    Hi,

    I am using EntitySpaces for a project I am working on.  I have a Test database and a production database.  Both are on the same server.  In order to switch enviornments, I would like to be able to just change the web.config.  However, when I do this, the generated classes throw exceptions because of the meta.Catalog property which is set to the wrong database name (Whichever one I used to generate). How can I get around this?

    Thanks,

    Joe

  •  04-14-2007, 12:46 PM 1817 in reply to 1816

    Re: question about meta.Catalog in the generated classes

    Hi. It's Joe again.

    I commented out meta.Catalog in all the generated classes, and it seems to be fine. Is this recommened or not? Or is there a better way?

    Thanks,

    Joe

  •  04-14-2007, 1:15 PM 1818 in reply to 1817

    Re: question about meta.Catalog in the generated classes

    Any manual changes you make to generated code will, of course, get wiped out with the next regen. On the Advanced tab there are a couple of CheckBoxes to Ignore Schema and Catalog that should accomplish what you want during generation.
    David Neal Parsons
    www.entityspaces.net
  •  04-14-2007, 1:24 PM 1820 in reply to 1818

    Re: question about meta.Catalog in the generated classes

    Suh-weet. Thank you.

  •  10-30-2007, 11:38 PM 6192 in reply to 1818

    Re: question about meta.Catalog in the generated classes

    I think, it will be better to have "Metadata Class Should Ignore Catalog." ticked by default. It will allow to control Catalog name from config file, which is usually preferred option instead of hard-coded. 
    Michael Freidgeim
    Blog: http://geekswithblogs.net/mnf/
View as RSS news feed in XML