<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThumNet &#187; Laurens &#8216;t Hardt</title>
	<atom:link href="http://blog.thumnet.com/author/laurenshardt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thumnet.com</link>
	<description>- Jeffrey Tummers</description>
	<lastBuildDate>Fri, 23 Sep 2011 21:33:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ADO.NET Dataservices</title>
		<link>http://blog.thumnet.com/adonet-dataservices/81/</link>
		<comments>http://blog.thumnet.com/adonet-dataservices/81/#comments</comments>
		<pubDate>Fri, 29 May 2009 16:30:12 +0000</pubDate>
		<dc:creator>Laurens 't Hardt</dc:creator>
				<category><![CDATA[DevDays09]]></category>
		<category><![CDATA[adonet]]></category>
		<category><![CDATA[qnh]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=81</guid>
		<description><![CDATA[ADO.NET Dataservices is a new way to open your data to the web. It&#8217;s especially usefull in combination with a Rich Internet Client Application, such as a silverlight application or an AJAX application. Dataservices is an implementation of WCF but has some restrictions to it. Dataservices makes use of the ATOM or the JSON format &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/adonet-dataservices/81/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>ADO.NET Dataservices is a new way to open your data to the web. It&#8217;s especially usefull in combination with a Rich Internet Client Application, such as a silverlight application or an AJAX application.</p>
<p>Dataservices is an implementation of WCF but has some restrictions to it.</p>
<ul>
<li>Dataservices makes use of the ATOM or the JSON format to transport the data, no other format is supported.</li>
<li>The data is transported over the HTTP or HTTPS protocol and no other protocol is supported.</li>
<li>Agarding to authentication you can´t use of the WCF authentication model. You are restricted to the standard authentication model ASP.NET offers you, Windows Authentication and Forms authentication.</li>
<li>Dataservices has a REST based interface implementation, witch means a request to the service can only be done using REST.</li>
</ul>
<p><strong>Getting started with Dataservices.</strong></p>
<p>To get started with Dataservices you first need to define a datasource. This datasource needs to implement IQueryable&lt;T&gt; for the Dataservices to use it. Two commonly used framework that implement this interface are LINQ2SQL and the Entity Framework. For use with Dataservices it&#8217;s prefered to use the EntityFramework. The  IQueryable&lt;T&gt;makes it possible for Dataservices to query the data but to be able to update insert and delete data the datasource also has to implement the IUpdateAble&lt;T&gt; interface, wich is implemented by the Entity Framework and not by LINQ2SQL.</p>
<p>Now the datasource is created the Dataservice has to be created. There is a new template for adding the dataservice in Visual Studio 2008 SP1.</p>
<div id="attachment_83" class="wp-caption alignnone" style="width: 176px"><img class="size-full wp-image-83" src="http://blog.thumnet.com/wp-content/uploads/2009/05/adodsserviceitem.png" alt="New Ado Service" width="166" height="71" /><p class="wp-caption-text">New Ado Service</p></div>
<p>After this has been added the dataservice needs to be pointed to the datasource, below is a sample of that where a NorthwindDataService  is Created which is pointed to a NorthwindDataContext. In the example the security is also set to read for all entities in the InitializeService method. The security can be set per entity and per method.</p>
<pre class="brush: csharp; title: ; notranslate">
public class NorthwindDataService : WebDataService&lt;NorthwindDataContext&gt; {
InitializeService(IWebDataServiceConfiguration config)
{
config.SetResourceContainerAccessRule
(&quot;*&quot;, ResourceContainerRights.AllRead);
}
}
</pre>
<p>Dataservices is queried by REST, this can be tested in a browser by calling the service. In the examples below it&#8217;s shown how to query the service. For this example the url of the service is <em>&#8216;http://localhost:5555/Bookmarks.svc&#8217;.</em></p>
<p>The url below request for the model of the data.</p>
<p><em>&#8216;http://localhost:5555/Bookmarks.svc$metadata&#8217;</em></p>
<div id="attachment_85" class="wp-caption alignnone" style="width: 582px"><img class="size-full wp-image-85" src="http://blog.thumnet.com/wp-content/uploads/2009/05/dataservicesmetadata.jpg" alt="Metadata" width="572" height="416" /><p class="wp-caption-text">Metadata</p></div>
<p>To request a list of all the bookmarks put the url below in the browser. Here the <em>&#8216;/Bookmarks</em><em>&#8216; </em>refers to the entityset Bookmarks.</p>
<p><em>&#8216;http://localhost:5555/Bookmarks.svc/Bookmarks&#8217;</em></p>
<p>As is shown in the metadata the key of Bookmark is the Id property. Every entity needs a key property. To get just 1 bookmark with id 1 the following url can be used:<br />
<em>&#8216;http://localhost:5555/Bookmarks.svc/Bookmarks(1)&#8217;</em></p>
<p>It&#8217;s also possible to get a list of entities based upon a filter. For example get all bookmarks with Tags Devdays. This is done by using keywords, which always begin with a ´$´, in the querystring.</p>
<p><em>&#8216;http://localhost:5555/Bookmarks.svc/Bookmarks?$filter=Tags eq Devdays&#8217;</em></p>
<p><em><span style="font-style: normal;">For Silverlight applications it&#8217;s possible to query dataservices using LINQ2Dataservices so you don&#8217;t have to create these url&#8217;s yourself buth you can just use LINQ to create queries.</span></em></p>
<p><em><span style="font-style: normal;">Much more information about ADO.NET Dataservices can be found on <a title="MSDN" href="http://msdn.microsoft.com/en-us/data/bb931106.aspx">MSDN</a>.</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/adonet-dataservices/81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 Navigation</title>
		<link>http://blog.thumnet.com/silverlight-3-navigation/70/</link>
		<comments>http://blog.thumnet.com/silverlight-3-navigation/70/#comments</comments>
		<pubDate>Thu, 28 May 2009 21:53:30 +0000</pubDate>
		<dc:creator>Laurens 't Hardt</dc:creator>
				<category><![CDATA[DevDays09]]></category>
		<category><![CDATA[qnh]]></category>
		<category><![CDATA[silverlight3]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=70</guid>
		<description><![CDATA[This post is about the session called What’s new in Silverlight 3 given by Mike Taulty. A major disadvantage of RIA, Rich Internet Application, is that the state is of an application can not be recovered after the browser has been closed. In Silverlight 3 there’s a solution for this problem. In SL3 you are &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/silverlight-3-navigation/70/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>This post is about the session called <strong>What’s new in Silverlight 3</strong> given by Mike Taulty.</p>
<p>A major disadvantage of RIA, Rich Internet Application, is that the state is of an application can not be recovered after the browser has been closed.</p>
<p>In Silverlight 3 there’s a solution for this problem. In SL3 you are now able to create a SL page. This in combination with the Frame and navigation Source make it possible to navigate through the same application based on the url.</p>
<p>The first part of the url is the path to the page on which the Silverlight page is located, for example <em>http://localhost/SLapp.html</em>.</p>
<p>After this the part of the url for the navigation within the application can be placed. This part must be preceded by a &#8216;#&#8217;, for example <em>http://localhost/SLapp.html#SearchPage.xaml</em>.</p>
<p>From webapplications we also now the querystring in the url for passing parameters to a site, this is also implemented in silverlight in the same way. The previously used url can then be formatted as followed <em>http://localhost/SLapp.html#SearchPage.xaml?title=silverlight</em></p>
<p>More information about <a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/04/09/silverlight-3-and-navigation-applications.aspx">page navigation</a> can be found at Mike Taulty&#8217;s blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/silverlight-3-navigation/70/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 Out of browser</title>
		<link>http://blog.thumnet.com/silverlight-3-out-of-browser/53/</link>
		<comments>http://blog.thumnet.com/silverlight-3-out-of-browser/53/#comments</comments>
		<pubDate>Thu, 28 May 2009 21:38:51 +0000</pubDate>
		<dc:creator>Laurens 't Hardt</dc:creator>
				<category><![CDATA[DevDays09]]></category>
		<category><![CDATA[qnh]]></category>
		<category><![CDATA[silverlight3]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=53</guid>
		<description><![CDATA[This post is about the session called What&#8217;s new in Silverlight 3 given by Mike Taulty In Silverlight 3 it is now possible to run the application as a standalone desktop application. To enable this functionality this must be enabled in the AppManifest.xml file of the application. The user can now choose to install the &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/silverlight-3-out-of-browser/53/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>This post is about the session called <strong>What&#8217;s new in Silverlight 3</strong> given by Mike Taulty</p>
<p>In Silverlight 3 it is now possible to run the application as a standalone desktop application. To enable this functionality this must be enabled in the <em>AppManifest.xml</em> file of the application.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;Deployment xmlns=&quot;http://schemas.microsoft.com/client/2007/deployment&quot;
xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
EntryPointAssembly=&quot;TaskList&quot;
EntryPointType=&quot;TaskList.App&quot;&gt;
&lt;Deployment.Parts&gt;
&lt;/Deployment.Parts&gt;
&lt;Deployment.ApplicationIdentity&gt;
&lt;ApplicationIdentity
ShortName=&quot;Task List&quot;
Title=&quot;Offline Task List&quot;&gt;
&lt;ApplicationIdentity.Blurb&gt;
Allows saving your tasks offline
&lt;/ApplicationIdentity.Blurb&gt;
&lt;/ApplicationIdentity&gt;
&lt;/Deployment.ApplicationIdentity&gt;
&lt;/Deployment&gt;
</pre>
<p>The user can now choose to install the application to the computer, on right mouse click the menu below is shown.</p>
<p><img class="alignnone size-full wp-image-54" src="http://blog.thumnet.com/wp-content/uploads/2009/05/sp3_install_menu.png" alt="sp3_install_menu" width="228" height="46" /></p>
<p>Next the user can choose where the shortcuts to the application will be placed.</p>
<p><img class="alignnone size-full wp-image-55" src="http://blog.thumnet.com/wp-content/uploads/2009/05/sl3_install_app.png" alt="sl3_install_app" width="462" height="195" /></p>
<p>The application can now be run from out of the browser but still in the same secure sandbox. The application is automatically updated whenever a new version of the application is available from the website.</p>
<p>After the application is installed it’s very easy for the user to remove the application from the computer. When running the application under the right mouse menu the option to install the application is now replaced by the option to remove the application.</p>
<p><img class="alignnone size-full wp-image-56" src="http://blog.thumnet.com/wp-content/uploads/2009/05/sp3_remove_menu.png" alt="sp3_remove_menu" width="166" height="47" /></p>
<p>Because it’s now possible to run Silverlight applications from the desktop it’s now also become possible to run a Silverlight application without having a internet connection.</p>
<p>A nifty feature is now introduced to Silverlight 3 to adapt to this situation. It’s is now possible to detect whether an internet connection is available or not.</p>
<p>Through the method <em>NetworkInterface.GetIsNetworkAvailable()</em> it’s possible to see if an internet connection is available. Through the <em>NetworkChange.NetworkAddressChanged</em> event network changes can be detected when a user connect or disconnect from the internet.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/silverlight-3-out-of-browser/53/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Today is the D(ev)-days</title>
		<link>http://blog.thumnet.com/today-the-dev-days/42/</link>
		<comments>http://blog.thumnet.com/today-the-dev-days/42/#comments</comments>
		<pubDate>Thu, 28 May 2009 06:30:55 +0000</pubDate>
		<dc:creator>Laurens 't Hardt</dc:creator>
				<category><![CDATA[DevDays09]]></category>
		<category><![CDATA[qnh]]></category>

		<guid isPermaLink="false">http://blog.thumnet.com/?p=42</guid>
		<description><![CDATA[Today we&#8217;re going to the deydays in the hague. Here we will be attending seminars about: Azure Services Platform, Microsoft in the cloud. C# 4.0, the future of the C# language. Silverlight 3.0, the new version of the Silverlight framework ASP.NET AJAX 4.0, the new AJAX framework by microsoft. Parallel programming, the new way for using multiple &#8230; </p><p><a class="more-link block-button" href="http://blog.thumnet.com/today-the-dev-days/42/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to the deydays in the hague.</p>
<p>Here we will be attending seminars about:</p>
<ul>
<li>Azure Services Platform, Microsoft in the cloud.</li>
<li>C# 4.0, the future of the C# language.</li>
<li>Silverlight 3.0, the new version of the Silverlight framework</li>
<li>ASP.NET AJAX 4.0, the new AJAX framework by microsoft.</li>
<li>Parallel programming, the new way for using multiple cores in .NET 4.0.</li>
</ul>
<p>We will keep you informed about these and other subjects of the devdays.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thumnet.com/today-the-dev-days/42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

