THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

question about meta.Catalog in the generated classes

rated by 0 users
This post has 4 Replies | 2 Followers

Top 500 Contributor
Posts 4
bigjoe714 Posted: 04-14-2007 12:39 PM

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

Top 500 Contributor
Posts 4

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

Top 10 Contributor
Posts 1,675
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

Top 500 Contributor
Posts 4

Suh-weet. Thank you.

Top 50 Contributor
Posts 41
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/
Page 1 of 1 (5 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC