<?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 : OData samples</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : OData samples</description>
  <pubDate>Wed, 13 May 2026 09:56:41 -700</pubDate>
  <lastBuildDate>Tue, 07 Feb 2012 11:01:37 -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=2369</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>OData samples :   chuckc,In both of your cases...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12623#12623</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> 2369<br /><strong>Posted:</strong> 07-Feb-2012 at 11:01am<br /><br />chuckc,<div>In both of your cases you added a property that uses a non-serializable type. Neither the EntityManager is serializable nor the Dictionary. Whether you use OData or not, both these classes can never be serialized.&nbsp;</div><div>&nbsp;</div><div>The way to tell OData to ignore certain properties is by means of the IgnorePropertiesAttribute, which you already tried and I think I know what's happening. Our code generator emits the following attribute for each entity, which causes the compiler to ignore yours.</div><div>&nbsp;</div><div>&#091;IgnoreProperties(@"EntityAspect")&#093;</div><div>&nbsp;</div><div>I need to do some research on my end to determine what the easiest way is to get your properties into the list of ignored properties.</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 11:01:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12623#12623</guid>
  </item> 
  <item>
   <title>OData samples : Here&amp;#039;s some info I found...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12621#12621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 07-Feb-2012 at 7:17am<br /><br /><div style="margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-: initial; -: n&#111;ne; "><p style="font-family: Verdana; font-size: 11px; line-height: normal; ">Here's some info I found helpful in debugging odata.</p><p style="font-family: Verdana; font-size: 11px; line-height: normal; "><a href="http://blogs.msdn.com/b/phaniraj/archive/2008/06/18/debugging-ado-net-data-services.aspx" target="_blank">http://blogs.msdn.com/b/phaniraj/archive/2008/06/18/debugging-ado-net-data-services.aspx</a></p><p style="font-family: Verdana; font-size: 11px; line-height: normal; ">With this debugging turned on, I get the following, actually helpful, debug info:</p><p style="font-family: Verdana; font-size: 11px; line-height: normal; "><br></p><p style="font-family: Verdana; font-size: 11px; line-height: normal; ">The server encountered an error processing the request. The exception message is 'The property 'Errors' on type 'DomainModel.User' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.'. See server logs for more details. The exception stack trace is:</p><p style="font-family: Verdana; font-size: 11px; line-height: normal; ">at System.Data.Services.Providers.ReflectionServiceProvider.BuildTypeProperties(ResourceType parentResourceType, IDictionary`2 knownTypes, IDictionary`2 childTypes, Queue`1 unvisitedTypes, IEnumerable`1 entitySets) at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadataForTypes(IDictionary`2 knownTypes, IDictionary`2 childTypes, Queue`1 unvisitedTypes, IEnumerable`1 entitySets) at System.Data.Services.Providers.ReflectionServiceProvider.PopulateMetadata(IDictionary`2 knownTypes, IDictionary`2 childTypes, IDictionary`2 entitySets) at System.Data.Services.Providers.BaseServiceProvider.PopulateMetadata() at System.Data.Services.DataService`1.CreateProvider() at System.Data.Services.DataService`1.HandleRequest() at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) at SyncInvokeProcessRequestForMessage(Object , Object&#091;&#093; , Object&#091;&#093; ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object&#091;&#093; inputs, Object&#091;&#093;&amp; outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p></div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 07:17:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12621#12621</guid>
  </item> 
  <item>
   <title>OData samples : Tried a couple things, with no...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12620#12620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 06-Feb-2012 at 2:26pm<br /><br /><div>Tried a couple things, with no success.</div><div><br></div><div>&nbsp; &#091;IgnoreProperties(@"Errors")&#093;</div><div><br></div><div>at the class level, and&nbsp;</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;IgnoreDataMember&#093;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; public Dictionary&lt;string, string&gt; Errors</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return _errors ?? (_errors = new Dictionary&lt;string, string&gt;()); }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div>Neither attribute appears to be recognized by the odata service serializer.</div>]]>
   </description>
   <pubDate>Mon, 06 Feb 2012 14:26:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12620#12620</guid>
  </item> 
  <item>
   <title>OData samples : Also discovered that having a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12619#12619</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 06-Feb-2012 at 2:02pm<br /><br />Also discovered that having a property such as the following causes the odata service to silently fail, too.<div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>private Dictionary&lt;string, string&gt; _errors;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; public Dictionary&lt;string, string&gt; Errors</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get { return _errors ?? (_errors = new Dictionary&lt;string, string&gt;()); }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div>So evidently Dictionary&lt;string, string&gt; can't be serialized out through odata. &nbsp;Is that correct? &nbsp;Or is there some attribute that can be added to the property declaration to fix things up? &nbsp;Something like &#091;ODataIgnore&#093;?</div><div><br></div><div>Thanks</div>]]>
   </description>
   <pubDate>Mon, 06 Feb 2012 14:02:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12619#12619</guid>
  </item> 
  <item>
   <title>OData samples : Finally getting back to this,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12618#12618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 06-Feb-2012 at 1:52pm<br /><br />&nbsp;Finally getting back to this, and have discovered that my Entity base class is causing the problem. &nbsp;I've stripped it down to the minimum that causes the failure, which is:<div><br><div><div>using IdeaBlade.EntityModel;</div><div><br></div><div>namespace DomainModel</div><div>{</div><div><br></div><div>&nbsp; &nbsp; public partial &nbsp;class SimpleBase : Entity</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; public iCatEntityManager iCatalystEntityManager</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (null != this.EntityAspect.EntityManager)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return (this.EntityAspect.EntityManager as iCatEntityManager);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return null;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; }</div><div>}</div></div><div><br></div><div>Converting the property to a Get&nbsp;iCatalystEntityManager() method seems to fix it.&nbsp;&nbsp;So is this a serialization issue?</div><div><br></div><div>It took way too much trial and error to figure this out. &nbsp;Is there some way to get decent debug info?</div><div><br></div><div>Thanks</div><br ="Apple-interchange-newline"></div>]]>
   </description>
   <pubDate>Mon, 06 Feb 2012 13:52:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=12618#12618</guid>
  </item> 
  <item>
   <title>OData samples : I was worried you would say that....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9629#9629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Jan-2011 at 6:37am<br /><br />I was worried you would say that. <DIV>&nbsp;</DIV><DIV>I'm hosting in Windows Azure and really don't want to go the route of using ASP.Net Authentication.</DIV>]]>
   </description>
   <pubDate>Wed, 12 Jan 2011 06:37:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9629#9629</guid>
  </item> 
  <item>
   <title>OData samples :  Originally posted by GeorgeBHow...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9628#9628</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> 2369<br /><strong>Posted:</strong> 12-Jan-2011 at 6:32am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by GeorgeB</strong></em><br /><br />How do we handle security? <DIV>&nbsp;</DIV><DIV>I have implemented IEntityLoginManager for my Silverlight application.</DIV><DIV>&nbsp;</DIV><DIV>I tried setting NetworkCredential&nbsp;with no luck.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV></td></tr></table> <DIV></DIV>You have to use ASP.NET security and enable ASP.NET authentication in DevForce, so both WCF and DevForce use the same security provider. Because the WCF Data Service is outside of DevForce, it is not going to work with a DevForce custom login. You have to handle security at the WCF layer. See our wiki for more information on ASP.NET security. ]]>
   </description>
   <pubDate>Wed, 12 Jan 2011 06:32:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9628#9628</guid>
  </item> 
  <item>
   <title>OData samples : How do we handle security?   I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9627#9627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=770" rel="nofollow">GeorgeB</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Jan-2011 at 6:14am<br /><br />How do we handle security? <DIV>&nbsp;</DIV><DIV>I have implemented IEntityLoginManager for my Silverlight application.</DIV><DIV>&nbsp;</DIV><DIV>I tried setting NetworkCredential&nbsp;with no luck.</DIV><DIV>&nbsp;</DIV><DIV>Kr</DIV><DIV>George</DIV>]]>
   </description>
   <pubDate>Wed, 12 Jan 2011 06:14:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9627#9627</guid>
  </item> 
  <item>
   <title>OData samples :  Originally posted by chuckcThanks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9624#9624</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> 2369<br /><strong>Posted:</strong> 11-Jan-2011 at 12:08pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by chuckc</strong></em><br /><br />Thanks for the sample - good stuff!<DIV><BR></DIV><DIV>I've been able to get things working when including the edmx / data model in the same project as the odata webservice, but no success when separating the data model into a different assembly. &nbsp;I get "The server encountered an error processing the request. See server logs for more details." &nbsp;I did set &nbsp;includeExceptionDetailInFaults="true" in the web config, but that doesn't provide any additional information. &nbsp;The InitializeService() method in the web service project isn't even getting called. &nbsp;</DIV><DIV>Any ideas? &nbsp;Are there additional configuration steps required when using a separate data assembly?</DIV><DIV><BR></DIV><DIV>Thanks much.</DIV></td></tr></table> <DIV></DIV><DIV></DIV><DIV></DIV><DIV>My hunch is your namespaces&nbsp;are messed up and the DevForce code needs to be re-generated.</DIV><DIV>&nbsp;</DIV><DIV>To rule out any other issues, set the default namespace of the data model assembly to the same namespace as the OData webservice. Then delete the edmx.tt file and &lt;EntityManager&gt;_IUpdatable.cs from the project and file system. Open up the edmx file and set "OData Enabled" to false. Save the edmx. Then change "OData Enabled" back to true and save again. </DIV><DIV>&nbsp;</DIV><DIV>If you run the server in the debugger, you should see a more detailed exception and it probably says something that it can't find a certain class in your model.</DIV><DIV>&nbsp;</DIV><DIV>Generally, when you break out the model into a seperate assembly you have to set the default namespace correctly in the new assembly and re-generate the DevForce code. This is true for non-OData projects as well.</DIV>]]>
   </description>
   <pubDate>Tue, 11 Jan 2011 12:08:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9624#9624</guid>
  </item> 
  <item>
   <title>OData samples : Thanks for the sample - good stuff!I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9597#9597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 07-Jan-2011 at 8:52pm<br /><br />Thanks for the sample - good stuff!<div><br></div><div>I've been able to get things working when including the edmx / data model in the same project as the odata webservice, but no success when separating the data model into a different assembly. &nbsp;I get "The server encountered an error processing the request. See server logs for more details." &nbsp;I did set &nbsp;includeExceptionDetailInFaults="true" in the web config, but that doesn't provide any additional information. &nbsp;The InitializeService() method in the web service project isn't even getting called. &nbsp;</div><div>Any ideas? &nbsp;Are there additional configuration steps required when using a separate data assembly?</div><div><br></div><div>Thanks much.</div>]]>
   </description>
   <pubDate>Fri, 07 Jan 2011 20:52:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9597#9597</guid>
  </item> 
  <item>
   <title>OData samples :  Originally posted by benmcneillThanks!  Where...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9389#9389</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> 2369<br /><strong>Posted:</strong> 13-Dec-2010 at 11:38am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by benmcneill</strong></em><br /><br />Thanks!<DIV><BR></DIV><DIV>Where do I find initializeservice?</DIV><DIV><BR></DIV><DIV>And then do I just build, then go to my client Silverlight project, and call, for example: (Where EncryptMethod is a Service Method):</DIV><DIV><BR></DIV><DIV>TestENTITIES test = new TestENTITIES();</DIV><DIV>string unencrypted = "unencryptedtext";</DIV><DIV>string EncryptedText = test.EncryptMethod(unencrypted);</DIV><DIV><BR></DIV><DIV>The TestENTITIES isn't givng me the Service Methods on the client yet.</DIV></td></tr></table> <DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>If you want to call an OData service from Silverlight or full .NET for that matter, just add a service reference to your project. Visual Studio will recognize that it is an OData web service and create the propery client classes. </DIV><DIV>&nbsp;</DIV><DIV>Here's an example of a .NET TestClass that exercies&nbsp;the NorthwindIB OData service from my earlier post. </DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestClass</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">class</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">ODataCRUDTests</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;ODataCRUDTests()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">NorthwindIBEntities</SPAN>(<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">Uri</SPAN>(<SPAN style="COLOR: #a31515">"http://localhost:9009/MyData.svc"</SPAN>));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">TestContext</SPAN>&nbsp;testContextInstance;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green">&nbsp;</SPAN><SPAN style="COLOR: gray">&lt;summary&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green">Gets&nbsp;or&nbsp;sets&nbsp;the&nbsp;test&nbsp;context&nbsp;which&nbsp;provides</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green">information&nbsp;about&nbsp;and&nbsp;functionality&nbsp;for&nbsp;the&nbsp;current&nbsp;test&nbsp;run.</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: gray">///&lt;/summary&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">TestContext</SPAN>&nbsp;TestContext<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">get</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;testContextInstance;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">set</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testContextInstance&nbsp;=&nbsp;<SPAN style="COLOR: blue">value</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#region</SPAN>&nbsp;Additional&nbsp;test&nbsp;attributes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;You&nbsp;can&nbsp;use&nbsp;the&nbsp;following&nbsp;additional&nbsp;attributes&nbsp;as&nbsp;you&nbsp;write&nbsp;your&nbsp;tests:</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;Use&nbsp;ClassInitialize&nbsp;to&nbsp;run&nbsp;code&nbsp;before&nbsp;running&nbsp;the&nbsp;first&nbsp;test&nbsp;in&nbsp;the&nbsp;class</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;&#091;ClassInitialize()&#093;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;public&nbsp;static&nbsp;void&nbsp;MyClassInitialize(TestContext&nbsp;testContext)&nbsp;{&nbsp;}</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;Use&nbsp;ClassCleanup&nbsp;to&nbsp;run&nbsp;code&nbsp;after&nbsp;all&nbsp;tests&nbsp;in&nbsp;a&nbsp;class&nbsp;have&nbsp;run</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;&#091;ClassCleanup()&#093;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;public&nbsp;static&nbsp;void&nbsp;MyClassCleanup()&nbsp;{&nbsp;}</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;Use&nbsp;TestInitialize&nbsp;to&nbsp;run&nbsp;code&nbsp;before&nbsp;running&nbsp;each&nbsp;test&nbsp;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;&#091;TestInitialize()&#093;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;public&nbsp;void&nbsp;MyTestInitialize()&nbsp;{&nbsp;}</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;Use&nbsp;TestCleanup&nbsp;to&nbsp;run&nbsp;code&nbsp;after&nbsp;each&nbsp;test&nbsp;has&nbsp;run</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;&#091;TestCleanup()&#093;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;public&nbsp;void&nbsp;MyTestCleanup()&nbsp;{&nbsp;}</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//</SPAN><BR><SPAN style="COLOR: blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#endregion</SPAN><BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_get_Customers()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customers&nbsp;=&nbsp;context.Customers.ToList();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customers.Any(),&nbsp;<SPAN style="COLOR: #a31515">"Should&nbsp;have&nbsp;some&nbsp;customers"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_get_Customer_Orders()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customer&nbsp;=&nbsp;context.Customers.First();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer&nbsp;!=&nbsp;<SPAN style="COLOR: blue">null</SPAN>,&nbsp;<SPAN style="COLOR: #a31515">"We&nbsp;should&nbsp;have&nbsp;a&nbsp;customer"</SPAN>);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.LoadProperty(customer,&nbsp;<SPAN style="COLOR: #a31515">"Orders"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer.Orders.Any(),&nbsp;<SPAN style="COLOR: #a31515">"We&nbsp;should&nbsp;have&nbsp;orders"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_modify_Customer()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customer1&nbsp;=&nbsp;context.Customers.First();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">string</SPAN>&nbsp;newRegion&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">Guid</SPAN>.NewGuid().ToString().Substring(0,&nbsp;15);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;customer1.Region&nbsp;=&nbsp;newRegion;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.UpdateObject(customer1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.SaveChanges();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;query&nbsp;=&nbsp;<SPAN style="COLOR: blue">from</SPAN>&nbsp;c&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;context.Customers<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">where</SPAN>&nbsp;c.CustomerID&nbsp;==&nbsp;customer1.CustomerID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">select</SPAN>&nbsp;c;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customer2&nbsp;=&nbsp;query.FirstOrDefault();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer2&nbsp;!=&nbsp;<SPAN style="COLOR: blue">null</SPAN>&nbsp;&amp;&amp;&nbsp;customer2.Region&nbsp;==&nbsp;newRegion,&nbsp;<SPAN style="COLOR: #a31515">"Customer&nbsp;should&nbsp;have&nbsp;been&nbsp;updated"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_add_Customer()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Customer</SPAN>&nbsp;customer&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">Customer</SPAN>.CreateCustomer(<SPAN style="COLOR: #2b91af">Guid</SPAN>.NewGuid());<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">string</SPAN>&nbsp;companyName&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">Guid</SPAN>.NewGuid().ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;customer.CompanyName&nbsp;=&nbsp;companyName;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.AddToCustomers(customer);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.SaveChanges();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(context.Customers.Where(c&nbsp;=&gt;&nbsp;c.CompanyName&nbsp;==&nbsp;companyName).ToList().Any(),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #a31515">"The&nbsp;new&nbsp;customer&nbsp;should&nbsp;have&nbsp;been&nbsp;added"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_delete_Customer()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customers&nbsp;=&nbsp;(<SPAN style="COLOR: blue">from</SPAN>&nbsp;c&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;context.Customers<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">where</SPAN>&nbsp;c.CustomerID_OLD&nbsp;==&nbsp;<SPAN style="COLOR: blue">null</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">select</SPAN>&nbsp;c).ToList();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customers.Any(),&nbsp;<SPAN style="COLOR: #a31515">"No&nbsp;customers&nbsp;to&nbsp;delete.&nbsp;Please&nbsp;add&nbsp;a&nbsp;test&nbsp;customer&nbsp;first"</SPAN>);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.DeleteObject(customers.First());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.SaveChanges();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customers2&nbsp;=&nbsp;(<SPAN style="COLOR: blue">from</SPAN>&nbsp;c&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;context.Customers<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">where</SPAN>&nbsp;c.CustomerID_OLD&nbsp;==&nbsp;<SPAN style="COLOR: blue">null</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">select</SPAN>&nbsp;c).ToList();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customers2.Count&nbsp;==&nbsp;customers.Count&nbsp;-&nbsp;1,&nbsp;<SPAN style="COLOR: #a31515">"We&nbsp;should&nbsp;have&nbsp;one&nbsp;less&nbsp;customers"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_add_new_Order_to_Customer()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customer&nbsp;=&nbsp;context.Customers.FirstOrDefault();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer&nbsp;!=&nbsp;<SPAN style="COLOR: blue">null</SPAN>,&nbsp;<SPAN style="COLOR: #a31515">"Should&nbsp;have&nbsp;a&nbsp;customer"</SPAN>);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.LoadProperty(customer,&nbsp;<SPAN style="COLOR: #a31515">"Orders"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;numberOfOrders&nbsp;=&nbsp;customer.Orders.Count();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;shippingAddress&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">ShippingAddress</SPAN>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shippingAddress.ShipAddress&nbsp;=&nbsp;<SPAN style="COLOR: #a31515">"111"</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shippingAddress.ShipCity&nbsp;=&nbsp;<SPAN style="COLOR: #a31515">"Emeryville"</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shippingAddress.ShipPostalCode&nbsp;=&nbsp;<SPAN style="COLOR: #a31515">"11111"</SPAN>;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;order&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">Order</SPAN>.CreateOrder(-1,&nbsp;1,&nbsp;shippingAddress);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.AddRelatedObject(customer,&nbsp;<SPAN style="COLOR: #a31515">"Orders"</SPAN>,&nbsp;order);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.SaveChanges();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.LoadProperty(customer,&nbsp;<SPAN style="COLOR: #a31515">"Orders"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer.Orders.Count()&nbsp;==&nbsp;numberOfOrders&nbsp;+&nbsp;1,&nbsp;<SPAN style="COLOR: #a31515">"This&nbsp;customer&nbsp;should&nbsp;have&nbsp;one&nbsp;more&nbsp;order"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_support_calculated_Properties_in_partial_Entity_Class()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;customer&nbsp;=&nbsp;context.Customers.FirstOrDefault();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsTrue(customer.TestCalculatedProperty&nbsp;==&nbsp;<SPAN style="COLOR: #a31515">"Test"</SPAN>,&nbsp;<SPAN style="COLOR: #a31515">"Calculated&nbsp;property&nbsp;should&nbsp;be&nbsp;set"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<SPAN style="COLOR: #2b91af">TestMethod</SPAN>&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;then_can_set_Employee_Birthday_to_null()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;employee&nbsp;=&nbsp;context.Employees.Where(e&nbsp;=&gt;&nbsp;e.BirthDate&nbsp;!=&nbsp;<SPAN style="COLOR: blue">null</SPAN>).First();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsNotNull(employee,&nbsp;<SPAN style="COLOR: #a31515">"We&nbsp;need&nbsp;an&nbsp;employee&nbsp;with&nbsp;a&nbsp;BirthDate"</SPAN>);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;employee.BirthDate&nbsp;=&nbsp;<SPAN style="COLOR: blue">null</SPAN>;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.UpdateObject(employee);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.SaveChanges();<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;query&nbsp;=&nbsp;<SPAN style="COLOR: blue">from</SPAN>&nbsp;e&nbsp;<SPAN style="COLOR: blue">in</SPAN>&nbsp;context.Employees<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">where</SPAN>&nbsp;e.EmployeeID&nbsp;==&nbsp;employee.EmployeeID<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">select</SPAN>&nbsp;e;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">var</SPAN>&nbsp;employee2&nbsp;=&nbsp;query.FirstOrDefault();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">Assert</SPAN>.IsNull(employee2.BirthDate,&nbsp;<SPAN style="COLOR: #a31515">"Birthdate&nbsp;should&nbsp;be&nbsp;null"</SPAN>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">NorthwindIBEntities</SPAN>&nbsp;context;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>}</PRE></DIV>]]>
   </description>
   <pubDate>Mon, 13 Dec 2010 11:38:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9389#9389</guid>
  </item> 
  <item>
   <title>OData samples : Hi all, Just a quick post. Tutorial...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9387#9387</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> 2369<br /><strong>Posted:</strong> 13-Dec-2010 at 11:24am<br /><br />Hi all,<DIV>Just a quick post. Tutorial and samples are coming shortly. In the meantime as smi-mark posted, there isn't much involved in getting your domain model exposed through OData. Microsoft provides the WCF Data Services, which implement all the OData goodies. Once you have OData enabled in the edmx, all you need to do is add a WCF Data Service to your project like this one:</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">class</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">MyData</SPAN>&nbsp;:&nbsp;<SPAN style="COLOR: #2b91af">DataService</SPAN>&lt;<SPAN style="COLOR: #2b91af">NorthwindIBEntities</SPAN>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;This&nbsp;method&nbsp;is&nbsp;called&nbsp;only&nbsp;once&nbsp;to&nbsp;initialize&nbsp;service-wide&nbsp;policies.</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">static</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;InitializeService(<SPAN style="COLOR: #2b91af">DataServiceConfiguration</SPAN>&nbsp;config)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.UseVerboseErrors&nbsp;=&nbsp;<SPAN style="COLOR: blue">true</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: green">//&nbsp;</SPAN><SPAN style="COLOR: darkblue; FONT-WEIGHT: 700">TODO:&nbsp;set&nbsp;rules&nbsp;to&nbsp;indicate&nbsp;which&nbsp;entity&nbsp;sets&nbsp;and&nbsp;service&nbsp;operations&nbsp;are&nbsp;visible,&nbsp;updatable,&nbsp;etc.</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.SetEntitySetAccessRule(<SPAN style="COLOR: #a31515">"Customers"</SPAN>,&nbsp;<SPAN style="COLOR: #2b91af">EntitySetRights</SPAN>.All);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.SetEntitySetAccessRule(<SPAN style="COLOR: #a31515">"Orders"</SPAN>,&nbsp;<SPAN style="COLOR: #2b91af">EntitySetRights</SPAN>.All);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.SetEntitySetAccessRule(<SPAN style="COLOR: #a31515">"Employees"</SPAN>,&nbsp;<SPAN style="COLOR: #2b91af">EntitySetRights</SPAN>.All);<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;config.DataServiceBehavior.MaxProtocolVersion&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">DataServiceProtocolVersion</SPAN>.V2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>}</PRE></DIV><DIV>This example exposes the NorthwindIB Customer, Order and Employee entities with full CRUD over OData. </DIV><DIV>&nbsp;</DIV><DIV>There are various OData client libraries for all kinds of platforms that make it easy to consume an OData service on the client. The first example will be a little Windows Phone 7 demo.</DIV><DIV>&nbsp;</DIV><DIV>If you are running into any issues, I'd love to hear about them.</DIV><DIV>&nbsp;</DIV><DIV>Marcel Good</DIV><DIV>Senior Director of&nbsp;Professional Services</DIV><DIV>IdeaBlade</DIV>]]>
   </description>
   <pubDate>Mon, 13 Dec 2010 11:24:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9387#9387</guid>
  </item> 
  <item>
   <title>OData samples : Silverlight project? This is to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9378#9378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Dec-2010 at 11:20pm<br /><br />Silverlight project? This is to expose your DevForce object as an OData source. I'm not sure what you are doing with a Silverlight client?]]>
   </description>
   <pubDate>Sun, 12 Dec 2010 23:20:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9378#9378</guid>
  </item> 
  <item>
   <title>OData samples : Thanks!Where do I find initializeservice?And...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9377#9377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=914" rel="nofollow">benmcneill</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Dec-2010 at 9:46pm<br /><br />Thanks!<div><br></div><div>Where do I find initializeservice?</div><div><br></div><div>And then do I just build, then go to my client Silverlight project, and call, for example: (Where EncryptMethod is a Service Method):</div><div><br></div><div>TestENTITIES test = new TestENTITIES();</div><div>string unencrypted = "unencryptedtext";</div><div>string EncryptedText = test.EncryptMethod(unencrypted);</div><div><br></div><div>The TestENTITIES isn't givng me the Service Methods on the client yet.</div>]]>
   </description>
   <pubDate>Sun, 12 Dec 2010 21:46:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9377#9377</guid>
  </item> 
  <item>
   <title>OData samples :  It&amp;#039;s actually very simple....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9376#9376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Dec-2010 at 4:22pm<br /><br />It's actually very simple. This is what I did:<br><br>1) Create a web project in Visual Studio<br>2) Either create a separate model project, or add the edmx to the web project<br>3) Map it to Northwind or your own database<br>4) In the edmx properties make sure to enable OData<br>5) Create a new WCF Data Serive in your web project called OData.svc or whatever you like<br>6) Inherit this new class from your entity manager. Example "public class OData : DataService&lt;NorthwindIBEntities&gt;"<br>7) In the static InitializeService, set your access rules. Example "config.SetEntitySetAccessRule("Employees", EntitySetRights.All);"<br>8) Test it out :) <br><span style="font-size:10px"><br /><br />Edited by smi-mark - 12-Dec-2010 at 4:22pm</span>]]>
   </description>
   <pubDate>Sun, 12 Dec 2010 16:22:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9376#9376</guid>
  </item> 
  <item>
   <title>OData samples : A sample would be great indeed!...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9375#9375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=914" rel="nofollow">benmcneill</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 12-Dec-2010 at 6:43am<br /><br />A sample would be great indeed! :)]]>
   </description>
   <pubDate>Sun, 12 Dec 2010 06:43:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9375#9375</guid>
  </item> 
  <item>
   <title>OData samples :     Any word on a basic sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9373#9373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2369<br /><strong>Posted:</strong> 10-Dec-2010 at 9:17pm<br /><br />Any word on a basic sample or tutorial on using the new OData capabilities? <br><br>Wow this is going to be easy! I have it exposed and I can see the entities and their definitions in LINQPad when browsing to the service.<br><br>Had some errors in the beginning, but it turned out to be a connection string problem. This is awesome!!!<br><span style="font-size:10px"><br /><br />Edited by smi-mark - 10-Dec-2010 at 10:14pm</span>]]>
   </description>
   <pubDate>Fri, 10 Dec 2010 21:17:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2369&amp;PID=9373#9373</guid>
  </item> 
 </channel>
</rss>