<?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/"
		>
<channel>
	<title>Comments on: Asp.Net, ObjectDataSource and Castle Windsor</title>
	<atom:link href="http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/</link>
	<description>Wrecks of code floating in the sea of Internet By Ricci Gian Maria</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:15:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/comment-page-1/#comment-3428</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Tue, 12 Oct 2010 15:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/#comment-3428</guid>
		<description>Actually in that site I do not need to use Update of ObjectDataSource :(. All object data source are used only to GET data from the services, then all the pages communicates with the service with jQuery, so it never used the update part of objectdatasource.

If I have time I&#039;ll investigate this situation.

Alk.</description>
		<content:encoded><![CDATA[<p>Actually in that site I do not need to use Update of ObjectDataSource <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . All object data source are used only to GET data from the services, then all the pages communicates with the service with jQuery, so it never used the update part of objectdatasource.</p>
<p>If I have time I&#8217;ll investigate this situation.</p>
<p>Alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/comment-page-1/#comment-3426</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 12 Oct 2010 07:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/#comment-3426</guid>
		<description>In my layered web application I have used the method you described to obtain isolation.

I have no problem with get method, but when I tried with update method I have some problems.

Can you post an example on how you can make an update with your layered structure?

P.S.: I want to pass to update function or the concrete object or the interface and then &quot;translate&quot; it into concrete.

I tried to place the interface in objectdatasource but I obtained an error because it tried to instantiate it.

Then I tried to specify the DataObjectTypeName adding the following in objectdatasource Init:

protected override void OnInit(EventArgs e)
        {
            RefreshTypeName();
            base.OnInit(e);
        }
        public void RefreshTypeName() {
            base.TypeName = GetConcreteTypeFor(Type.GetType(TypeName + &quot;, MachinaWeb.Services&quot;)).FullName;

            if (!String.IsNullOrEmpty(DataObjectTypeName))
            {
                base.DataObjectTypeName = GetConcreteTypeFor(Type.GetType(DataObjectTypeName + &quot;, MachinaWeb.Services&quot;)).FullName;
            }
            
        }

but I cannot obtain isolation because with this lines it needs and update method with Concrete class as argument of update function (I want interface as argument).</description>
		<content:encoded><![CDATA[<p>In my layered web application I have used the method you described to obtain isolation.</p>
<p>I have no problem with get method, but when I tried with update method I have some problems.</p>
<p>Can you post an example on how you can make an update with your layered structure?</p>
<p>P.S.: I want to pass to update function or the concrete object or the interface and then &#8220;translate&#8221; it into concrete.</p>
<p>I tried to place the interface in objectdatasource but I obtained an error because it tried to instantiate it.</p>
<p>Then I tried to specify the DataObjectTypeName adding the following in objectdatasource Init:</p>
<p>protected override void OnInit(EventArgs e)<br />
        {<br />
            RefreshTypeName();<br />
            base.OnInit(e);<br />
        }<br />
        public void RefreshTypeName() {<br />
            base.TypeName = GetConcreteTypeFor(Type.GetType(TypeName + &#8220;, MachinaWeb.Services&#8221;)).FullName;</p>
<p>            if (!String.IsNullOrEmpty(DataObjectTypeName))<br />
            {<br />
                base.DataObjectTypeName = GetConcreteTypeFor(Type.GetType(DataObjectTypeName + &#8220;, MachinaWeb.Services&#8221;)).FullName;<br />
            }</p>
<p>        }</p>
<p>but I cannot obtain isolation because with this lines it needs and update method with Concrete class as argument of update function (I want interface as argument).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan`s World &#187; LINKBLOG for May 23, 2009</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/comment-page-1/#comment-2471</link>
		<dc:creator>Arjan`s World &#187; LINKBLOG for May 23, 2009</dc:creator>
		<pubDate>Sat, 23 May 2009 21:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/05/22/aspnet-objectdatasource-and-castle-windsor/#comment-2471</guid>
		<description>[...] Asp.Net, ObjectDataSource and Castle Windsor - Alkampfer [...]</description>
		<content:encoded><![CDATA[<p>[...] Asp.Net, ObjectDataSource and Castle Windsor &#8211; Alkampfer [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

