<?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>KurtSchroeder.com &#187; Entity Framework</title>
	<atom:link href="http://kurtschroeder.com/category/entity-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://kurtschroeder.com</link>
	<description></description>
	<lastBuildDate>Thu, 10 Feb 2011 13:46:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>ASP.Net vs PHP/WordPress</title>
		<link>http://kurtschroeder.com/2011/02/10/asp-net-vs-phpwordpress/</link>
		<comments>http://kurtschroeder.com/2011/02/10/asp-net-vs-phpwordpress/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 13:46:44 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://kurtschroeder.com/?p=84</guid>
		<description><![CDATA[There are two problems with Dot.Net 1. I love it and i can be a lot of fun coding in. 2. WordPress and php can do just about all of the same thing in about 1/3 the time.]]></description>
			<content:encoded><![CDATA[<p>There are two problems with Dot.Net<br />
1. I love it and i can be a lot of fun coding in.<br />
2. WordPress and php can do just about all of the same thing in about 1/3 the time.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurtschroeder.com/2011/02/10/asp-net-vs-phpwordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A word on Linq to Entity</title>
		<link>http://kurtschroeder.com/2010/11/19/a-word-on-linq-to-entity/</link>
		<comments>http://kurtschroeder.com/2010/11/19/a-word-on-linq-to-entity/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 18:51:37 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://kurtschroeder.com/?p=27</guid>
		<description><![CDATA[Entity Framework is great, Linq to EntityFramework totally sucks. When views get complicated, Selects like &#8220;Where a.xxx == 5&#8243; turns the related entityes to repeate the first item and not select the real associated item. Solution? Kill the view, kill the Entity related to the view, recreate the view as simple as possible, do not [...]]]></description>
			<content:encoded><![CDATA[<p>Entity Framework is great, Linq to EntityFramework totally sucks. When views get complicated, Selects like &#8220;Where a.xxx == 5&#8243; turns the related entityes to repeate the first item and not select the real associated item.</p>
<p>Solution? Kill the view, kill the Entity related to the view, recreate the view as simple as possible, do not add navgation if you plan to do multiple selects.</p>
<p>I know some one will know why i&#8217;m wrong and someone else will say i&#8217;m cryptic. Eather way the damn thing does not work like all the other query languages SQL or other wise.</p>
<p>That means it sucks!! I&#8217;m sure forcing the first item to be selected on the following unrelated item is some great feature. Too bad the rest of us weren&#8217;t in on the secrete!</p>
<p>KES</p>
]]></content:encoded>
			<wfw:commentRss>http://kurtschroeder.com/2010/11/19/a-word-on-linq-to-entity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For those other Entity Frame work Web types that are stuck doing a Windows Forms App.</title>
		<link>http://kurtschroeder.com/2010/11/06/for-those-other-entity-frame-work-web-types-that-are-stuck-doing-a-windows-forms-app/</link>
		<comments>http://kurtschroeder.com/2010/11/06/for-those-other-entity-frame-work-web-types-that-are-stuck-doing-a-windows-forms-app/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 14:46:37 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://kurtschroeder.com/?p=20</guid>
		<description><![CDATA[Using  Entity Frame Work for a data layer in a Windows Forms  DataGridView. How do you delete? You need to add an event for KeyDown.  Me, being a total web type and mostly MVC these days, I was about to write a handler and event. Well, no need. private void dgvSubCats_KeyDown(object sender, KeyEventArgs e) { [...]]]></description>
			<content:encoded><![CDATA[<p>Using  Entity Frame Work for a data layer in a Windows Forms  DataGridView. How do you delete?</p>
<p>You need to add an event for KeyDown.  Me, being a total web type and mostly MVC these days, I was about to write a handler and event. Well, no need.</p>
<div id="_mcePaste">private void dgvSubCats_KeyDown(object sender, KeyEventArgs e)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">if (e.KeyCode == Keys.Delete)</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">for (int i = 0; i &lt; dgvSubCats.SelectedRows.Count; i++)  // i &#8216;m going to add IEnumeriable to DataGridViewRows collection some day.</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">Int32 Id = Int32.Parse(dgvSubCats.SelectedRows[i].Cells["productSubGroupIdDataGridViewTextBoxColumn"].Value.ToString());</div>
<div id="_mcePaste">var sc = (from m in context.ProductSubGroups where m.ProductSubGroupId== Id select m).FirstOrDefault();</div>
<div id="_mcePaste">context.ProductSubGroups.DeleteObject(sc);</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">context.SaveChanges();</div>
<div id="_mcePaste">ReloadSubCatGrid();</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<p>Because its intuitive and easy, I have a hard time with Windows Forms. It&#8217;s way too designer centric for web types.</p>
<p>KES</p>
]]></content:encoded>
			<wfw:commentRss>http://kurtschroeder.com/2010/11/06/for-those-other-entity-frame-work-web-types-that-are-stuck-doing-a-windows-forms-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code Only Option</title>
		<link>http://kurtschroeder.com/2010/06/01/code-only-option/</link>
		<comments>http://kurtschroeder.com/2010/06/01/code-only-option/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:59:42 +0000</pubDate>
		<dc:creator>Kurt</dc:creator>
				<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://kurtschroeder.com/?p=11</guid>
		<description><![CDATA[If you are like me, someone who cannot use somthing unless you understand it, This is for you! I do not understand why this has not been incorporated in to the release. First you will need to download CTP3 Then view the walkthrough. The example is fairly old, but it give the idea.]]></description>
			<content:encoded><![CDATA[<p>If you are like me, someone who cannot use somthing unless you understand it, This is for you! I do not understand why this has not been incorporated in to the release. First you will need to download <a href="http://www.microsoft.com/downloads/details.aspx?familyid=AF18E652-9EA7-478B-8B41-8424B94E3F58&amp;displaylang=en">CTP3</a> Then view the <a href="http://blogs.msdn.com/b/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-the-entity-framework.aspx">walkthrough</a>. The example is fairly old, but it give the idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurtschroeder.com/2010/06/01/code-only-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

