<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: Updates to &#8211; Putting Entity framework 4 to use in a business architecture</title>
	<atom:link href="http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/</link>
	<description>Love what you do - Continue to do it - Be eager to learn more about it.</description>
	<lastBuildDate>Tue, 24 Jan 2012 07:50:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Daniel Skinner</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-409</link>
		<dc:creator><![CDATA[Daniel Skinner]]></dc:creator>
		<pubDate>Tue, 25 May 2010 10:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-409</guid>
		<description><![CDATA[You need to specifically map the relationships:

&lt;code&gt;
            Relationship(c =&gt; c.Students)
                .FromProperty(student =&gt; student.Classes)
                .Map(&quot;dbo.ClassRegistrations&quot;, (student, class) =&gt; new
            {
                student.StudentId,
                class.ClassId
            });
&lt;/code&gt;

The major drawback I found is that both navigation properties must exist in the Domain model i.e. Student.Classes and Class.Students. If Student.Classes doesn&#039;t make sense in your domain, you still need to expose the property. Hopefully this will be fixed in later releases.

Code first is nice but there are actually quite a lot of constraints placed on the design of classes.]]></description>
		<content:encoded><![CDATA[<p>You need to specifically map the relationships:</p>
<p><code><br />
            Relationship(c =&gt; c.Students)<br />
                .FromProperty(student =&gt; student.Classes)<br />
                .Map("dbo.ClassRegistrations", (student, class) =&gt; new<br />
            {<br />
                student.StudentId,<br />
                class.ClassId<br />
            });<br />
</code></p>
<p>The major drawback I found is that both navigation properties must exist in the Domain model i.e. Student.Classes and Class.Students. If Student.Classes doesn&#8217;t make sense in your domain, you still need to expose the property. Hopefully this will be fixed in later releases.</p>
<p>Code first is nice but there are actually quite a lot of constraints placed on the design of classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Skinner</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-408</link>
		<dc:creator><![CDATA[Daniel Skinner]]></dc:creator>
		<pubDate>Tue, 25 May 2010 10:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-408</guid>
		<description><![CDATA[I am able to map protected properties using the ObjectAccessor class:
&lt;code&gt;
Property(ObjectAccessor.CreateExpression(&quot;StatusString&quot;));
&lt;/code&gt;
However, if I wish to specifically Map the table using a similar notation:
&lt;code&gt;
            MapSingleType(i =&gt; new
            {
                i.ConcurrencyToken,
                i.Id,
                i.Name
                StatusString = ObjectAccessor.CreateExpression(&quot;StatusString&quot;),
            });
&lt;/code&gt;
I get a runtime exception. Is it possible to specifically use MapSingleType with protected properties?]]></description>
		<content:encoded><![CDATA[<p>I am able to map protected properties using the ObjectAccessor class:<br />
<code><br />
Property(ObjectAccessor.CreateExpression("StatusString"));<br />
</code><br />
However, if I wish to specifically Map the table using a similar notation:<br />
<code><br />
            MapSingleType(i =&gt; new<br />
            {<br />
                i.ConcurrencyToken,<br />
                i.Id,<br />
                i.Name<br />
                StatusString = ObjectAccessor.CreateExpression("StatusString"),<br />
            });<br />
</code><br />
I get a runtime exception. Is it possible to specifically use MapSingleType with protected properties?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Entity framework 4 &#8211; CTP3 &#8211; Code first vs Linq to Sql &#171; Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-382</link>
		<dc:creator><![CDATA[Entity framework 4 &#8211; CTP3 &#8211; Code first vs Linq to Sql &#171; Daniel Wertheim]]></dc:creator>
		<pubDate>Sun, 16 May 2010 12:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-382</guid>
		<description><![CDATA[[...] by Daniel Wertheim Leave a Comment   I just started doing some architectural changes to my old code in my previous article for Entity framework 4 (EF4) and at the same time updating it to use the new CTP3 add-on as well as [...]]]></description>
		<content:encoded><![CDATA[<p>[...] by Daniel Wertheim Leave a Comment   I just started doing some architectural changes to my old code in my previous article for Entity framework 4 (EF4) and at the same time updating it to use the new CTP3 add-on as well as [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight, WCF, Entity Framework 4 ALL IN ONE &#171; HD BKHN Blog</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-377</link>
		<dc:creator><![CDATA[Silverlight, WCF, Entity Framework 4 ALL IN ONE &#171; HD BKHN Blog]]></dc:creator>
		<pubDate>Thu, 13 May 2010 09:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-377</guid>
		<description><![CDATA[[...] Data of EMDS is stored in Microsoft SQL Server and XML files. For accessing XML files, I use Linq to XML. For accessing database, I use EF4 beta 2 and applying its new feature POCO support. I want to say thank you to I want to say thank you to Daniel Wertheim, the man providing us very helpful framework of EF4 POCO (http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-arch...). [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Data of EMDS is stored in Microsoft SQL Server and XML files. For accessing XML files, I use Linq to XML. For accessing database, I use EF4 beta 2 and applying its new feature POCO support. I want to say thank you to I want to say thank you to Daniel Wertheim, the man providing us very helpful framework of EF4 POCO (<a href="http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-arch.." rel="nofollow">http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-arch..</a>.). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-343</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Mon, 26 Apr 2010 10:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-343</guid>
		<description><![CDATA[Hi,
It was I while since I sat down with this so I have no answer that comes directly out of my head. I guess it will go faster to google it or check the ADO.Net Team blog. I&#039;m currently starting a project where I will use EF4 code-first so eventually I will have an answer for you.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
It was I while since I sat down with this so I have no answer that comes directly out of my head. I guess it will go faster to google it or check the ADO.Net Team blog. I&#8217;m currently starting a project where I will use EF4 code-first so eventually I will have an answer for you.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Skinner</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-333</link>
		<dc:creator><![CDATA[Daniel Skinner]]></dc:creator>
		<pubDate>Fri, 23 Apr 2010 12:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-333</guid>
		<description><![CDATA[How do you deal with many-to-many relationships in this architecture?]]></description>
		<content:encoded><![CDATA[<p>How do you deal with many-to-many relationships in this architecture?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Entity framework 4 &#8211; Code first &#171; Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-183</link>
		<dc:creator><![CDATA[Entity framework 4 &#8211; Code first &#171; Daniel Wertheim]]></dc:creator>
		<pubDate>Mon, 22 Mar 2010 07:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-183</guid>
		<description><![CDATA[[...] a comment &#187;  I haven&#8217;t got the time to update my previous article to the new CTP-addon for supporting Code-first (old name Code-only). My goal is to start covering [...]]]></description>
		<content:encoded><![CDATA[<p>[...] a comment &raquo;  I haven&#8217;t got the time to update my previous article to the new CTP-addon for supporting Code-first (old name Code-only). My goal is to start covering [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashraf</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-166</link>
		<dc:creator><![CDATA[Ashraf]]></dc:creator>
		<pubDate>Fri, 19 Mar 2010 01:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-166</guid>
		<description><![CDATA[Hi Daniel,

It seems to me that if I use a IoC I should not use using() syntax.

Example if i set IoC scope as Singleton ...
using (IEntityStore store = IoC.Invoke()) 
{
} // here store call parents dispose so it release its resources example connection.

Here dispose is the responsibility of IoC not the client. Since we use using .net call disposes method.

thanks for the project. it&#039;s really wonderful.]]></description>
		<content:encoded><![CDATA[<p>Hi Daniel,</p>
<p>It seems to me that if I use a IoC I should not use using() syntax.</p>
<p>Example if i set IoC scope as Singleton &#8230;<br />
using (IEntityStore store = IoC.Invoke())<br />
{<br />
} // here store call parents dispose so it release its resources example connection.</p>
<p>Here dispose is the responsibility of IoC not the client. Since we use using .net call disposes method.</p>
<p>thanks for the project. it&#8217;s really wonderful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-155</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 08:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-155</guid>
		<description><![CDATA[ThreadLocal - A single instance will be created for each requesting thread.  Caches the instances with ThreadLocalStorage.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>ThreadLocal &#8211; A single instance will be created for each requesting thread.  Caches the instances with ThreadLocalStorage.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2009/12/20/updates-to-putting-entity-framework-4-to-use-in-a-business-architecture/#comment-154</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 08:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=193#comment-154</guid>
		<description><![CDATA[Hi,

First of all, I think there are a lot of improvements to do to the architecture, especially how I handle the IoC concept. A better implementation for this could be found: http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/

Also note that there is a new version of the CTP (v3), and the article has not been updated for it.

As for the error you get, I have to look this up. Hopefully during the day. It seems like the Resolve method doesn&#039;t give you a new EntityStore each time, hence the first using-statement will dispose it.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all, I think there are a lot of improvements to do to the architecture, especially how I handle the IoC concept. A better implementation for this could be found: <a href="http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/" rel="nofollow">http://daniel.wertheim.se/2010/03/14/linq-to-sql-how-to-separate-the-entities-and-the-datacontext/</a></p>
<p>Also note that there is a new version of the CTP (v3), and the article has not been updated for it.</p>
<p>As for the error you get, I have to look this up. Hopefully during the day. It seems like the Resolve method doesn&#8217;t give you a new EntityStore each time, hence the first using-statement will dispose it.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
</channel>
</rss>

