<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lei</title>
	<atom:link href="http://leiyuan7.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://leiyuan7.wordpress.com</link>
	<description>My work</description>
	<lastBuildDate>Thu, 12 Jan 2012 01:40:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='leiyuan7.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Lei</title>
		<link>http://leiyuan7.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://leiyuan7.wordpress.com/osd.xml" title="Lei" />
	<atom:link rel='hub' href='http://leiyuan7.wordpress.com/?pushpress=hub'/>
		<item>
		<title>What’s the difference between the Entity Framework and LINQ to SQL?</title>
		<link>http://leiyuan7.wordpress.com/2012/01/12/whats-the-difference-between-the-entity-framework-and-linq-to-sql/</link>
		<comments>http://leiyuan7.wordpress.com/2012/01/12/whats-the-difference-between-the-entity-framework-and-linq-to-sql/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 01:21:19 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[LINQ to Entities]]></category>
		<category><![CDATA[LINQ to SQL]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=87</guid>
		<description><![CDATA[LINQ TO SQL ENTITY FRAMEWORK Complexity Less complex More complex Model Domain model Conceptual data model DB Server SQL Server Variety of database products Development Time Rapid application development More time required but has mode features Mapping Type Class to single table Class to multiple tables Inheritance Difficult to apply Simple to apply File Types [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=87&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2012/01/12/whats-the-difference-between-the-entity-framework-and-linq-to-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between NUnit and Visual Studio 2010 Unit Testing</title>
		<link>http://leiyuan7.wordpress.com/2011/10/26/difference-between-nunit-and-visual-studio-2010-unit-testing/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/26/difference-between-nunit-and-visual-studio-2010-unit-testing/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 02:30:30 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=79</guid>
		<description><![CDATA[NUnit VS2010 DLL NUnit.Framework Microsoft.VisualStudio.TestTools.UnitTesting Annotation [TestFixture] [TestClass] Annotation [Test] [TestMethod] Annotation [Setup] [TestInitialize] Annotation [TestFixtureSetUp] [ClassInitialize] Annotation [TearDown] [TestCleanup] Annotation [TestFixtureTearDown] [ClassCleanup] Method Assert.Ignore Assert.Inconclusive Filed under: .NET, Testing<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=79&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/26/difference-between-nunit-and-visual-studio-2010-unit-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>On Becoming a Technical Lead</title>
		<link>http://leiyuan7.wordpress.com/2011/10/19/on-becoming-a-technical-lead/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/19/on-becoming-a-technical-lead/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 02:15:45 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=71</guid>
		<description><![CDATA[from Buu Nguyen Filed under: .NET<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=71&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/19/on-becoming-a-technical-lead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Display data from excel file in webpage using ASP.Net</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/display-data-from-excel-file-in-webpage-using-asp-net/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/display-data-from-excel-file-in-webpage-using-asp-net/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 01:09:38 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=64</guid>
		<description><![CDATA[protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // You can call YourPageName.aspx?cache=clear // to clear "XlsDataCache" cache. string qs = Request.QueryString["cache"]; if (qs != null) { if (qs == "clear") Cache.Remove("XlsDataCache"); } BindData(); } } protected void BindData() { string folderPath = "Your folder path here"; string fileName = "Your file name [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=64&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/display-data-from-excel-file-in-webpage-using-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>What should a developer know before building a public web site?</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/what-should-a-developer-know-before-building-a-public-web-site/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/what-should-a-developer-know-before-building-a-public-web-site/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 01:04:02 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=57</guid>
		<description><![CDATA[Ref from here The idea here is that most of us should already know most of what is on this list. But there just might be one or two items you haven&#8217;t really looked into before, don&#8217;t fully understand, or maybe never even heard of. Interface and User Experience Be aware that browsers implement standards [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=57&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/what-should-a-developer-know-before-building-a-public-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Silverlight &#8211; Zune 3D</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/silverlight-zune-3d/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/silverlight-zune-3d/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:58:25 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=49</guid>
		<description><![CDATA[Filed under: .NET<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=49&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/silverlight-zune-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>

		<media:content url="http://go.microsoft.com/fwlink/?LinkId=161376" medium="image">
			<media:title type="html">Get Microsoft Silverlight</media:title>
		</media:content>
	</item>
		<item>
		<title>Versioning with the Override and New Keywords</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/versioning-with-the-override-and-new-keywords/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/versioning-with-the-override-and-new-keywords/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:55:33 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=46</guid>
		<description><![CDATA[Ref from here The C# language is designed so that versioning between base and derived classes in different libraries can evolve and maintain backwards compatibility. This means, for example, that the introduction of a new member in a base class with the same name as a member in a derived class is completely supported by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=46&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/versioning-with-the-override-and-new-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Read data from CSV, and remove quotesm commas from numbers</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/read-data-from-csv-and-remove-quotesm-commas-from-numbers/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/read-data-from-csv-and-remove-quotesm-commas-from-numbers/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:54:12 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=44</guid>
		<description><![CDATA[public static void ReadCSV(string folderPath, string fileName) { using (StreamReader readFile = new StreamReader(folderPath + "\\" + fileName)) { string line; while ((line = readFile.ReadLine()) != null) { //Remove quotes, commas from numbers string pattern = "\"([0-9.,]+)\""; MatchEvaluator eval = delegate(Match match) { return match.Groups[1].Value.Replace(",", ""); }; line = new Regex(pattern).Replace(line, eval); string[] strResult = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=44&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/read-data-from-csv-and-remove-quotesm-commas-from-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Use SharpZip Library to upload Zipped CSV files, and save each extracted CSV into datbase.</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/use-sharpzip-library-to-upload-zipped-csv-files-and-save-each-extracted-csv-into-datbase/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/use-sharpzip-library-to-upload-zipped-csv-files-and-save-each-extracted-csv-into-datbase/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:53:09 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=42</guid>
		<description><![CDATA[protected void UploadButton_Click(object sender, EventArgs e) { if (this.IsValid) { if (FileUpload1.HasFile) { // get the name of the file to upload. string fileName = FileUpload1.FileName; string zipExtension = fileName.Substring(fileName.LastIndexOf('.') + 1).ToLower(); if (zipExtension == "zip") { string zippedFilesFolder = ConfigSettings.ZippedFilesFolder + fileName; // save zipped file on to folder. FileUpload1.SaveAs(zippedFilesFolder); string[] results = ProcessUploadedZip(fileName); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=42&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/use-sharpzip-library-to-upload-zipped-csv-files-and-save-each-extracted-csv-into-datbase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>-33.883000 151.217000</georss:point>
		<geo:lat>-33.883000</geo:lat>
		<geo:long>151.217000</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert String to ByteArray</title>
		<link>http://leiyuan7.wordpress.com/2011/10/17/convert-string-to-bytearray/</link>
		<comments>http://leiyuan7.wordpress.com/2011/10/17/convert-string-to-bytearray/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 00:51:43 +0000</pubDate>
		<dc:creator>Lei</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://leiyuan7.wordpress.com/?p=40</guid>
		<description><![CDATA[public static byte[] ConvertStringToByteArray(string stringToConvert) { return (new UnicodeEncoding()).GetBytes(stringToConvert); } public static string ConvertByteArrayToString(byte [] byteArray) { return (new UnicodeEncoding()).GetString(byteArray); } public static string ConvertByteArrayToString(byte[] byteArray, Encoding enc) { return enc.GetString(byteArray); } public static byte[] ConvertStringToByteArray(string stringToConvert, Encoding enc) { return enc.GetBytes(stringToConvert); } Filed under: .NET<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leiyuan7.wordpress.com&amp;blog=22028375&amp;post=40&amp;subd=leiyuan7&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://leiyuan7.wordpress.com/2011/10/17/convert-string-to-bytearray/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be25c94608aee35796f974e0b3d807f5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepblack7</media:title>
		</media:content>
	</item>
	</channel>
</rss>
