<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Oracle schema name</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Oracle schema name</description>
  <pubDate>Fri, 10 Apr 2026 20:25:41 -700</pubDate>
  <lastBuildDate>Fri, 28 Sep 2012 01:44:54 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3674</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Oracle schema name : Sounds like a good solution. Glad...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14652#14652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 28-Sep-2012 at 1:44am<br /><br />Sounds like a good solution. Glad you got it sorted out.]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 01:44:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14652#14652</guid>
  </item> 
  <item>
   <title>Oracle schema name :   Thanks for your input, it...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14651#14651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 28-Sep-2012 at 1:39am<br /><br />Thanks for your input, it helped point me in the right direction.<div>&nbsp;</div><div>As it turnes out it wasn't at all that dificcult. In the IDataSourceKeyResolver implementation, where I create the ClientEdmKey with correct user credentials, I also&nbsp;change the SSDL reference in the connection string.&nbsp;I grab the original&nbsp;single SSDL file&nbsp;built with the project, creates a copy, replaces the schema name in the copy, and finally inserts a reference to the copy in the connection string.</div><div>&nbsp;</div><div>With this solution we can dynamically add new customers and schemas to the database, update a single configuration file, and the application will automatically adapt to the new schema at logon time. We don't have to manually maintain and update multiple SSDL files.</div><div>&nbsp;</div><div>Mikael</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 28 Sep 2012 01:39:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14651#14651</guid>
  </item> 
  <item>
   <title>Oracle schema name :   No, you don&amp;#039;t have to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14649#14649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 27-Sep-2012 at 11:10pm<br /><br />No, you don't have to rebuild the application each time. The csdl/msl/ssdl can be outside the assembly anywhere in the file system.<div>&nbsp;</div><div><a href="http://msdn.microsoft.com/en-us/library/cc716756.aspx" target="_blank"><u><font color="#0066cc">http://msdn.microsoft.com/en-us/library/cc716756.aspx</font></u></a></div><div>&nbsp;</div><div>Yes, this is a consequence of the inner working of EF.</div>]]>
   </description>
   <pubDate>Thu, 27 Sep 2012 23:10:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14649#14649</guid>
  </item> 
  <item>
   <title>Oracle schema name :   We will have toupdate and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14648#14648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 27-Sep-2012 at 11:03pm<br /><br />We will have to&nbsp;update and rebuild the application each time we add a new customer and database schema then...<div>&nbsp;</div><div>For SQL Server there is no problem with having the schema name constant, since you have the concept of catalogs to manage&nbsp;different databases within one single server instance. With Oracle there is&nbsp;only one database for a single server instance, and hence we&nbsp;need to vary the schema name to select which data to work with.</div><div>&nbsp;</div><div>If I understand correctly this is not directly related to DF, but actually a consequence of the inner working of EF. I'll follow it up with Microsoft/Oracle&nbsp;regarding EF instead, and post any findings&nbsp;here later.</div><div>&nbsp;</div><div>Thanks anyway,</div><div>Mikael</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 27 Sep 2012 23:03:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14648#14648</guid>
  </item> 
  <item>
   <title>Oracle schema name : You have to create seperate storage...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14638#14638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 27-Sep-2012 at 7:04am<br /><br />You have to create seperate storage models for each schema, the SSDL part of an edmx. As you discovered, the schema name is part of the mapping and cannot be changed. The only way to change it at runtime is to reference the correct storage model in the connection string, provided you previously created and deployed a storage model for the schema name in question.<DIV></DIV><DIV>&nbsp;</DIV><DIV>Different schema names is a pretty bad idea with an ORM unless you don't mind maintaining multiple mappings.</DIV>]]>
   </description>
   <pubDate>Thu, 27 Sep 2012 07:04:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14638#14638</guid>
  </item> 
  <item>
   <title>Oracle schema name :   I have a SL5/DF2012 projectbased...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14637#14637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1256" rel="nofollow">mikke63</a><br /><strong>Subject:</strong> 3674<br /><strong>Posted:</strong> 27-Sep-2012 at 6:48am<br /><br />I have a SL5/DF2012 project&nbsp;based on an Oracle database. The model is generated from an Oracle development server&nbsp;and a schema (Oracle user) named dev. Running the app against the default connection string is ok.<div></div><div>In production another database server&nbsp;will be used, as well as different schema names (we have&nbsp;one separate schema for each customer). All schemas&nbsp;of course have identical table definitions.</div><div>&nbsp;</div><div>I have succesfully created&nbsp;an implementation of&nbsp;<font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">IDataSourceKeyResolver </font></font>that&nbsp;returns a ClientEdmKey&nbsp;with the approriate connection string to switch between&nbsp;development and&nbsp;production servers, as well as log in with different credentials. What I am NOT able to do is to select the correct schema. Every query I make&nbsp;tries to address the dev schema which the model initially was created from.&nbsp;I can see that this schema name is&nbsp;stored in the&nbsp;edmx file&nbsp;for each table.</div><div>&nbsp;</div><div>How can I dynamically change the schema at run time&nbsp;like I can change server and credentials?</div><div>&nbsp;</div><div>Mikael</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 27 Sep 2012 06:48:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3674&amp;PID=14637#14637</guid>
  </item> 
 </channel>
</rss>