<?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 : prism and moving the designer.cs file to its own project</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : prism and moving the designer.cs file to its own project</description>
  <pubDate>Sun, 19 May 2013 00:57:49 -700</pubDate>
  <lastBuildDate>Wed, 28 Oct 2009 10:15:15 -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=1519</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>prism and moving the designer.cs file to its own project : Why don&amp;#039;t you zip up your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5699#5699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1519<br /><strong>Posted:</strong> 28-Oct-2009 at 10:15am<br /><br />Why don't you zip up your entire solution and send it to us (IdeaBladeSupportTrack@) and we'll get this straightened out.]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 10:15:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5699#5699</guid>
  </item> 
  <item>
   <title>prism and moving the designer.cs file to its own project : Sorry I tried your suggestions...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5629#5629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=600" rel="nofollow">jmcfet</a><br /><strong>Subject:</strong> 1519<br /><strong>Posted:</strong> 15-Oct-2009 at 6:31am<br /><br />Sorry I tried your suggestions and ended up with directory called DomainModelSL in my Silverlight stuff and it contains a designer.cs file as generated by the mapper. I found this a wierd process as initailly there was no way to specify a location for the SL designer.cs in the mapper dialog. I then let it save the defaults and then went back into the mapper tool and now the options appear. this does not seem right as I now have a designer.cs file in Shared and my new DomainModelSL. Anyways being stubborn I persisted and as a test I just added :<FONT size=4><P></FONT><FONT color=#2b91af size=4><FONT color=#2b91af size=4>DomainModelEntityManager</FONT></FONT><FONT size=4> _manager = </FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>new</FONT></FONT><FONT size=4> </FONT><FONT color=#2b91af size=4><FONT color=#2b91af size=4>DomainModelEntityManager</FONT></FONT><FONT size=4>(</FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>false</FONT></FONT><FONT size=4>);</P><DIV></DIV><DIV>to one of startup files to see if there was hope, well there was none as I get the dreaded execption:</DIV><DIV>Error: Unhandled Error in Silverlight Application <BR>Code: 2028&nbsp;&nbsp;&nbsp; <BR>Category: ParserError&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>Message: The name already exists in the tree: BaseWizard.&nbsp;&nbsp;&nbsp;&nbsp; <BR>File:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>Line: 0&nbsp;&nbsp;&nbsp;&nbsp; <BR>Position: 0&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I&nbsp;wasting too much time so am switching to Ria services , I wanted to try your stuff out and must also say that&nbsp;it&nbsp;looks great in simple cases but too hard to use in more&nbsp;robust architectures. I have the same thing working in Ria so will continue on that path as it is free and works with linq to SQL <BR></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 15 Oct 2009 06:31:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5629#5629</guid>
  </item> 
  <item>
   <title>prism and moving the designer.cs file to its own project : Instead of moving the generated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5627#5627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1519<br /><strong>Posted:</strong> 14-Oct-2009 at 4:15pm<br /><br />Instead of moving the generated output file, just move the ibedmx file to the non-SL project of your choice.&nbsp; If you do this manually you'll also have to manually edit the relative path information (the path to the EDMX file) stored in the ibedmx.&nbsp; An easier way of doing this is by using the Object Mapper to target the projects you want: it will allow you to choose both the Silverlight and non-Silverlight target projects, or create new projects.&nbsp; When using the Object Mapper, it will also automatically link the generated designer.cs file in the Silverlight target project, and ensure that the namespace and assembly names are in sync.&nbsp; It's really not a good idea to move the designer.cs file on your own, since both the Object Mapper and the BuildWatcher (code which runs during builds) are specifically looking for the ibedmx file.<DIV>&nbsp;</DIV><DIV>Re the probing error - the domain model (the generated designer.cs file) must reside in both a non-Silverlight project (a class library or the web project) and a Silverlight project (an SL class library or the Silverlight application), and is automatically added as a linked file&nbsp;in the SL project by the Object Mapper.&nbsp; In the Prism Explorer, you see the generated model in the ModelExplorer.ModelDF project, and the linked code in the ModelExplorer.ModelDF.SL project.&nbsp; Note that these class libraries both use an assembly name of ModelExplorer.Model.&nbsp; Take a look at the app.config in the PrismExplorer.Shell project, and the web.config in the PrismExplorerWeb project, for correct setup of the &lt;probeAssemblyNames&gt;.</DIV><DIV>&nbsp;</DIV><DIV>We have a number of simpler, non-Prism,&nbsp;examples in the Learning Resources folder installed with the product.&nbsp;&nbsp; The "Four Simple Steps" tutorial is a good place to start.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 14 Oct 2009 16:15:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5627#5627</guid>
  </item> 
  <item>
   <title>prism and moving the designer.cs file to its own project : more details: devforce was probing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5625#5625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=600" rel="nofollow">jmcfet</a><br /><strong>Subject:</strong> 1519<br /><strong>Posted:</strong> 14-Oct-2009 at 1:53pm<br /><br />more details:<DIV>devforce was probing for a license to I change the web.config to <FONT color=#0000ff size=4><FONT color=#0000ff size=4></DIV><P>&lt;</FONT></FONT><FONT color=#a31515 size=4><FONT color=#a31515 size=4>probeAssemblyName</FONT></FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4> </FONT></FONT><FONT color=#ff0000 size=4><FONT color=#ff0000 size=4>name</FONT></FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>=</FONT></FONT><FONT size=4>"</FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>ModelsDevForce.SL</FONT></FONT><FONT size=4>"</FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4> /&gt;</P><DIV></DIV><DIV>and moved the designer.cs file to the <FONT color=#0000ff size=4><FONT color=#0000ff size=4>ModelsDevForce.SL and now I can create the <FONT size=4></DIV><P>_manager = </FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>new</FONT></FONT><FONT size=4> </FONT><FONT color=#2b91af size=4><FONT color=#2b91af size=4>DomainModelEntityManager</FONT></FONT><FONT size=4>(</FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>false</FONT></FONT><FONT size=4>);</P><DIV></DIV><DIV>in my dataaccess project but now when I make a call to get some entities like the following:</DIV><DIV><FONT size=4><FONT size=4><P>_manager.ExecuteQueryAsync(_manager.Supplier, GotEmployees, </FONT><FONT color=#0000ff size=4><FONT color=#0000ff size=4>null</FONT></FONT><FONT size=4>);</P><DIV>I get the following exception:</DIV><DIV>The remote server returned an error: NotFound.. If the service is available, then also make sure that the endpoint bindings match between client and server.</DIV><DIV>This looks like a WCF issue but where is the config info suppossed to be placed.</DIV><DIV>&nbsp;</DIV><DIV>Ward's example is very cool but I am looking for a more basic solution to get started as I do not need offline mode to work.</FONT></FONT></FONT></FONT></FONT></FONT></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 14 Oct 2009 13:53:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5625#5625</guid>
  </item> 
  <item>
   <title>prism and moving the designer.cs file to its own project : I have a prism app I am trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5624#5624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=600" rel="nofollow">jmcfet</a><br /><strong>Subject:</strong> 1519<br /><strong>Posted:</strong> 14-Oct-2009 at 12:46pm<br /><br />I have a prism app I am trying to use Devforce with and want to place the designer.cs file (output of the DevForce object mapper) into its own project. When I moved the file and tried making a call to the service to get enttites I get a serialization issue saying the serialer cannot find EntityModel.I use this approach with Ria data services and works well , I also looked at Ward's wonderful prism example and am not sure why my setup is not working. This also brings up another point , if I regenerate the DomainModel from your tool can I specify a target directory]]>
   </description>
   <pubDate>Wed, 14 Oct 2009 12:46:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1519&amp;PID=5624#5624</guid>
  </item> 
 </channel>
</rss>