﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Akal Tech RSS Feed</title><link>http://www.quickobjects.com/Views/Forum/Default.aspx</link><description>Akal Tech Forum Topics</description><copyright>Akal Tech (c) 2010. All rights reserved.</copyright><language>en-us</language><lastBuildDate>9/4/2010 8:02:02 PM GMT</lastBuildDate><item><title>Topic: Not sure how to share connection automatically</title><description>&lt;br&gt;Topic Description: I know I can share connection between two objects by using the AssignConnection method.&amp;nbsp; I am working on a large scale ASP.NET application and I have an object that gets created on every page request (in a base class). Right now I have to call the AssignConnection method everytime I create a new instance of an entity.&amp;nbsp; Is there a way this could be done automatically?&lt;br&gt;&lt;br&gt;It works just fine if I don't share the connection but I really would like to use this feature as it will help reduce the number of connections open to the DB.&lt;br&gt;&lt;br&gt;I am sorry if I am missing something obvious but I looked through documentation and samples and don't see anything that covers this scenario.&lt;br&gt;&lt;br&gt;Scott&lt;br&gt;&lt;hr style="height:1px;"&gt;Replies: 1&lt;br&gt;Last Reply: Thu, 12 Feb 2009 15:35:40 GMT&lt;br&gt;Reply By: Ish Singh&lt;hr style="height:1px;"&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=3&amp;APT=70</link><pubDate>Thu, 12 Feb 2009 15:35:40 GMT</pubDate></item><item><title>Reply: Re: Not sure how to share connection automatically</title><description>Scott,&lt;BR&gt;&lt;BR&gt;You can use the constructor overload and pass the instance from your base class.&lt;BR&gt;&lt;BR&gt;
&lt;DIV style="BORDER-RIGHT: #7f9db9 1px solid; BORDER-TOP: #7f9db9 1px solid; FONT-SIZE: 11px; OVERFLOW: auto; BORDER-LEFT: #7f9db9 1px solid; WIDTH: 100%; LINE-HEIGHT: 100%! important; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: white"&gt;
&lt;TABLE style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; MARGIN: 2px 0px; WIDTH: 99%; BORDER-BOTTOM: #eee 0px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #fff; BORDER-RIGHT-WIDTH: 0px" cellSpacing=0 cellPadding=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="PADDING-LEFT: 10px; FONT-SIZE: 11px; BORDER-BOTTOM: #f7f7f7 1px solid; FONT-FAMILY: Courier New; WHITE-SPACE: nowrap"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT style="FONT-SIZE: 11px"&gt;Orders&amp;nbsp;o&amp;nbsp;=&amp;nbsp;&lt;/FONT&gt;&lt;FONT style="COLOR: blue"&gt;new&lt;/FONT&gt;&lt;FONT style="FONT-SIZE: 11px"&gt;&amp;nbsp;Orders(&lt;/FONT&gt;&lt;FONT style="COLOR: blue"&gt;this&lt;/FONT&gt;&lt;FONT style="FONT-SIZE: 11px"&gt;.BaseObject); &amp;nbsp;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="BACKGROUND-COLOR: #f7f7f7"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;BR&gt;Hope this is what you were looking for.&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;Ish</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=3&amp;APT=70</link><pubDate>Thu, 12 Feb 2009 15:35:40 GMT</pubDate></item></channel></rss>