Korzh.com developer tools forums :: View topic - Change displayed table names
Korzh.com
home : Community forums  FAQFAQ   SearchSearch  |  RegisterRegister  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Change displayed table names

 
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET
View previous topic :: View next topic  
Author Message
arthur_daily
Novice


Joined: 24 Apr 2009
Posts: 2

PostPosted: Fri Apr 24, 2009 11:44 am    Post subject: Change displayed table names Reply with quote

I want to change the name of the tables being displayed in the pop ups to more user friendly names.

My datamodel XML:

<TABLES>
<TABLE NAME="Customers" ALIAS="Customers" CAPTION="k" SCHEMA="" DB="" HINTS="" QUOTE="False" DSGNLAYOUT="" />
<TABLE NAME="DN" ALIAS="DN" SCHEMA="" DB="" HINTS="" QUOTE="False" DSGNLAYOUT="" />
</TABLES>

Is there an attribute that will allow my to specify a different name?
Back to top
View user's profile Send private message
Sergiy
Guru


Joined: 07 Nov 2005
Posts: 389

PostPosted: Wed May 06, 2009 12:24 pm    Post subject: Reply with quote

Actually they are not "table" names but entity names. In most cases each entity in your data model corresponds to some table but it is not a requirement: you can combine the fields from several tables into one entity or create new entity which does not correspond to any table.

So, to rename some entity you just need to open your data model in Data Model Editor, select necessary entity on "Entities" page and change its caption.
_________________
With the best regards, Sergiy Korzh.
Back to top
View user's profile Send private message
arthur_daily
Novice


Joined: 24 Apr 2009
Posts: 2

PostPosted: Wed May 06, 2009 12:28 pm    Post subject: Reply with quote

Is there a way of manually editiing the XML without the editor? I'm using SQL 2005 Express on my development machine and the editor does not like the connection string.
Back to top
View user's profile Send private message
Sergiy
Guru


Joined: 07 Nov 2005
Posts: 389

PostPosted: Wed May 06, 2009 12:37 pm    Post subject: Reply with quote

1. Try to connect using another connection string then you use in your program (e.g. through OleDB or ODBC). This connection will be used only in Data Model Editor - so you do not need to use it in you program.

2. If your model is created already - then you do not need a connection to modify it by Data Model Editor.

3. Data model is stored into usual XML file so you can edit it in any text editor (e.g Notepad).
_________________
With the best regards, Sergiy Korzh.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group