SilverlightShow: WCF RIA Services Part 1: Getting Started Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: WCF RIA Services Part 1: Getting Started The indicative price for the unit is $6-6.5 million, which reflects about $2,096-$2,270 psf based on the unit's strata area of 2,863 sq ft.. <a href="http://incrediblerealestatecareers.com/north-park-residences">North Park Residences</a> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment10855 loxindudes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 01 Jul 2014 10:50:05 GMT Re: WCF RIA Services Part 1: Getting Started Thanks for a great inroduction to this technology.  You may have hooked me on it, I'll go through the next article and see.  Also, thanks for your service to our country! http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment8983 bobcolby http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 23 Feb 2013 18:06:39 GMT Re: WCF RIA Services Part 1: Getting Started <p>thanks a lot </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment8615 ankitpatel00123 http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 21 Nov 2012 08:27:28 GMT Re: WCF RIA Services Part 1: Getting Started <p>Thank you.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment8541 atiour.islam http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 13 Oct 2012 12:59:30 GMT Re: WCF RIA Services Part 1: Getting Started <p>There was no modification made to the domain service.  Very simply, I drag the LINE entity from Data Source on to the page as datagrid.  But I can't debugg it.  There is a good connection.  I can build the server model without any problem.  I can even run query from the Server Explorer!?</p> <p>Thanks for a quick reply.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7994 fardosht http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Apr 2012 17:16:37 GMT Re: WCF RIA Services Part 1: Getting Started <p>I would fire up Fiddler and look at the response to the initial query as the app starts up to see if it is in fact a server side error or a client side error. Based on that stack trace though it looks like the DomainDataSource is executing the Load which calls the GetLINE method in your domain service and that method is failing and getting returned to the client. But looking at the wire level with Fiddler is your best bet for determining if it is server side or client side since the query does not execute until after your domain service get method has returned (deferred execution of an expression tree) and the client side has its own layers in between that sometimes make it hard to determine where exactly the issue is.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7993 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Apr 2012 17:00:19 GMT Re: WCF RIA Services Part 1: Getting Started <p>There was no modification made to the domain service.  Very simply, I drag the LINE entity from Data Source on to the page as datagrid.  But I can't debugg it.  There is a good connection.  I can build the server model without any problem.  I can even run query from the Server Explorer!?</p> <p>Thanks for a quick reply.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7992 fardosht http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Apr 2012 16:42:13 GMT Re: WCF RIA Services Part 1: Getting Started <p>That error doesn't look like it has anything to do with RIA Services, looks more like your Oracle query is failing. You'll have to sort that out, I'm not an Oracle guy.</p> <p>"<span style="font-family: calibri; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">Load operation failed for query 'GetLINE'"</span></p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7990 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Apr 2012 15:40:18 GMT Re: WCF RIA Services Part 1: Getting Started <p><span style="font-family: calibri;">I’m using Oracle ODAC 11.2.0.3 and Silverlight 4 on .NET framework 4. Everything went as you describe except when I run the debug.  I keep getting the following error.  I know the problem is somewhere in the web.config but can’t tell where.  Your help is greatly appreciated.</span></p> <p><span style="font-family: calibri;">Regards,</span></p> <p><span style="font-family: calibri;">Fardosht</span></p> <p><span style="font-family: calibri;">---------------------------</span></p> <p><span style="font-family: calibri;">Load Error</span></p> <p><span style="font-family: calibri;">---------------------------</span></p> <p><span style="font-family: calibri;">System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetLINE'. The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.</span></p> <p><span style="font-family: calibri;"> at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)</span></p> <p><span style="font-family: calibri;"> at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)</span></p> <p><span style="font-family: calibri;"> at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)</span></p> <p><span style="font-family: calibri;">   --- End of inner exception stack trace ---</span></p> <p><span style="font-family: calibri;"> at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)</span></p> <p><span style="font-family: calibri;"> at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)</span></p> <p><span style="font-family: calibri;"> at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)</span></p> <p><span style="font-family: calibri;"> --- End of inner exception stack trace ---</span></p> <p><span style="font-family: calibri;"> at System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndQueryCore(IAsyncResult asyncResult)</span></p> <p><span style="font-family: calibri;"> at System.ServiceModel.DomainServices.Client.DomainClient.EndQuery(IAsyncResult asyncResult)</span></p> <p><span style="font-family: calibri;">at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)</span></p> <p><span style="font-family: calibri;"> --- End of inner exception stack trace ---</span></p> <p><span style="font-family: calibri;"> </span></p> <p><span style="font-family: calibri;">---------------------------</span></p> <p><span style="font-family: calibri;">The web.config</span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">------------------</span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;"><?</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">xml</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">version</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">1.0</span>" <span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;">?></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;"><!--</span> </p> <p><span style="font-family: consolas; color: green; font-size: 9.5pt;">  For more information on how to configure your ASP.NET application, please visit</span> </p> <p><span style="font-family: consolas; color: green; font-size: 9.5pt;">  http://go.microsoft.com/fwlink/?LinkId=169433</span> </p> <p><span style="font-family: consolas; color: green; font-size: 9.5pt;">  </span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">--></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;"><</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">configuration</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.webServer</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">modules</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">runAllManagedModulesForAllRequests</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">true</span>"<span style="color: blue;">></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">      <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">add</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">DomainServiceModule</span>" <span style="color: red;">preCondition</span><span style="color: blue;">=</span>"<span style="color: blue;">managedHandler</span>"</span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">        </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">type</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">modules</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">validation</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">validateIntegratedModeConfiguration</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">false</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.webServer</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.web</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">httpModules</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">      <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">add</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">DomainServiceModule</span>" <span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">httpModules</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">compilation</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">debug</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">true</span>" <span style="color: red;">targetFramework</span><span style="color: blue;">=</span>"<span style="color: blue;">4.0</span>"<span style="color: blue;">></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">      <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">assemblies</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">        <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">add</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">assembly</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">      </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">assemblies</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">compilation</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.web</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">connectionStrings</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">add</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">name</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">ArasEntities</span>" <span style="color: red;">connectionString</span><span style="color: blue;">=</span>"<span style="color: blue;">metadata=res://*/ArasModel.csdl|res://*/ArasModel.ssdl|res://*/ArasModel.msl;provider=Oracle.DataAccess.Client;provider connection string=</span><span style="color: red;">&quot;</span><span style="color: blue;">DATA SOURCE=myTNSName;PASSWORD=myPassword;PERSIST SECURITY INFO=True;USER ID=myUserName</span><span style="color: red;">&quot;</span>" <span style="color: red;">providerName</span><span style="color: blue;">=</span>"<span style="color: blue;">System.Data.EntityClient</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">connectionStrings</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.serviceModel</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">    <</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">serviceHostingEnvironment</span> <span style="font-family: consolas; color: red; font-size: 9.5pt;">aspNetCompatibilityEnabled</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">true</span>"</span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">      </span><span style="font-family: consolas; color: red; font-size: 9.5pt;">multipleSiteBindingsEnabled</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">=</span><span style="font-family: consolas; font-size: 9.5pt;">"<span style="color: blue;">true</span>"<span style="color: blue;"> /></span></span></p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;">  </</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">system.serviceModel</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span> </p> <p><span style="font-family: consolas; color: blue; font-size: 9.5pt;"></</span><span style="font-family: consolas; color: #a31515; font-size: 9.5pt;">configuration</span><span style="font-family: consolas; color: blue; font-size: 9.5pt;">></span></p> <p><span style="font-family: calibri;"> </span></p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7989 fardosht http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Apr 2012 13:53:24 GMT Re: WCF RIA Services Part 1: Getting Started <p>Thanks Brian That really helps. All the sites will be the same and need the same bd support. only the names and images will change.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7699 RodneyRiley http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 22:36:50 GMT Re: WCF RIA Services Part 1: Getting Started <p>So without modification you should be able to stand up multiple sites with the same code and database, even on the same server with no problem. RIA Services assumes it will find the services on the site the Silverlight app was downloaded from, so you would have vertical partitioning for each customer with the only change needed for each customer being the connection string in web.config.</p> <p>For modifications, it really depends on the scope and complexity of those changes - i.e. adding a property or a few for a given customer's objects would affect the database, the EF model, but not really anything else on the server side unless there is field specific validation rules enforced programmatically by the server. On the client side the code is all generated as far as the RIA code goes, so that would sync on build and the only changes should be in the UI elements and their bindings to the model object properties. </p> <p>But if you are talking about bigger changes like different rules, different relations in the object model, different exposed service methods etc, you would really have to maintain multiple baselines per customer.</p> <p>RIA is built around a strongly-typed entity model architecture. If you try to build loosey-goosey architecture (<a href="http://msdn.microsoft.com/en-us/library/ms954638.aspx#soade_topic3">http://msdn.microsoft.com/en-us/library/ms954638.aspx#soade_topic3</a>) on topic of RIA services, you are really going to be fighting an impedance mismatch, as well as implementing a service anti-pattern.</p> <p><br /> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7698 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 18:52:35 GMT Re: WCF RIA Services Part 1: Getting Started Sorry Brian. I should not have mixed terms (client being a reserved word). I have many customers. For each customer I want to have a different database instance and website. I was wondering if I had a template that I copy into Cust1.com domain and Cust2.com domain, etc then make slight modifications to the site, would that be easier that going through this structuring process for each customer. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7697 RodneyRiley http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 18:23:25 GMT Re: WCF RIA Services Part 1: Getting Started Sorry Brian. I should not have mixed terms (client being a reserved word). I have many customers. For each customer I want to have a different database instance and website. I was wondering if I had a template that I copy into Cust1.com domain and Cust2.com domain, etc then make slight modifications to the site, would that be easier that going through this structuring process for each customer. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7696 RodneyRiley http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 17:54:15 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Rodney,</p> <p>I am unclear on the multiplicity of what you are trying to describe. Are you saying you have multiple client platforms that you want to consume your services? Are you saying you want to have multiple instances of the server side that are accessed concurrently (i.e. load balanced) by the same clients? Or are you saying you want to have multiple deployments of the service for different clients with slight variations between them, so you want to know what the minimum set of things you need to copy between server projects is?</p> <p>Thanks</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7693 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 15:33:24 GMT Re: WCF RIA Services Part 1: Getting Started I have multiple clients. While this makes the process much easier, I was wondering - if I wanted to develop web apps that each client could use - can I simply copy the server-side code to another directory and change the names throughout appropiately (i.e. Customer1 to Customer2)? To simplify my question, I want to be able to create a template that I can copy and change the names on the database instance and the associated calls throughout the code, compile and distribute. Is it that simple? http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7690 RodneyRiley http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 19 Mar 2012 08:41:21 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>Thanks again for a quick reply! You were correct in suspecting a shared drive it is a folder on my PC but was accessed via a connected share. When I opened it via the direct path all worked as it should. I don't really understand why this should be as I have full permissions both to the share and the folder. It also solved the problem I was having with another project.</p> <p>Thanks Again</p> <p>Brian Watson</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7488 BrianWatson http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 03 Feb 2012 17:28:28 GMT Re: WCF RIA Services Part 1: Getting Started Brian, sorry for the misunderstanding. I see that error a lot with samples people have downloaded off the web in a zip file, that is why I jumped to that conclusion and didn't read your comment closely enough. I am not aware of any differences in VB that would explain this. I just stepped through it myself and it works fine in VB for me. The only thing I can speculate would cause this is if you are trying to do the development with the project on a network share or mapped network drive, that can also cause this kind of an error. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7485 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 02 Feb 2012 19:48:04 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>Thank you for your speedy reply. I think I have misled you, I am not talking about anything that has been downloaded. I created the project from scratch as your article describes but using VB.Net instead of C#. </p> <p>Regards</p> <p>Brian (good name don't you think :-))</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7484 BrianWatson http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 02 Feb 2012 17:43:14 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain,</p> <p>I've emailed you my project to <a href="mailto:brian.noyes@idesign.net">brian.noyes@idesign.net</a> </p> <p>request you to please look into it and help me.</p> <p> </p> <p>thank you</p> <p>manjerekar</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7482 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 02 Feb 2012 15:00:35 GMT Re: WCF RIA Services Part 1: Getting Started <p>Brian, </p> <p>If you don't unblock the zip file before unzipping it somewhere, Windows tags the files and there is no easy way to untag them. I suggest you go back to wherever you downloaded the zip, right click on it, Properties, click the Unblock button. Then unzip it to a different location. If you try to unzip to the same location Windows will still remember the source of the original ones and you will still have this problem.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7481 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 02 Feb 2012 14:59:30 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain,</p> <p>I've emailed you my project to <a href="mailto:brian.noyes@idesign.net">brian.noyes@idesign.net</a> </p> <p>request you to please look into it and help me.</p> <p> </p> <p>thank you</p> <p>manjerekar</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7480 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 02 Feb 2012 11:21:52 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brian, First let me thanks you for a great introduction to WCF RIA. I thought I would try to implement it in VB.Net but when I build at the end of step 2 I get the following error:</p> <p>Error 1 Could not load the assembly <a href="file:///P:/Silverlight/VB/TaskManager/TaskManager/obj/Debug/TaskManager.dll">file:///P:/Silverlight/VB/TaskManager/TaskManager/obj/Debug/TaskManager.dll</a>. This assembly may have been downloaded from the Web.  If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See <a href="http://go.microsoft.com/fwlink/?LinkId=179545">http://go.microsoft.com/fwlink/?LinkId=179545</a> for more information. TaskManager</p> <p>I check and it is not blocked! Please could you give me some guidance as to what could be wrong.</p> <p>Brian Watson</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7476 BrianWatson http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 01 Feb 2012 21:57:47 GMT Re: WCF RIA Services Part 1: Getting Started <p>Afraid that code dump in comments is both inappropriate and unreadable. If you can zip up the project with no binaries in it, you can email to me at brian.noyes AT idesign.net and I will take a look.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7462 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 30 Jan 2012 14:20:56 GMT Re: WCF RIA Services Part 1: Getting Started The code is missing in both the scenario's when .edmx file is within the TaskManager.Web server project or in a separated class library. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7461 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 30 Jan 2012 09:59:14 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain</p> <p>i've noticed one difference between your code and my code.</p> <p>the auto generated <strong>TaskManager.Web.g.cs</strong> in the silverlight application is different from yours and mine.</p> <p><strong>Your code:</strong></p> <span style="font-family: consolas; color: #008000; font-size: 13px;"> <p>//------------------------------------------------------------------------------</p> <p>// <auto-generated></p> <p>// This code was generated by a tool.</p> <p>// Runtime Version:4.0.30319.239</p> <p>//</p> <p>// Changes to this file may cause incorrect behavior and will be lost if</p> <p>// the code is regenerated.</p> <p>// </auto-generated></p> <p>//------------------------------------------------------------------------------</p> <p> </p> <p> </p> <p> </p> </span> <p><span style="font-family: consolas; font-size: 13px;"></span></p> <p> </p> <p>namespace</p> <p> </p> <p> </p> <p> </p> <p>TaskManager </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.Collections.Generic; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ComponentModel; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ComponentModel.DataAnnotations; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.Linq; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices.Client; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices.Client.ApplicationServices; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Context for the RIA application. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><remarks> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> This context extends the base to make application services and types available </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> for consumption from code and xaml. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></remarks> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">sealed</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">class</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span><span style="font-family: consolas; font-size: 13px;"> : </span>WebContextBase </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#region</p> <p> </p> <p> </p> <p> </p> <p>Extensibility Method Definitions </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> This method is invoked from the constructor once initialization is complete and </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> can be used for further object setup. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnCreated(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#endregion</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Initializes a new instance of the WebContext class. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span> WebContext() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnCreated(); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets the context that is registered as a lifetime object with the current application. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><exception cref="InvalidOperationException"></span> is thrown if there is no current application, </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> no contexts have been added, or more than one context has been added. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></exception> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><seealso cref="System.Windows.Application.ApplicationLifetimeObjects"/> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">static</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span> Current </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span><span style="font-family: consolas; font-size: 13px;">)(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContextBase</span>.Current)); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>namespace</p> <p> </p> <p> </p> <p> </p> <p>TaskManager.Web </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.Collections.Generic; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ComponentModel; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ComponentModel.DataAnnotations; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.Linq; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.Runtime.Serialization; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices.Client; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.DomainServices.Client.ApplicationServices; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span> System.ServiceModel.Web; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> The 'Task' entity class. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataContract</span><span style="font-family: consolas; font-size: 13px;">(Namespace=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://schemas.datacontract.org/2004/07/TaskManager.Web"</span>)] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">sealed</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">class</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;"> : </span>Entity </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> _customerId; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> _description; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> _endDate; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> _projectId; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> _startDate; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span> _taskId; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> _taskName; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">private</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> _userId; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#region</p> <p> </p> <p> </p> <p> </p> <p>Extensibility Method Definitions </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> This method is invoked from the constructor once initialization is complete and </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> can be used for further object setup. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnCreated(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnCustomerIdChanging(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnCustomerIdChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnDescriptionChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnDescriptionChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnEndDateChanging(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnEndDateChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnProjectIdChanging(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnProjectIdChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnStartDateChanging(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnStartDateChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnTaskIdChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnTaskIdChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnTaskNameChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnTaskNameChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"> OnUserIdChanging(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> value); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnUserIdChanged(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#endregion</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Initializes a new instance of the </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span> class. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span> Task() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnCreated(); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'CustomerId' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">RoundtripOriginal</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> CustomerId </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._customerId; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._customerId != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnCustomerIdChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"CustomerId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"CustomerId"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._customerId = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"CustomerId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnCustomerIdChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'Description' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> Description </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._description; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._description != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnDescriptionChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"Description"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"Description"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._description = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"Description"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnDescriptionChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'EndDate' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> EndDate </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._endDate; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._endDate != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnEndDateChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"EndDate"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"EndDate"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._endDate = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"EndDate"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnEndDateChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'ProjectId' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">RoundtripOriginal</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> ProjectId </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._projectId; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._projectId != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnProjectIdChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"ProjectId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"ProjectId"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._projectId = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"ProjectId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnProjectIdChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'StartDate' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span>> StartDate </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._startDate; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._startDate != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnStartDateChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"StartDate"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"StartDate"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._startDate = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"StartDate"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnStartDateChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'TaskId' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Editable</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">false</span><span style="font-family: consolas; font-size: 13px;">, AllowInitialValue=</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span>)] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Key</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">RoundtripOriginal</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span> TaskId </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._taskId; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._taskId != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnTaskIdChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskId"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._taskId = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaisePropertyChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnTaskIdChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'TaskName' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Required</span>()] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">StringLength</span>(250)] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span> TaskName </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._taskName; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._taskName != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnTaskNameChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskName"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskName"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._taskName = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskName"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnTaskNameChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Gets or sets the 'UserId' value. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DataMember</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Nullable</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">int</span>> UserId </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._userId; </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>set </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">if</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._userId != </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>)) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.OnUserIdChanging(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanging(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"UserId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateProperty(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"UserId"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">._userId = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">value</span>; </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.RaiseDataMemberChanged(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"UserId"</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnUserIdChanged(); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Computes a value from the key fields that uniquely identifies this entity instance. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">An object instance that uniquely identifies this entity instance.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">override</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">object</span> GetIdentity() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>._taskId; </p> <p> </p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> The DomainContext corresponding to the 'TasksDomainService' DomainService. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">sealed</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">class</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TasksDomainContext</span><span style="font-family: consolas; font-size: 13px;"> : </span>DomainContext </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#region</p> <p> </p> <p> </p> <p> </p> <p>Extensibility Method Definitions </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> This method is invoked from the constructor once initialization is complete and </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> can be used for further object setup. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span> OnCreated(); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>#endregion</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Initializes a new instance of the </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="TasksDomainContext"/></span> class. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span> TasksDomainContext() : </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebDomainClient</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">ITasksDomainServiceContract</span><span style="font-family: consolas; font-size: 13px;">>(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Uri</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"TaskManager-Web-TasksDomainService.svc"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">UriKind</span>.Relative))) </p> <p> </p> <p>{</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Initializes a new instance of the </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="TasksDomainContext"/></span> class with the specified service URI. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="serviceUri"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The TasksDomainService service URI.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> TasksDomainContext(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Uri</span> serviceUri) : </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebDomainClient</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">ITasksDomainServiceContract</span>>(serviceUri)) </p> <p> </p> <p>{</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Initializes a new instance of the </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="TasksDomainContext"/></span><span style="font-family: consolas; color: #008000; font-size: 13px;"> class with the specified </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><paramref name="domainClient"/></span>. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="domainClient"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The DomainClient instance to use for this DomainContext.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> TasksDomainContext(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DomainClient</span> domainClient) : </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">base</span>(domainClient) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span>.OnCreated(); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Gets the set of </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span><span style="font-family: consolas; color: #008000; font-size: 13px;"> entity instances that have been loaded into this </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="TasksDomainContext"/></span> instance. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">EntitySet</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span>> Tasks </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p>get </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">base</span><span style="font-family: consolas; font-size: 13px;">.EntityContainer.GetEntitySet<</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span>>(); </p> <p> </p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Gets an EntityQuery instance that can be used to load </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span> entity instances using the 'GetTasks' query. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">An EntityQuery that can be loaded to retrieve </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span><span style="font-family: consolas; color: #008000; font-size: 13px;"> entity instances.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">EntityQuery</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span>> GetTasksQuery() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateMethod(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"GetTasksQuery"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">null</span>); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">base</span><span style="font-family: consolas; font-size: 13px;">.CreateQuery<</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">>(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"GetTasks"</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">null</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">false</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span>); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> Gets an EntityQuery instance that can be used to load </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span> entity instances using the 'GetTasksByStartDate' query. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="lowerDateTimeInclusive"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The value for the 'lowerDateTimeInclusive' parameter of the query.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="upperDateTimeInclusive"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The value for the 'upperDateTimeInclusive' parameter of the query.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">An EntityQuery that can be loaded to retrieve </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><see cref="Task"/></span><span style="font-family: consolas; color: #008000; font-size: 13px;"> entity instances.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">EntityQuery</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">> GetTasksByStartDateQuery(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span><span style="font-family: consolas; font-size: 13px;"> lowerDateTimeInclusive, </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span> upperDateTimeInclusive) </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Dictionary</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">object</span><span style="font-family: consolas; font-size: 13px;">> parameters = </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Dictionary</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">string</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">object</span>>(); </p> <p> </p> <p>parameters.Add(</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"lowerDateTimeInclusive"</span>, lowerDateTimeInclusive); </p> <p> </p> <p>parameters.Add(</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #a31515; font-size: 13px;">"upperDateTimeInclusive"</span>, upperDateTimeInclusive); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.ValidateMethod(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"GetTasksByStartDateQuery"</span>, parameters); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">base</span><span style="font-family: consolas; font-size: 13px;">.CreateQuery<</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">>(</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"GetTasksByStartDate"</span><span style="font-family: consolas; font-size: 13px;">, parameters, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">false</span><span style="font-family: consolas; font-size: 13px;">, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span>); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Creates a new EntityContainer for this DomainContext's EntitySets. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">A new container instance.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">protected</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">override</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">EntityContainer</span> CreateEntityContainer() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TasksDomainContextEntityContainer</span>(); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Service contract for the 'TasksDomainService' DomainService. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">ServiceContract</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">interface</span><span style="font-family: consolas; font-size: 13px;"> </span>ITasksDomainServiceContract </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Asynchronously invokes the 'GetTasks' operation. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="callback"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">Callback to invoke on completion.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="asyncState"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">Optional state object.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">An IAsyncResult that can be used to monitor the request.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">FaultContract</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">typeof</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DomainServiceFault</span><span style="font-family: consolas; font-size: 13px;">), Action=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasksDomainServiceFault"</span><span style="font-family: consolas; font-size: 13px;">, Name=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"DomainServiceFault"</span><span style="font-family: consolas; font-size: 13px;">, Namespace=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"DomainServices"</span>)] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">OperationContract</span><span style="font-family: consolas; font-size: 13px;">(AsyncPattern=</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span><span style="font-family: consolas; font-size: 13px;">, Action=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasks"</span><span style="font-family: consolas; font-size: 13px;">, ReplyAction=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasksResponse"</span>)] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebGet</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">IAsyncResult</span><span style="font-family: consolas; font-size: 13px;"> BeginGetTasks(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">AsyncCallback</span><span style="font-family: consolas; font-size: 13px;"> callback, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">object</span> asyncState); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Completes the asynchronous operation begun by 'BeginGetTasks'. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="result"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The IAsyncResult returned from 'BeginGetTasks'.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The 'QueryResult' returned from the 'GetTasks' operation.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">QueryResult</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">> EndGetTasks(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">IAsyncResult</span> result); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Asynchronously invokes the 'GetTasksByStartDate' operation. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="lowerDateTimeInclusive"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The value for the 'lowerDateTimeInclusive' parameter of this action.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="upperDateTimeInclusive"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The value for the 'upperDateTimeInclusive' parameter of this action.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="callback"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">Callback to invoke on completion.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="asyncState"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">Optional state object.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">An IAsyncResult that can be used to monitor the request.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">FaultContract</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">typeof</span><span style="font-family: consolas; font-size: 13px;">(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DomainServiceFault</span><span style="font-family: consolas; font-size: 13px;">), Action=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasksByStartDateDomainServiceFault"</span><span style="font-family: consolas; font-size: 13px;">, Name=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"DomainServiceFault"</span><span style="font-family: consolas; font-size: 13px;">, Namespace=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"DomainServices"</span>)] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">OperationContract</span><span style="font-family: consolas; font-size: 13px;">(AsyncPattern=</span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">true</span><span style="font-family: consolas; font-size: 13px;">, Action=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasksByStartDate"</span><span style="font-family: consolas; font-size: 13px;">, ReplyAction=</span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"http://tempuri.org/TasksDomainService/GetTasksByStartDateResponse"</span>)] </p> <p> </p> <p>[</p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebGet</span>()] </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">IAsyncResult</span><span style="font-family: consolas; font-size: 13px;"> BeginGetTasksByStartDate(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span><span style="font-family: consolas; font-size: 13px;"> lowerDateTimeInclusive, </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">DateTime</span><span style="font-family: consolas; font-size: 13px;"> upperDateTimeInclusive, </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">AsyncCallback</span><span style="font-family: consolas; font-size: 13px;"> callback, </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">object</span> asyncState); </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span> Completes the asynchronous operation begun by 'BeginGetTasksByStartDate'. </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span></summary> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><param name="result"></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The IAsyncResult returned from 'BeginGetTasksByStartDate'.</span></param> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><returns></span><span style="font-family: consolas; color: #008000; font-size: 13px;">The 'QueryResult' returned from the 'GetTasksByStartDate' operation.</span></returns> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;">QueryResult</span><span style="font-family: consolas; font-size: 13px;"><</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">> EndGetTasksByStartDate(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">IAsyncResult</span> result); </p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">internal</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">sealed</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">class</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">TasksDomainContextEntityContainer</span><span style="font-family: consolas; font-size: 13px;"> : </span>EntityContainer </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span> TasksDomainContextEntityContainer() </p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;">.CreateEntitySet<</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">Task</span><span style="font-family: consolas; font-size: 13px;">>(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">EntitySetOperations</span>.None); </p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p><strong>My Code:</strong></p> <p>//------------------------------------------------------------------------------</p> <p>// <auto-generated></p> <p>// This code was generated by a tool.</p> <p>// Runtime Version:4.0.30319.239</p> <p>//</p> <p>// Changes to this file may cause incorrect behavior and will be lost if</p> <p>// the code is regenerated.</p> <p>// </auto-generated></p> <p>//------------------------------------------------------------------------------</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"></span><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;">  </span></span></span></p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"></span></span></span></p> <p> </p> <p>namespace</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">SilverlightApplication1 </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.Collections.Generic; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.ComponentModel; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.ComponentModel.DataAnnotations; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.Linq; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.ServiceModel.DomainServices; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.ServiceModel.DomainServices.Client; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">using</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> System.ServiceModel.DomainServices.Client.ApplicationServices; </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> Context for the RIA application. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><remarks> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> This context extends the base to make application services and types available </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> for consumption from code and xaml. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></remarks> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">sealed</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">class</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span><span style="font-family: consolas; font-size: 13px;"> : </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;"><span style="font-family: consolas; color: #2b91af; font-size: 13px;"><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContextBase </span></span></span></p> <p><span style="font-family: consolas; color: #2b91af; font-size: 13px;"><span style="font-family: consolas; color: #2b91af; font-size: 13px;"><span style="font-family: consolas; color: #2b91af; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;">  </span></span></span></p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"></span></span></span></p> <p> </p> <p>#region</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">Extensibility Method Definitions </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> This method is invoked from the constructor once initialization is complete and </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> can be used for further object setup. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">partial</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">void</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> OnCreated(); </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;">  </span></span></span></p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"></span></span></span></p> <p> </p> <p>#endregion</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> Initializes a new instance of the WebContext class. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> WebContext() </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">this</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">.OnCreated(); </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>}</p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> Gets the context that is registered as a lifetime object with the current application. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></summary> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><exception cref="InvalidOperationException"></span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> is thrown if there is no current application, </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"> no contexts have been added, or more than one context has been added. </span></span></span></p> <p><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"><span style="font-family: consolas; color: #008000; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></exception> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;">///</span><span style="font-family: consolas; color: #008000; font-size: 13px;"> </span><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><seealso cref="System.Windows.Application.ApplicationLifetimeObjects"/> </span></span></span></p> <p><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"><span style="font-family: consolas; color: #808080; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">public</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">static</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"> Current </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;">get </span></span></span></p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"></span></span></span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">  </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>{</p> <p> </p> <p> </p> <p> </p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">return</span><span style="font-family: consolas; font-size: 13px;"> ((</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContext</span><span style="font-family: consolas; font-size: 13px;">)(</span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">WebContextBase</span><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;">.Current)); </span></span></p> <p><span style="font-family: consolas; font-size: 13px;"><span style="font-family: consolas; font-size: 13px;"></span></span></p> <p> </p> <p>}</p> <p>}</p> <p>}</p> <p>}</p> <p> </p> <p> </p> <p> </p> <p>The rest of the code is missing. probably this could be the reason.</p> <p>pls. help</p> <p>thank you</p> <p>manjerekar</p> <p> </p> <p> </p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7460 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 30 Jan 2012 09:54:34 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain</p> <p>i've done everything you asked me to do. but still i get this error...........  :(</p> <p>System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetTasks'. The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.<br />    at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)<br />    at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)<br />    at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)<br />    --- End of inner exception stack trace ---<br />    at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)<br />    at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)<br />    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)<br />    --- End of inner exception stack trace ---<br />    at System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndQueryCore(IAsyncResult asyncResult)<br />    at System.ServiceModel.DomainServices.Client.DomainClient.EndQuery(IAsyncResult asyncResult)<br />    at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)<br />    --- End of inner exception stack trace ---</p> <p> </p> <p>Request you to pls help me in this issue.</p> <p> </p> <p>Thank you</p> <p>Manjerekar</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7459 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 30 Jan 2012 09:21:36 GMT Re: WCF RIA Services Part 1: Getting Started <p>Manjerekarrao,</p> <p>You can't generate the metadata class when the EDMX is in a separate file. But just look at the structure - you dont need to generate it. All you need is a partial class for your entities class with the metadata attribute on it pointing to the class that redeclares the properties for you to add metadata to. Just mimic that structure in your data library where the EDMX is. You will need to add some domainservices references to that library so that all the same attributes are available.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7454 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 29 Jan 2012 20:54:22 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain,</p> <p>but how to generate the metadata classes. it gets generated only when we have the .edmx in the </p> <p style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">TaskManager.Web server project.</p> <br class="Apple-interchange-newline" /> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7453 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 29 Jan 2012 19:51:18 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brain,</p> <p>i think i might have missed adding the connection string. let me check once i'm back to office. Thank you once again.</p> <p> </p> <p>manjerekar</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7441 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 26 Jan 2012 18:22:21 GMT Re: WCF RIA Services Part 1: Getting Started <p>Manjerekar,</p> <p>Did you add the connection string that was added to your library containing the EDMX to the hosting web.config?</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7439 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 26 Jan 2012 02:05:24 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>i created my TaskModel.edmx in a separate class library and not in TaskManager.Web server project.</p> <p>when i try adding TasksDomainService in the TaskManager.Web project, i see that the 'Generate associated classes for metadata' option is disabled. I still went ahead and added the TasksDomainService. Rebuilt the complete solution and when i finally executed the application i get this error.....</p> <p>System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetTasks'. The remote server returned an error: NotFound. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.<br />    at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)<br />    at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)<br />    at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)<br />    --- End of inner exception stack trace ---<br />    at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)<br />    at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)<br />    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)<br />    --- End of inner exception stack trace ---<br />    at System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndQueryCore(IAsyncResult asyncResult)<br />    at System.ServiceModel.DomainServices.Client.DomainClient.EndQuery(IAsyncResult asyncResult)<br />    at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)<br />    --- End of inner exception stack trace ---</p> <p> </p> <p>Request you to pls help me in this issue.</p> <p> </p> <p>Thank you</p> <p>Manjerekar</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7437 manjerekarrao http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 25 Jan 2012 14:08:23 GMT Re: WCF RIA Services Part 1: Getting Started <p>If you are getting a 404 Not Found error, the only thing I can think of is that you do not have your domain service properly hosted by the web site that the Silverlight app is being launched from. It is worthwhile to fire up Fiddler and see exactly what is happening at a wire level, but since the addressing is all automatic with RIA Services, the only explanation would be if you added your domain service to a different project and did not add the right references and config information to the hosting web site.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7432 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 22 Jan 2012 16:55:00 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi. I've a  problem? I dont understand  error.</p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetOviXY'. El servidor remoto devolvió un error: NotFound. ---> System.ServiceModel.CommunicationException: El servidor remoto devolvió un error: NotFound. ---> System.Net.WebException: El servidor remoto devolvió un error: NotFound. ---> System.Net.WebException: El servidor remoto devolvió un error: NotFound.</span><span style="font-family: calibri;">   en System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)</span><span style="font-family: calibri;">   en System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)</span><span style="font-family: calibri;">   en System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)</span></p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">I  need help!</span> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   --- Fin del seguimiento de la pila de excepciones internas ---</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.ServiceModel.DomainServices.Client.WebDomainClient`1.EndQueryCore(IAsyncResult asyncResult)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.ServiceModel.DomainServices.Client.DomainClient.EndQuery(IAsyncResult asyncResult)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p style="margin: 0cm 0cm 10pt;"><span style="font-family: calibri;">   en System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)</span></p> <p> </p> <p style="margin: 0cm 0cm 10pt;"> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7431 VeronicaCastaeda http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 22 Jan 2012 09:23:28 GMT Re: WCF RIA Services Part 1: Getting Started <p>It works, thanks lot!</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7412 haiyun592 http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 15 Jan 2012 22:30:19 GMT Re: WCF RIA Services Part 1: Getting Started <p>haiyun592,</p> <p>You can simply use FirstOrDefault() on the Entities collection on the LoadOperations:</p> <p> </p> <p class="p1"><span class="s1">private</span> <span class="s1">void</span> button2_Click(<span class="s1">object</span> sender, <span class="s2">RoutedEventArgs</span> e)</p> <p class="p1">{</p> <p class="p2"><span class="s3">    </span>TasksDomainContext<span class="s3"> context = </span><span class="s1">new</span><span class="s3"> </span>TasksDomainContext<span class="s3">();</span></p> <p class="p1">    context.Load(context.GetTaskQuery(1), OnGetTaskCompleted, context);</p> <p class="p1">}</p> <p class="p1"><span class="s1">private</span> <span class="s1">void</span> OnGetTaskCompleted(<span class="s2">LoadOperation</span><<span class="s2">Task</span>> op)</p> <p class="p1">{</p> <p class="p1">    <span class="s1">var</span> task = op.Entities.FirstOrDefault();</p> <p class="p1">}</p> <br /> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7411 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 15 Jan 2012 17:40:54 GMT Re: WCF RIA Services Part 1: Getting Started Great series, Brian.  Thank you so much for de-mystifying RIA Services for us! http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7399 eczimskey http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 13 Jan 2012 02:30:27 GMT Re: WCF RIA Services Part 1: Getting Started <p>My question is, if the loadOp contains the resulting object, how to get a single value and assigned it to a variable, something like this:</p> <p>Suppose the method in domain service returns IQueryable<Customer></p> <p>foreach (var rcd in loadOP)<br /> {<br />     if  (rcd.FirstName == "haiyun592")<br />     {<br />          string strFirstName = rcd.FirstName;<br />     }<br /> }</p> <p>Thanks a lot Brian!</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7391 haiyun592 http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 11 Jan 2012 15:46:30 GMT Re: WCF RIA Services Part 1: Getting Started <p>haiyun592,</p> <p>Not entirely clear what your question is - are you asking how to call that method if you include it in your domain service? If so, once you declare it and compile, there will be another method on the DomainContext on the client side to get a query that represents that method - GetTaskQuery. That method will take the taskId argument, and you pass it to the Load method like a query that returns a collection. You wire up a callback and when the callback fires, the argument LoadOperation<Task> will contain the resulting object. See this topic in MSDN: http://msdn.microsoft.com/en-us/library/ee707362(v=VS.91).aspx</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7381 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 10 Jan 2012 14:53:53 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>Hot to use the following to a variable like var this_Task?</p> <p><span style="font-family: consolas; font-size: 13px;">public Task GetTask(int taskId)<br /> {<br />    return this.ObjectContext.Tasks.FirstOrDefault(t => t.TaskId == taskId);<br /> }</span></p> <p><span style="font-family: consolas; font-size: 13px;"></span> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7378 haiyun592 http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 09 Jan 2012 18:01:35 GMT Re: WCF RIA Services Part 1: Getting Started <p>Surajsv,</p> <p>I cover the rest of the CRUD methods in later articles. For POCO domain services, see my webinar:</p> <p>http://www.silverlightshow.net/video/WCF-RIA-Services-Webinar-4.aspx</p> <p>Thanks</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7335 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 22 Dec 2011 15:02:17 GMT Re: WCF RIA Services Part 1: Getting Started <p>Great stuff for the beginners, but do include the CRUD operations on the grid and the details of POCO domain services</p> <p>Thanks..... </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7333 surajsv http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 22 Dec 2011 09:06:39 GMT Re: WCF RIA Services Part 1: Getting Started Hard for me to say what is going on. Might want to do a diff with your server side code and the completed solution to try to see what is different. Has to be something wrong with your domain service class for it to not generate the client side types, or the link between the client and server project is not set up - check at the bottom of the project properties for the RIA Services link to see if it is set to the server project. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7331 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 23:36:13 GMT Re: WCF RIA Services Part 1: Getting Started <p>I recall you saying that in your article. What I ment to say is that at the end of Part 1, the TasksDomanContext is not generated anywhere in the project. After issuing the build, these three lines fail:</p> <p>         TasksDomainContext context = new TasksDomainContext ();</p> <p>         EntityQuery<Task> query = context.GetTasksByStartDateQuery (lowerDateVal, upperDateVal);<br />          LoadOperation<Task> loadOp = context.Load (query);</p> <p>with these kind of errors:</p> <p>The type or namespace name 'Task' could not be found (are you missing a using directive or an assembly reference?)</p> <p>The type or namespace name 'TasksDomainContext' could not be found (are you missing a using directive or an assembly reference?)</p> <p>The type or namespace name 'LoadOperation' could not be found (are you missing a using directive or an assembly reference?)</p> <p>The type or namespace name 'EntityQuery' could not be found (are you missing a using directive or an assembly reference?)</p> <p> </p> <p>My ultimate goal however is to be able to manipulate database values withing the code and not simply tie them to a control. Do you have any examples were a table/record can be stored in a structure where the individual records/columns can be access programmatically.</p> <p>All the examples on the internet simply show how to tie data to a xaml control for the user to see and change. I can't be the only person that needs to process the data internally.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7330 pauln http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 23:19:20 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Pauln,</p> <p>The TasksDomainContext is not generated from a drag and drop, it is code generated at compile time. What is generated in the drag drop is a DomainDataSource, which contains an instance of the TasksDomainContext in the XAML. Are you saying it did not generate that?</p> <p>Thanks</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7329 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 23:06:30 GMT Re: WCF RIA Services Part 1: Getting Started <p>The TasksDomainContext was never generated in my implementation when I dragged the Task entity type over.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7325 pauln http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 19:56:11 GMT Re: WCF RIA Services Part 1: Getting Started <p>Hi Bobby,</p> <p>The article does presume you have worked with database connections in Visual Studio before. Can't really give a full tutorial on that here. But instead of navigating to a mdf file, if you have the SQL Client selected as the provider, you enter a database server name and a database name (which would be TaskManager in this case) and that is all that is needed.</p> <p>This link will give you a much more detailed introduction to that part:</p> <p>http://msdn.microsoft.com/en-us/data/ff191186</p> <p>Regards</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7323 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 15:25:37 GMT Re: WCF RIA Services Part 1: Getting Started <p><span style="font-size: 10pt; font-family: arial,sans-serif;">Hi Brian,</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">Thank you for your great series of articles.</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">I am new to Silverlight and was wondering how you created your connection 'studio540.TaskManager.dbo' as shown in 'Entity Data Model Wizard'.</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">I ran the script 'TaskManager.sql' successfully. When in 'Entity Data Model Wizard' i click button 'New Connection' i choose file 'TaskManager.mdf' from directory 'c:\Program Files\Microsoft Sql Server\MSSQL10_50_SQLEXPRESS\MSSQL\DATA'. I click button Ok, Next, the wizard then asks 'The connection you selected uses a local data file that is not in the current project. Would you like to copy and modify the connection?' and which I choose yes. This will add database file 'TaskManager.mdf' to App_Data directory in the 'TaskManager.web' project. I have noticed from the source code you have kindly provided it does not include database file 'TaskManager.mdf' in 'TaskManager.web' project.</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">I have managed to complete successfully Part 1 to Part 7 (Authentication and Authorization) using this method.</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">I would very much appreciate your help or if you could guide me to any web site.</span></p> <p><span style="font-size: 10pt; font-family: arial,sans-serif;">Bobby</span></p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7322 bobby http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 20 Dec 2011 10:38:34 GMT Re: WCF RIA Services Part 1: Getting Started <p>Brian,</p> <p>Thanks for your advice. You interpreted my question correctly.</p> <p>I was not aware of limitations on parameter types (I will have to look deeper into this). I did a small proof of concept (to expose service methods to an mvvm SL application),  having parameter types generated with INPC implemented, including the same validation attributes (like [Required]), using X.shared.cs files to make server side custo, validation logic also available on the client...</p> <p>GeertD</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7266 geertd http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 28 Nov 2011 00:12:18 GMT Re: WCF RIA Services Part 1: Getting Started <p>You can definitely design your RIA domain services around POCOs, see my webcast on this subject linked in the right margin of the article. </p> <p>However, I think what you are getting at is that if your back end functionality is not focused on CRUD, is RIA Services really the right technology. </p> <p>I think there two important aspects to address here. </p> <p>The first one is that RIA services is inherently CRUD-centric, and while you can expose Invoke operations as you describe, there are limitations to the paramters types you can pass and you are losing a lot of benefit of RIA Services (i.e. CRUD - oriented query/update, change tracking, validation, etc.). So with that perspective, it would be easy to write it off as not a good fit. With POCO domain services, you could map the CRUD operations to do whatever you want, but it is still kind of putting a square peg in a round hole to use CRUD-centric operations to do more complex things. </p> <p>The other important aspect is to ask what your client platforms are. If they are only Silverlight or HTML 5 / JS, then consuming the RIA Services is not going to be a problem. If you are going to have WPF, iOS, Android, etc. clients, the consumption of RIA domain services is not as easy as consuming a REST-based HTTP service you expose yourself.</p> <p>So I generally think of using RIA Services when the app is inherently CRUD-oriented, at least for a significant number of use cases. I rarely use only RIA Services in an architecture. There are inevitably services that need multi-platform client support, or that are not a good fit for RIA Services, and so for those I put them alongside as WCF or REST based services.</p> <p>Hope that helps.</p> <p>Brian</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7265 brian.noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 27 Nov 2011 22:50:25 GMT Re: WCF RIA Services Part 1: Getting Started <p>Brian,</p> <p>RIA Services are mostly used for CRUD type operations. It also supports [Invoke] operations. All types used as input/output parameters of these [Invoke] operations are generated on the client (with INotifyPropertyChanged,... interfaces implemented making them MVVM enabled).</p> <p>In my case, I don't really have CRUD alike operations (and if I would have them in a later stage, they would  not be directly related to EF but would be based on POCO's), I currently only [Invoke] operations, and the client is Silverlight only. What are the pros/cons of using RIA Services for this scenario?</p> <p>Geert.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment7264 geertd http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 27 Nov 2011 17:57:56 GMT Re: WCF RIA Services Part 1: Getting Started Thanks ,  very helpful article http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment6606 tajnaj http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 04 Oct 2011 21:36:45 GMT Re: WCF RIA Services Part 1: Getting Started I had to be sure to save and BUILD  my TaskManager.Web project after I created my taskManagerEntities object. Otherwise, when I tried to create my DomainService, I could not see the ObjectContext.<br />  <br /> <span style="line-height: 115%; font-size: 11pt; font-weight: normal;">After the last step when I did a BUILD and then ran the app, I got a IE page with the Tasks table column headings, but no data. I moved the cursor to each of the column titles and clicked. ONE of them caused the data to appear, cant remember which column title I clicked.</span><b><span style="line-height: 115%; font-family: times new roman, serif; font-size: 11pt;"><br /> <br /> </span></b><strong><span style="line-height: 115%; font-size: 11pt; font-weight: normal;">Thanks Brian, looking forward to the other ariticles !!</span></strong> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment6478 iqworks http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 07 Sep 2011 01:07:40 GMT RE: WCF RIA Services Part 1: Getting Started FrustratedOne: Could you be more specific about what you didn't like for other's benefit? http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment6053 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 04 May 2011 15:27:51 GMT RE: WCF RIA Services Part 1: Getting Started <p>I have one thing to say about this technology.</p> <p>It's perfect... NOT!!!!!!!!!!!!!!!!!!!</p> <p>The shittiest piece of software I've ever seen.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment6052 FrustratedOne http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 04 May 2011 14:34:05 GMT RE: WCF RIA Services Part 1: Getting Started Great serie of post for a newbie in Silverlight... :) http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5575 Mickaël http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 24 Feb 2011 16:24:44 GMT RE: WCF RIA Services Part 1: Getting Started Dev, not clear on the exact order of steps you are taking, but it shouldn't matter if you are model or database first with EF. Besides, the dialog you are referring to is a one time code generation for the domain service that really only writes a tiny bit of code for you and it is not hard to write yourself. Just create a simple domain service following the process in this article and then mimic the method patterns in your own domain service. This code is just a starting point anyway. As you will see in the later articles, you often have to modify the update/insert/delete methods to introduce business logic or to vary the query patterns. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5545 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 20 Feb 2011 23:17:44 GMT RE: WCF RIA Services Part 1: Getting Started Very good article. I was following this article with model first. I created empty EF Object as separated dll. I am using it in my silverlight.web project and try to create RIA Service. I am able to create RIA service using my empty model but wondering it does not display table ( as i have 2 item in that empty object). Second thing if continue with that and try to build the prj it give error like Unable to find object in metadata where as i have already added EF dll over there. It will good if someone can help me out with this. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5519 Dev http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 16 Feb 2011 17:17:19 GMT RE: WCF RIA Services Part 1: Getting Started <p>Finally!! a Real Happy Ending</p> <p>Brian,</p> <p>I uninstall-ed  and  reinstalled VS 2010, Silverlight 4 and the associated (SDK and Tools) files. The Drag and Drop works as described in your article and the required references and namespaces are generated automatically..</p> <p>Once again Thanks for all your help!! and I look forward to enjoying the rest of your articles.</p> <p>Best Regards</p> <p>Hari</p> <p><br /> </p> <p><br /> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5480 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 11 Feb 2011 16:17:21 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hari:</p> <p>Everything you described doing manually is normally done automatically by VS when you do the drag drop operation, so there must be something weird about your environment. Whenever you drag and drop a control from the Toolbox, it adds the appropriate references, adds the XML namespace, and adds the element for the control. The same is true for the Data Sources window when it generates controls based on a data object being dropped. When you drop a RIA Services entity, it also adds the DomainServices.Controls library and namespace because that is what the DomainDataSource object lives in. And the XAML generation for the DDS should have declared the DomainContext as well.</p> <p>Why your machine is not doing that is more of a question for Visual Studio tech support than for me though.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5471 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 10 Feb 2011 18:34:50 GMT RE: WCF RIA Services Part 1: Getting Started <p>Brian,</p> <p>Happy ending  of sorts!! However a few observations and questions. This might be a tad bit lengthy</p> <p>The Silverlight.Web project had all the correct references for Domain Services but I had to manually add the following references to the Silverlight project 1) System.Windows.Controls, 2) System.Windows.Data, 3) System.Windows.DataInput and most importantly 4) System.Windows.Controls.DomainServices. I had to browse for this from another project because the popup window, when adding a reference,  did not show it.--- Any Thoughts??</p> <p> I am not sure why the first three did not get added automatically when the "Using System.Windows.Controls; " was present in the MainPage.xaml .cs file.-- any Thoughts?</p> <p><br /> </p> <p>Lastly - I had to create the context</p> <p><riaControls:DomainDataSource AutoLoad="True" d:DesignData ="{d:DesignInstance my:Task, CreateList=true}" Height="0" LoadedData="taskDomainDataSource_LoadedData" Name="taskDomainDataSource" QueryName="GetTasksQuery" Width="0"></p> <p>            <riaControls:DomainDataSource.DomainContext><br />                 <my:TaskDomainContext /><br />             </riaControls:DomainDataSource.DomainContext><br />         </riaControls:DomainDataSource></p> <p> and the method in the main page.xaml.cs file "private void taskDomainDataSource_LoadedData(object sender, System.Windows.Controls.LoadedDataEventArgs e)"   by copying it from your completed folder </p> <p>Once I completed  these , I was then  able to drag and drop the "Task" table onto the design surface and run it.</p> <p>Any thoughts why the references or context  did not get added  would be appreciated. Am I missing something. Would I have to do this for every project that uses Domain Services??</p> <p>Warm Regards</p> <p>Hari</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5466 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 10 Feb 2011 00:00:37 GMT RE: WCF RIA Services Part 1: Getting Started <p>Thanks Brian,</p> <p>I will try it and let you know as soon as I have something positive to report, Appreciate all your help!!</p> <p>Warm Regards</p> <p>Hari</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5451 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 08 Feb 2011 01:37:35 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hari, unfortunately I have no idea what could be wrong with your environment that would cause that. Ultimately all it is doing is some XAML code generation, so you can create the app without the drag and drop experience, but admittedly that is not the greatest answer. Do you have another machine or a virtual machine you could try on to see if it is just a single machine problem or something common to the way you are setting up your machine?</p> <p>Another thing to try to see if this is a RIA Services problem or a general visual studio one: Create an empty Silverlight Application project. Add a class to it, call it Customer or whatever. Define a couple properties on the class and make sure it is public. Compile the project. Then bring MainPage.xaml up in the designer, open the Data Sources window, click on the link or button to Add a New Data Source. Select the Object data source type, then select your Customer type from the namespace tree in the next step. After completing the wizard, you should see your customer type in the Data Sources window. Drag and drop that on the form and see if you get the same problem. If so this has nothing to do with RIA Services. If it does works, that at least isolates things to RIA Services.</p> <p>If it is isolated to RIA Services, send me your project to brian.noyes AT idesign.net so I can see if it "works on my machine". Make sure to delete the bin and obj folders of the solution projects so it doesn't get rejected by my email provider.</p> <p>Thanks, Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5450 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 08 Feb 2011 01:26:12 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>I know that you are extremely busy and I regret being a nuisance newbie but any Help! (or email of someone else who has solved this problem), would be very sincerely appreciated. My dev environment is Windows 7 Ultimate, VS 2010 Professional. I have uninstall-ed and reinstalled the latest silverlight 4 and tools twice and I keep getting the same message. Field not found-' DesignProperties,DesignDataProperty'</p> <p>Thanks <br /> Hari</p> <p><br /> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5449 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 08 Feb 2011 00:59:36 GMT RE: WCF RIA Services Part 1: Getting Started <p>Brian</p> <p>I have tried it twice.</p> <p>Hari</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5438 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 06 Feb 2011 00:33:53 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hari:</p> <p>Have you tried uninstalling Silverlight 4 Tools for Visual Studio 2010, downloading the latest, and then reinstalling the tools?</p> <p>Thanks</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5437 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 06 Feb 2011 00:26:05 GMT RE: WCF RIA Services Part 1: Getting Started <p>Brian</p> <p>I am using C#  and thanks for the quick response.-hari</p> <p>iyer.hari.k@gmail.com</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5436 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sun, 06 Feb 2011 00:23:26 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hari,</p> <p>Do you happen to be in VB as well, or C#?</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5435 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 05 Feb 2011 21:57:46 GMT RE: WCF RIA Services Part 1: Getting Started <p>HI Brian,</p> <p>I am really enjoying the series but regrettably,  I am having the same problem as Babak--ie:-File Not Found 'DesignProperties.DesignDataProperty" when dragging the Events table onto to the "Home" page.</p> <p>Please help and share the solution, Maestro!!...What references and namespaces do I need to update?</p> <p>Thanks</p> <p>Hariiyer.hari.k@gmail.com</p> <p><br /> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5434 Hari Iyer http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 05 Feb 2011 19:03:54 GMT RE: WCF RIA Services Part 1: Getting Started Great article. I am starter and this was the perfect thing for me. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5358 Gopala Chintakindi http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 21 Jan 2011 04:54:30 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Brian!</p> <p>Thank you for your fast response. I updated the references in the Project und the namespaces in the .xaml file and now...it works.</p> <p>Babak</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5218 Babak http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 03 Jan 2011 14:40:39 GMT RE: WCF RIA Services Part 1: Getting Started <p>Oops, the referred to post:</p> <p><a href="http://forums.silverlight.net/forums/p/186405/426400.aspx">http://forums.silverlight.net/forums/p/186405/426400.aspx</a></p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5179 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 29 Dec 2010 18:18:45 GMT RE: WCF RIA Services Part 1: Getting Started <p>Babak,</p> <p>Please make sure you are not running a pre-release version of the Silverlight 4 Tools or RIA framework. See this forum post, sounds like this was a known problem in the pre-release bits, but should not be happening with the released bits. If you are sure you are on the released bits, send me a note brian.noyes AT idesign.net and I'll try to help you sort it out.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5178 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 29 Dec 2010 18:18:20 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Brian, </p> <p>Because of this error "Field not found: DesignProperties.DesignDataProperty", I con not continue with the example. I tried all what you wrote, but it does not work.</p> <p>Babak</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5177 Babak http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 29 Dec 2010 14:31:26 GMT RE: WCF RIA Services Part 1: Getting Started <p>Awesome. Just starting out in C# and SL, moving from PHP and Flex, and find articles like this invaluable.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5163 PUK http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 25 Dec 2010 05:18:30 GMT RE: WCF RIA Services Part 1: Getting Started Links at the top of each article. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5092 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 15 Dec 2010 21:44:27 GMT RE: WCF RIA Services Part 1: Getting Started where can i find the next article? http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5090 ecr http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 15 Dec 2010 19:33:12 GMT RE: WCF RIA Services Part 1: Getting Started Peter, I dont think it is anything particular to VB. I just went through the steps myself with VB and it worked fine. I have seen this error on occasion before. Make sure everything builds fine on the server and client before doing the drag drop. If that doesn't clear it, try closing Visual Studio and deleting the .suo file from the solution root folder, the \bin and \obj folders from the project directory, then open the solution, rebuild all, and see if it works then. If not, I'm not sure what the issue could be. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5054 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 10 Dec 2010 16:40:30 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Brian,</p> <p>Excellent article, where instead of simply presenting the solution as an outcome, some background is given about WHY it has to be done in a certain sequence. Thanks for that, it makes it easier to understand and reproduce in future development.</p> <p>One quesion though: after following your steps until the point where I would drag the grid from the datasources, I get the error message "Field not found: DesignProperties.DesignDataProperty". What is wrong in my approach? B.t.w. I use VB instead of C#, but no coding has been done so far...</p> <p>Best regards,</p> <p>Peter</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment5050 Peter Klein http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 09 Dec 2010 23:03:55 GMT RE: WCF RIA Services Part 1: Getting Started Ronald, you probably have a configuration problem with your connection string or the database. To know, you will need to handle the callback for the Load method, which is covered in later articles. You may want to skip ahead to the debugging part of Part 8 and come back to this one. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4959 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 25 Nov 2010 14:41:47 GMT RE: WCF RIA Services Part 1: Getting Started <p>how to solve this: </p> <p>an unhandled exception ('unhandled error in silverlight application code:4004 categroy: managedruntimeerror<br> </br>message:<br> </br>system.servicemodel.domainservices.client.Domainoperationexception: load operation failed for query 'GetTasks'. </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4956 Ronald http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 25 Nov 2010 06:55:02 GMT RE: WCF RIA Services Part 1: Getting Started Its very good article for wcf ria services with silverlight......... http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4852 kiran http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 12 Nov 2010 16:41:24 GMT RE: WCF RIA Services Part 1: Getting Started <p>It is nice article for whom starting new wcf ria services</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4851 Thiru http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 12 Nov 2010 16:39:54 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Cleyton,</p> <p>Sorry for the delay on the remaining three articles. Sometimes life intervenes... I hope to have the debugging and testing one out by end of October, and the remaining two by end of November.</p> <p> </p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4665 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 13 Oct 2010 13:46:40 GMT RE: WCF RIA Services Part 1: Getting Started I managed to set up the DomainDataSource and bind it to a DataGrid by entering the XAML code manually. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4661 Glen http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 13 Oct 2010 12:24:59 GMT RE: WCF RIA Services Part 1: Getting Started I am using Visual Studio 2008 with Silverlight and RIA components installed (but .Net 3). Everything went fine for me until it came to adding the data source to the page. My Data Sources window states "Your project currently has no data sources associated with it...." I tried to add one by searching for services within the solution but it did not find the domain service. Also I did not get a Generated_Code folder. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4660 Glen http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 13 Oct 2010 12:07:33 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi,</p> <p>I would like to congratulate you on these articles. They are fantastic. Thanks for this brillant series of articles. </p> <p>I really would like to learn how to test WCF Ria services and other stuff. </p> <p>When are you planning to finish the remaining articles?</p> <ol> <li>Debugging and Testing WCF RIA Services Applications </li> <li>Structuring WCF RIA Services Applications </li> <li>Exposing Additional Domain Service Endpoints for Other Clients </li> </ol> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4656 Cleyton http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 13 Oct 2010 11:54:58 GMT RE: WCF RIA Services Part 1: Getting Started I want it, http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4625 Venkat http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 07 Oct 2010 16:15:20 GMT RE: WCF RIA Services Part 1: Getting Started Thanks a lot..<br /> It helped me getting started with RIA Services and actually implementing a domain service http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4601 Mukesh http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 02 Oct 2010 14:37:38 GMT RE: WCF RIA Services Part 1: Getting Started <p>Really awesome ! Helped me to start with WCF RIA Services</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4248 Benson http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 17 Aug 2010 11:08:03 GMT RE: WCF RIA Services Part 1: Getting Started Hi Jesper, thanks for the info, but I don't see where I mentioned either ServiceName or Name in my article, I am using the default attribute that just uses the type name. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4101 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 31 Jul 2010 10:15:44 GMT RE: WCF RIA Services Part 1: Getting Started <p>In the RIA Service Breaking changes doc it says:</p> <p>The EnableClientAccessAttribute.ServiceName property has been removed. Instead, use the ServiceContractAttribute.Name property.</p> <p> Just so you know, and can update your article if you want it up to date.</p> <p> Keep up the good work :)</p> <p></p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4092 Jesper http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Fri, 30 Jul 2010 17:53:02 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Cliff - sorry for the delay in responding.</p> <p>Shawn is correct, the sample database just inserts four rows in the Task table and no related entities at this point. If you populate some related rows yourself manually, they would still not show up unless you do two things:</p> <p>- Add .Include calls to the Tasks query on the ObjectContext in the domain service to get Entity Framework to load the related entities.</p> <p>- Add [Include] attributes on the respective properties on the entity metadata class to get RIA Services to transfer those entities to the client side.</p> <p>Let me know if you have any follow on questions.</p> <p>Thanks</p> <p>Brian</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4032 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 21 Jul 2010 17:50:44 GMT RE: WCF RIA Services Part 1: Getting Started <p>@Cliff:</p> <p>I just took a look at the data in the tasks table...those columns have null values in the table, and that is why they are empty in the grid.</p> <p>Getting the data to display the related info as you need would be a case of shaping your model to have the columns you want to display, and then changing your queries accordingly.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment4020 Shawn http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 21 Jul 2010 09:19:10 GMT RE: WCF RIA Services Part 1: Getting Started <p>Quick question..<br /> In your grid I noticed that the Project Id, Customer Id and User Id columns are blank. I am assuming these are foreign keys to related tables in the schema.  (I have a similar scenario). How can we get those columns populated or better yet, how can I get columsn from those related tables to show up in the grid (for example Customer Name or User Name) ?</p> <p>Thanks,  Cliff.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3982 Cliff http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 13 Jul 2010 09:03:57 GMT RE: WCF RIA Services Part 1: Getting Started Great stuff! Really easy to follow and understand! http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3893 Aga http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 30 Jun 2010 21:48:09 GMT RE: WCF RIA Services Part 1: Getting Started <p>Hi Brian, Good to see you in RIA space. Would you pl cover POCOs (or just presentation model) wih RIA services?</p> <p>thanks for the part 1.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3812 Pravin http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Thu, 17 Jun 2010 05:12:49 GMT RE: WCF RIA Services Part 1: Getting Started <p>VJ: I'll be covering that some in the next article. What you can do is create a domain service based on the DomainService base class instead of the LinqToEntities one. You an return IEnumerable<T> from query methods instead of IQueryable<T> and can do your own retrieval/update of your objects using whatever underlying API you need.</p> <p>There are a few restrictions on the parameters you can pass to your methods I'll get into in the next two installments, but you can have whatever data source you need under the covers by using POCOs and DomainService.</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3811 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 16 Jun 2010 18:47:23 GMT RE: WCF RIA Services Part 1: Getting Started <p>Nice tutorial! Very easy to understand.</p> <p>So how would one go about creating such a RIA service that could connect to something like CRM Dynamics?</p> http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3807 VJ http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Wed, 16 Jun 2010 15:47:15 GMT RE: WCF RIA Services Part 1: Getting Started Great Article For Starting RIA Services http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3799 Santosh http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Tue, 15 Jun 2010 11:55:42 GMT RE: WCF RIA Services Part 1: Getting Started Nen: That is planned for part 8. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3796 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 14 Jun 2010 23:12:01 GMT RE: WCF RIA Services Part 1: Getting Started great intro, thank you, can you also include on how to unit test RIA services. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3790 Nen http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Mon, 14 Jun 2010 08:53:35 GMT RE: WCF RIA Services Part 1: Getting Started At least 3 a month, should have the whole series done by end of summer. http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3782 Brian Noyes http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 12 Jun 2010 04:04:10 GMT RE: WCF RIA Services Part 1: Getting Started Great intro article.<br /> Is there a timeline for other parts of the series? http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#comment3781 TheRiddler http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx Sat, 12 Jun 2010 03:49:07 GMT