<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:dtvmedia="http://participatoryculture.org/RSSModules/dtv/1.0"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>J Mathews &#187; J Mathews,MCSD.Net</title>
	<atom:link href="http://www.justinemathews.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinemathews.com</link>
	<description>expertise in .Net technologies</description>
	<lastBuildDate>Tue, 17 Feb 2015 19:31:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<!-- podcast_generator="podPress/8.5" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>justinemathews@gmail.com ()</managingEditor>
		<webMaster>justinemathews@gmail.com</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>expertise in .Net technologies</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>justinemathews@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.justinemathews.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>J Mathews</title>
			<link>http://www.justinemathews.com</link>
			<width>144</width>
			<height>144</height>
		</image>
	<item>
		<title>Web API 2 &#8211; Cross-Origin Resource Sharing (CORS) Support</title>
		<link>http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/</link>
		<comments>http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/#comments</comments>
		<pubDate>Mon, 09 Feb 2015 12:45:05 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[MVC5]]></category>
		<category><![CDATA[WebApi]]></category>
		<category><![CDATA[WebApi2]]></category>
		<category><![CDATA[Web Api]]></category>
		<category><![CDATA[Web Api2]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=164</guid>
		<description><![CDATA[<p>Web API 2 has the CORS support&#160; out of the Box. Its available as attributes called EnabledCors and DisableCors. As an attribute it can be extended based on our requirement,&#160; we can easily bring the feature to allow or disallow specific external sites to share resource. Cross-Origin attribute can be enabled globally on WebApiConfig as...
<p><a class="read-more" href="http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/">Web API 2 &ndash; Cross-Origin Resource Sharing (CORS) Support</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Web API 2 has the <a href="http://www.w3.org/TR/cors/" target="_blank">CORS</a> support&#160; out of the Box. Its available as attributes called EnabledCors and DisableCors. </p>
<p>As an attribute it can be extended based on our requirement,&#160; we can easily bring the feature to allow or disallow specific external sites to share resource.</p>
<p>Cross-Origin attribute can be enabled globally on WebApiConfig as below.Install the Microsoft ASP.NET Web API 2.2 Cross-Origin from Nuget.</p>
<p>var apicors = new EnableCorsAttribute(&quot;*&quot;, &quot;*&quot;, &quot;GET,POST&quot;);    <br />config.EnableCors(apicors);</p>
<p>We can set the properties of the attribute by initializing EnableCorsAttribute, helps us to specify the origin sites, headers and methods.And also has option to specify wild char with â€œ*â€, to allow all or everyone.</p>
<p>Other way to implement it, in the Controller level applying as attribute to Controller or Action Methods. This has the flexibility to EnableCors to controller and DisableCors to selective action within the Controller.</p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/">Web API 2 &ndash; Cross-Origin Resource Sharing (CORS) Support</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2015/02/web-api-2-cross-origin-resource-sharing-cors-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nhibernate Subclassâ€“bring inheritance into model.</title>
		<link>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/</link>
		<comments>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 13:13:12 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[Discriminator]]></category>
		<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[Nhibernate]]></category>
		<category><![CDATA[Subclass]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=103</guid>
		<description><![CDATA[<p>Using Nhibernate subclass, we can easily bring the inheritance into model.In the real time business object models are making use of OOPS concepts and Lets see how we can map the object to data structure of SQL. Subclass and discriminator really help us to avoid one to one mapping of object to SQL table.See below...
<p><a class="read-more" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">nhibernate Subclassâ€“bring inheritance into model.</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Using Nhibernate subclass, we can easily bring the inheritance into model.In the real time business object models are making use of OOPS concepts and Lets see how we can map the object to data structure of SQL. </p>
<p>Subclass and discriminator really help us to avoid one to one mapping of object to SQL table.See below the object we want to map using Nhibernate,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/inheritance_class1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="inheritance_class" border="0" alt="inheritance_class" src="http://www.justinemathews.com/wp-content/uploads/2011/02/inheritance_class_thumb1.png" width="353" height="282" /></a></p>
<p>See also the data structure we need to map,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/sql_diagram1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="sql_diagram" border="0" alt="sql_diagram" src="http://www.justinemathews.com/wp-content/uploads/2011/02/sql_diagram_thumb1.png" width="414" height="156" /></a></p>
<p>Write Nhibernate mapping file for making use of the discriminator property,which specifies the type and base type, In our case discriminator column is PersonTypeId. Donâ€™t forget&#160; to use not null property for the discriminator column while mapping.</p>
<p>See the mapping file below,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2011/02/mapping_file.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="mapping_file" border="0" alt="mapping_file" src="http://www.justinemathews.com/wp-content/uploads/2011/02/mapping_file_thumb.png" width="644" height="274" /></a></p>
<p>This makes Employee and Student as type can be selectable with distinguished properties.</p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/">nhibernate Subclassâ€“bring inheritance into model.</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2011/02/nhibernate-subclassbring-inheritance-into-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.Net MVC with Entity Framework and Repository Pattern</title>
		<link>http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/</link>
		<comments>http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 17:06:15 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[ASP.Net MVC]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Entity Framework with Repository]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=53</guid>
		<description><![CDATA[<p>Repository pattern provides more object oriented way of encapsulating objects of the data store and operations can performed through neatly separated data classes. Please find below how Repository pattern implemented with entity framework and is consumed using asp.net mvc. Use either StructureMap or Ninject for dependency injection of the Entity Repository Factory object to the...
<p><a class="read-more" href="http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/">ASP.Net MVC with Entity Framework and Repository Pattern</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Repository pattern provides more object oriented way of encapsulating objects of the data store and operations can performed through neatly separated data classes. Please find below how Repository pattern implemented with entity framework and is consumed using asp.net mvc. Use either StructureMap or Ninject for dependency injection of the Entity Repository Factory object to the Controller classes.</p>
<p>Let us look at the Solution Structure first,</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0021.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="553" alt="clip_image002" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image002_thumb1.jpg" width="306" border="0" /></a></p>
<p>Inside the Models, there is two folders DataInterfaces and Data. DataInterfaces folder contains Repository Interfaces and Data folder contains the Operating classes.Created NorthwindEntities using entity framework with Northwind Database. </p>
<h4>Class Diagram of Repository</h4>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0041.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="244" alt="clip_image004" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image004_thumb1.jpg" width="555" border="0" /></a></p>
<h4>IBaseRepository</h4>
<p>Defines the interfaces that has the generic functionalities, which is need to be implemented in all repositories.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/image2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="291" alt="image" src="http://www.justinemathews.com/wp-content/uploads/2009/11/image_thumb2.png" width="549" border="0" /></a></p>
<h4>IRepositoryFactory</h4>
<p>Factory interface for the repositories, defines the interfaces to access the data objects, in this case customer object.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0081.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="193" alt="clip_image008" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image008_thumb1.jpg" width="628" border="0" /></a></p>
<h4>ICustomerRepository</h4>
<p>Entity specific repository, this is how the behavior of the object can be extended and can implement specific methods for the particular object.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0101.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 20px; border-right-width: 0px" height="199" alt="clip_image010" hspace="12" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image010_thumb1.jpg" width="628" border="0" /></a></p>
<h4>AbstractEntityRepository</h4>
<p>This abstract class implements the Base interface method for all repositories.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0121.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="425" alt="clip_image012" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image012_thumb1.jpg" width="628" border="0" /></a></p>
<h4>EntityRepositoryFactory</h4>
<p>Entity repository Factory class, through the data objects are exposed.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0141.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="279" alt="clip_image014" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image014_thumb1.jpg" width="628" border="0" /></a></p>
<h4>CustomerRepository</h4>
<p>Data object classes implements the object repository, in this case ICustomerRepository.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image0161.jpg" target="_blank"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="288" alt="clip_image016" src="http://www.justinemathews.com/wp-content/uploads/2009/11/clip_image016_thumb1.jpg" width="628" border="0" /></a></p>
<h4>EntityManager</h4>
<p>Provides the shared instance of the Entity Framework.Implemented using singleton pattern with nested class. </p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/image3.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="441" alt="image" src="http://www.justinemathews.com/wp-content/uploads/2009/11/image_thumb3.png" width="608" border="0" /></a></p>
<h4>CustomerController</h4>
<p>Before the controller implementation, run the test through the CustomercontrollerTest class.</p>
<p>Please see below, how this is implemented in the controller class. Using either StructureMap or Ninject for dependency injection of the Entity Repository Factory object to the Controller class.And refer the related entity i.e. Customer Entity in this case using GetCustomerEntity() and call required method. </p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2010/01/image.png"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="231" alt="image" src="http://www.justinemathews.com/wp-content/uploads/2010/01/image_thumb.png" width="630" border="0" /></a> </p>
<p>This completes implementation of sample method, Now ready to run the application. See the results below. Improved the look and feel using design template from <a href="http://www.ASP.net/mvc/gallery"><u>http://www.ASP.net/mvc/gallery</u></a>.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2009/11/image4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="417" alt="image" src="http://www.justinemathews.com/wp-content/uploads/2009/11/image_thumb4.png" width="644" border="0" /></a></p>
<p>&#160;<a href="http://www.justinemathews.com/wp-content/uploads/2009/11/image5.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 30px; border-right-width: 0px" height="484" alt="image" src="http://www.justinemathews.com/wp-content/uploads/2009/11/image_thumb5.png" width="481" border="0" /></a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/">ASP.Net MVC with Entity Framework and Repository Pattern</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2009/11/asp-net-mvc-with-entity-framework-and-repository-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST Service with WCF &#8211; Testing with Fiddler</title>
		<link>http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/</link>
		<comments>http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 13:03:20 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[REST]]></category>
		<category><![CDATA[REST;WCF]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=25</guid>
		<description><![CDATA[<p>In this article I am explaining simple REST service which can accept HTTP GET Request.In response to this request service return data in XML format.You could use return type as Json format as well.This can easily set with WCF interface attribute as&#160; ResponseFormat = WebMessageFormat.Xml.And if you associate your return type&#160; with DataContract attribute System.Runtime.Serialization...
<p><a class="read-more" href="http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/">REST Service with WCF &#8211; Testing with Fiddler</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this article I am explaining simple REST service which can accept HTTP GET Request.In response to this request service return data in XML format.You could use return type as Json format as well.This can easily set with WCF interface attribute as&#160; ResponseFormat = WebMessageFormat.Xml.And if you associate your return type&#160; with DataContract attribute System.Runtime.Serialization does the serialization for you.</p>
<h3>1) Create Service Library Project</h3>
<blockquote><p>Choose service library Template project as shown below,</p>
</blockquote>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2008/06/wcflib.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="WCFLib" src="http://www.justinemathews.com/wp-content/uploads/2008/06/wcflib-thumb.png" width="632" border="0" /></a></p>
<h3>2) Define your Contract and your data model</h3>
<blockquote><p>Reference System.ServiceModel.Web will enbable the HTTP requests, by attaching Webget Abbribute to your Contract and also define the Response format and&#160; UriTemplate which will be used for call the you method in the contract, which can be your method name as well.</p>
<p>Also define you data model class, attaching with Datacontract attribute will enable the runtime to serialize your object.</p>
</blockquote>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2008/06/contractandservice.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="467" alt="ContractAndService" src="http://www.justinemathews.com/wp-content/uploads/2008/06/contractandservice-thumb.png" width="644" border="0" /></a></p>
<h3>3) Implement the contract method</h3>
<blockquote><p>It is just implement contract method in your service.Also attach the InstanceContextMode in the service behaviour attribute will you while hosting for example with console application.</p>
</blockquote>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2008/06/service.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="383" alt="Service" src="http://www.justinemathews.com/wp-content/uploads/2008/06/service-thumb.png" width="613" border="0" /></a></p>
<blockquote><p>I have not done much change&#160; in the app config for the service yet, you can use default service&#160; configuration with webHttpBinding.</p>
</blockquote>
<h3>4) Hosting Your service with a Console application.</h3>
<blockquote><p>It time to Host your service, I am using simple hosting method which is useful debugging, Console application.</p>
<p>Reference the service library project and host the service as below.If you are running on Vista you might to run with administrator permission.</p>
</blockquote>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2008/06/host.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="host" src="http://www.justinemathews.com/wp-content/uploads/2008/06/host-thumb.png" width="579" border="0" /></a></p>
<h5>5) Make HTTP Request Using Fiddler Tool</h5>
<p>Your service is running in this case at http://localhost:8732/RestService and you want to call HelloWorld method.You have used the UriTemplate as /Hello.</p>
<p>The URL for Get request is http://localhost:8732/RestService/Hello, use it the Fiddler tool as shown below.</p>
<p><a href="http://www.justinemathews.com/wp-content/uploads/2008/06/fiddler.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="482" alt="fiddler" src="http://www.justinemathews.com/wp-content/uploads/2008/06/fiddler-thumb.png" width="601" border="0" /></a></p>
<p>You can the out in the selected text.Similarly you can extend this and you can other HTTP methods POST,PUT.In that case you can use WebInvoke attribute for contract method.</p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/">REST Service with WCF &#8211; Testing with Fiddler</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2008/06/rest-service-with-wcf-testing-with-fiddler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world with WCF</title>
		<link>http://www.justinemathews.com/2008/04/hello-world-with-wcf/</link>
		<comments>http://www.justinemathews.com/2008/04/hello-world-with-wcf/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:01:41 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[WCF]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Hello World]]></category>
		<category><![CDATA[J Mathews]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=12</guid>
		<description><![CDATA[<p>When I have started reading about WCF it looks like it involves lot XML configuration but its really cool.In this article I have started with simple example which does Hello world with WCF. 1) Create WCF Service Application Create a Console application and reference it with System.ServiceModel. Add an interface/Contract through we expose the service...
<p><a class="read-more" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Hello world with WCF</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>When I have started reading about WCF it looks like it involves lot XML configuration but its really cool.In this article I have started with simple example which does Hello world with WCF.</p>
<h3>1) Create WCF Service Application</h3>
<p>Create a Console application and reference it with System.ServiceModel. Add an interface/Contract through we expose the service functionalities. You could do this by attaching [ServiceContract] attribute for the interface.And add method that you want expose through the service contract, by attaching the attribute [OperationContract]. Now its time for the implementation of the method in your WCF service.</p>
<p>As shown below in the code snippet,</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/WCFServer.png" /></p>
<ol>
<li>
<h3>2) Configure your WCF Service.</h3>
</li>
</ol>
<p>Add configuration file to the solution to define the end points of your service.The <em>endpoint</em> of a service specifies an address where the service can be found, a binding that contains the information that a client must communicate with the service, and a contract that defines the functionality provided by the service to its clients.</p>
<p>Also define the service behavior and enable the service metadata behavior. End point is specified with the full length namespace of your contract which is WCFExample.WCFServer.ServerService.IWCFExample.</p>
<p>Now we specify the host base address in service tag. and it is http://localhost:8080/ServerService</p>
<p>The Configuration file will look as below,</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/ServerAppConfig.png" /></p>
<ol>
<li>
<h3>3) running the WCF service</h3>
</li>
</ol>
<p>Instantiate the service in your Main as shown below.</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/RunHost.png" /></p>
<ol>
<li>
<h3>4) Create a Client console application.</h3>
</li>
</ol>
<p>Add the service reference using the host address.it will create WCF client reference.Using the reference you could instantiate the WCF service and call the method, as shown below</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/wcfClient.png" /></p>
<p>Start WCF service and when you run the client application you could see the out put.</p>
<p><img alt="" src="http://www.justinemathews.com/wp-content/WCFSayHello_Images/wcfOutput.png" /></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world-with-wcf/">Hello world with WCF</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2008/04/hello-world-with-wcf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing Gridview Using LINQ</title>
		<link>http://www.justinemathews.com/2008/04/editing-gridview-using-linq/</link>
		<comments>http://www.justinemathews.com/2008/04/editing-gridview-using-linq/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 14:46:37 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Gridview]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=7</guid>
		<description><![CDATA[<p>Â Â Â Â Â Â Â This article describes the easiest way ofÂ editing gridviewÂ by using LINQ data source andÂ  Â Â Â Â Â Â  DataContext. Â Â Â Â Â Â Â Explained step by step as below, 1)Â Â Â Â Â  Create DataContext using Northwind Database. Â Drag and drop the Product table in to Northwind.dbml datacontext, as shown below. Â  2)Â Â Â Â Â  Add Grid view to webform and choose datasource for the Gridview. Choose new...
