<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Chad# - All Comments</title><link>http://weblogs.asp.net/chadmoran/default.aspx</link><description>Ramblings of a technology junkie.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: C# 4.0 New features – Part 1: dynamic type</title><link>http://weblogs.asp.net/chadmoran/archive/2008/11/04/c-4-0-new-features-part-1-dynamic-type.aspx#7045707</link><pubDate>Tue, 14 Apr 2009 05:08:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7045707</guid><dc:creator>sandit27</dc:creator><description>&lt;p&gt;This is a good feature introduced in C# 4.0. The only issue I see is, the developer should not use the &amp;quot;dynamic&amp;quot; type leisurely . Special care should be taken when using the dynamic type.&lt;/p&gt;
&lt;p&gt;-Sandeep&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7045707" width="1" height="1"&gt;</description></item><item><title>re: The more you know – Why List&lt;T&gt; is bad with query results</title><link>http://weblogs.asp.net/chadmoran/archive/2008/12/13/the-more-you-know-why-list-lt-t-gt-is-bad-with-query-results.aspx#6996645</link><pubDate>Tue, 24 Mar 2009 18:25:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6996645</guid><dc:creator>Elio</dc:creator><description>&lt;p&gt;Agree with Xtek, returning List&amp;lt;T&amp;gt; is bad almost always, in my entities i use this in my getters: &lt;/p&gt;
&lt;p&gt;get { return new List&amp;lt;Report&amp;gt;(_reports).AsReadOnly()}&lt;/p&gt;
&lt;p&gt;For me, it is inadmissible that the consumer of such entities can get direct access to the private member collection, even, for critical cases i just return a ReadOnlyCollection of DTOs:&lt;/p&gt;
&lt;p&gt;get { return allReportDTOs()}&lt;/p&gt;
&lt;p&gt;Where ReportDTO hav only primitive members&lt;/p&gt;
&lt;p&gt;In fact, i'm using the DTOs way intensively today, because currently the UI guys are using a Presentation Model that get binded the entities properties collections to grids. Sure they can not Add/Remove items, but they can change the child properties directly from the GUI. That is a true problem, because many often those changes requieres some validation at the parent entity level.&lt;/p&gt;
&lt;p&gt;Elio&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6996645" width="1" height="1"&gt;</description></item><item><title>Using interfaces for Domain entities (Part 1)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/16/using-interfaces-for-domain-entities-part-1.aspx#6898383</link><pubDate>Thu, 12 Feb 2009 10:21:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6898383</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6898383" width="1" height="1"&gt;</description></item><item><title>re: Using interfaces for Domain entities (Part 1)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/16/using-interfaces-for-domain-entities-part-1.aspx#6858944</link><pubDate>Sat, 24 Jan 2009 03:05:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6858944</guid><dc:creator>MIke</dc:creator><description>&lt;p&gt;When's part II coming? :)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6858944" width="1" height="1"&gt;</description></item><item><title>re: Kigg – A great example of ASP.NET MVC</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/12/kigg-a-great-example-of-asp-net-mvc.aspx#6851235</link><pubDate>Wed, 21 Jan 2009 11:16:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6851235</guid><dc:creator>kazimanzurrashid</dc:creator><description>&lt;p&gt;Hi Chad,&lt;/p&gt;
&lt;p&gt;Just for an clarification, Sonu is not in DotNetShoutout team, he was part of the initial version of KiGG.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6851235" width="1" height="1"&gt;</description></item><item><title>re: ADO.NET EF v LINQ to SQL (take 3)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/14/ado-net-ef-v-linq-to-sql-take-3.aspx#6840692</link><pubDate>Fri, 16 Jan 2009 22:06:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6840692</guid><dc:creator>EFRox</dc:creator><description>&lt;p&gt;It does stink that you can't really work between contexts. &amp;nbsp;I have instances where I'd like to write queries that join across contexts.&lt;/p&gt;
&lt;p&gt;I'm working on a data migration project on a database that has tons of Identity primary key fields. &amp;nbsp;Using the Entity Framework makes it really easy as all you do is associate it to the parent object and it handles assigning all the keys. Oh and its pretty easy to query on Primary Keys and Foreign Keys, just use the navigation/association in the model?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6840692" width="1" height="1"&gt;</description></item><item><title>re: The more you know – Why List&lt;T&gt; is bad with query results</title><link>http://weblogs.asp.net/chadmoran/archive/2008/12/13/the-more-you-know-why-list-lt-t-gt-is-bad-with-query-results.aspx#6839313</link><pubDate>Fri, 16 Jan 2009 13:45:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6839313</guid><dc:creator>Matt Freeman</dc:creator><description>&lt;p&gt;Cant you use .Count(), I've favoured the IEnumerable route for a long time now and not encountered any issues, its encapsulate the type of collection should you ever refactor. &lt;/p&gt;
&lt;p&gt;For Nhibernate mappings any IList is a private variable mapped by private field accessor, the IEnumerbale public route just get the list as IEnumerable. &amp;nbsp;I dont want consumers adding to list or messing with it, the collection (not the items) should be immutable in that respect, they can always create a new List by passing the IEnumerable to the new List. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6839313" width="1" height="1"&gt;</description></item><item><title>ADO.NET EF v LINQ to SQL (take 3)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/14/ado-net-ef-v-linq-to-sql-take-3.aspx#6836401</link><pubDate>Thu, 15 Jan 2009 18:55:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6836401</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6836401" width="1" height="1"&gt;</description></item><item><title>ADO.NET EF v LINQ to SQL (take 3)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/14/ado-net-ef-v-linq-to-sql-take-3.aspx#6836399</link><pubDate>Thu, 15 Jan 2009 18:52:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6836399</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6836399" width="1" height="1"&gt;</description></item><item><title>re: ADO.NET EF v LINQ to SQL (take 3)</title><link>http://weblogs.asp.net/chadmoran/archive/2009/01/14/ado-net-ef-v-linq-to-sql-take-3.aspx#6836284</link><pubDate>Thu, 15 Jan 2009 16:09:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6836284</guid><dc:creator>Xtek</dc:creator><description>&lt;p&gt;Yeah I have hops for v2 since the LINQ to SQL guys went over to that team... here's hoping.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6836284" width="1" height="1"&gt;</description></item></channel></rss>