<p><a class="read-more" href="http://www.justinemathews.com/2008/04/editing-gridview-using-linq/">Read More &#8594;</a></p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/editing-gridview-using-linq/">Editing Gridview Using LINQ</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: left;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Â Â Â Â Â Â Â This article describes the easiest way ofÂ editing gridviewÂ by using LINQ data source andÂ  </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-align: left;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small; font-family: Calibri;">Â Â Â Â Â Â  DataContext. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Â Â Â Â Â Â Â Explained step by step as below,</span></span></span></p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; text-align: left; mso-list: l0 level1 lfo1;"><span style="mso-ansi-language: EN-GB; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;" lang="EN-GB"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">1)</span><span style="font: 7pt ">Â Â Â Â Â  </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB">Create DataContext using Northwind Database</span></strong><span style="mso-ansi-language: EN-GB;" lang="EN-GB">.</span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-align: left;">Â <span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Drag and drop the Product table in to Northwind.dbml datacontext, as shown below.</span></span></span></p>
<table class="MsoTableGrid" style="margin: auto auto auto 0.5in; border-collapse: collapse; height: 21px; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" border="1" cellspacing="0" cellpadding="0" width="500">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.65in; padding-top: 0in; background-color: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" width="638" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><img src="http://www.justinemathews.com/wp-content/LINQGridViewEditImages/image11.JPG" alt="" /></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin: 0in 0in 10pt;">Â </p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-ansi-language: EN-GB; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;" lang="EN-GB"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">2)</span><span style="font: 7pt ">Â Â Â Â Â  </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Add Grid view to webform and choose datasource for the Gridview.</span></span></span></strong></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Choose new datasource as LINQ which will add new LINQ datasource to page as shown below.</span></span></span></p>
<table class="MsoTableGrid" style="margin: auto auto auto 0.5in; border-collapse: collapse; height: 397px; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" border="1" cellspacing="0" cellpadding="0" width="574">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.65in; padding-top: 0in; background-color: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" width="638" valign="top">
<p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0pt; line-height: normal; mso-add-space: auto;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><img src="http://www.justinemathews.com/wp-content/LINQGridViewEditImages/image21.JPG" alt="" /></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small; font-family: Calibri;">Â </span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo1;"><strong style="mso-bidi-font-weight: normal;"><span style="mso-ansi-language: EN-GB; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;" lang="EN-GB"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">3)</span><span style="font: 7pt ">Â Â Â Â Â  </span></span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Configure the datasource </span></span></span></strong></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Choose the all column of the Product Table and also tick the advanced options.</span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in;">Â </p>
<table class="MsoTableGrid" style="margin: auto auto auto 0.5in; border-collapse: collapse; height: 361px; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" border="1" cellspacing="0" cellpadding="0" width="552">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.65in; padding-top: 0in; background-color: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" width="638" valign="top">
<p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0pt; line-height: normal; mso-add-space: auto;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small; font-family: Calibri;">Â <img src="http://www.justinemathews.com/wp-content/LINQGridViewEditImages/image31.JPG" alt="" /></span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;">Â </p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">And enable the editing option of the grid view.</span></span></span></span></p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;">Â </p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB">Â </span><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small; font-family: Calibri;">Â <img src="http://www.justinemathews.com/wp-content/LINQGridViewEditImages/image51.JPG" alt="" /></span></span></p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in;">Â </p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;">Yes you are done! When you run page you will see the grid is populated with all products and you also find the edit link with each row as shown below.</span></span></span></p>
<table class="MsoTableGrid" style="margin: auto auto auto 45pt; border-collapse: collapse; height: 353px; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" border="1" cellspacing="0" cellpadding="0" width="628">
<tbody>
<tr style="height: 14.9pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 429.95pt; padding-top: 0in; height: 14.9pt; background-color: transparent; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" width="573" valign="top">
<p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">Â Â Â Â Â Â Â </span><span style="mso-tab-count: 1;">Â Â Â Â Â Â Â Â  <img src="http://www.justinemathews.com/wp-content/LINQGridViewEditImages/image41.JPG" alt="" /></span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="mso-ansi-language: EN-GB;" lang="EN-GB"><span style="font-size: small; font-family: Calibri;">Â </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;">Â </p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/editing-gridview-using-linq/">Editing Gridview Using LINQ</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2008/04/editing-gridview-using-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Own Blog!</title>
		<link>http://www.justinemathews.com/2008/04/hello-world/</link>
		<comments>http://www.justinemathews.com/2008/04/hello-world/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 21:03:05 +0000</pubDate>
		<dc:creator><![CDATA[J Mathews,MCSD.Net]]></dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.justinemathews.com/?p=1</guid>
		<description><![CDATA[<p>I have got opportunity through my friend to create a blog and it just happened in couple of hours!!! I like it very much. I would like keep this blog really technical&#8230;.Let me see how far I can go&#8230; Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â </p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world/">My Own Blog!</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></description>
				<content:encoded><![CDATA[<div><span style="font-size: 10pt; color: #000000;"></span></div>
<p><span style="font-size: 10pt; color: #000000;"><span style="font-size: 10pt; color: #000000;"></p>
<p style="line-height: 14.25pt;"><span style="font-size: 10pt; color: #000000;">I have got opportunity through my friend to create a blog and it just happened in couple of hours!!!</span></p>
<p style="line-height: 14.25pt;"><span style="font-size: 10pt; color: #000000;">I like it very much.</span></p>
<p style="line-height: 14.25pt;"><span style="font-size: 10pt; color: #000000;">I would like keep this blog really technical&#8230;.Let me see how far I can go&#8230;</span></p>
<div></div>
<p><span style="font-size: 10pt; color: #000000;"></p>
<p style="line-height: 14.25pt;">Â </p>
<p>Â </p>
<p></span></span></p>
<p style="line-height: 14.25pt;">Â </p>
<div><span style="font-size: 10pt; color: #000000;"></span></div>
<p><span style="font-size: 10pt; color: #000000;"><span style="font-size: 10pt; color: #000000;"></p>
<p style="line-height: 14.25pt;">Â </p>
<p>Â </p>
<p>Â </p>
<p></span>Â </p>
<p></span></span></p>
<p>Â </p>
<p style="line-height: 14.25pt;">Â </p>
<p style="line-height: 14.25pt;">Â </p>
<p>Â </p>
<p>The post <a rel="nofollow" href="http://www.justinemathews.com/2008/04/hello-world/">My Own Blog!</a> appeared first on <a rel="nofollow" href="http://www.justinemathews.com">J Mathews</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinemathews.com/2008/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
