Hi,<br><br>Thanks for your immediate reply.<br><br>I have gone through the samples.I am trying to call these functions from windows application.<br>Am using SQLServer Database.<br><br><br>my App.config file<br><br>&lt;quill&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;dataSources&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dataSource name=&quot;ExampleDB&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;provider&gt;SqlServer&lt;/provider&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;connectionString&gt;&quot;server=AGTNB15;user id=sa; password=angels; database=pmsdb-client;&quot;&lt;/connectionString&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;class&gt;Seasar.Extension.Tx.Impl.TxDataSource&lt;/class&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dataSource&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/dataSources&gt;<br>&nbsp;&nbsp;&nbsp; &lt;!--&lt;assemblys&gt;<br><pre class="csharpcode">&lt;assembly&gt;Oracle.DataAccess, version=10.2.0.100, Culture=neutral, <br>
          PublicKeyToken=89b483f429c47342&lt;/assembly&gt;<br>    &lt;/assemblys&gt;<br></pre>--&gt;<br>&nbsp; &lt;/quill&gt;<br><br>In that documents it is mentioned that the assembly is needed only if i use other than Sqlserver.<br>
<br><br><b>&nbsp;QuillInjector.GetInstance.Inject(Me)</b><br><br>when i call this function it throws FilenotFoundException<br><br>$B%U%!%$%k$^$?$O%"%;%s%V%j(B &#39;Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=f362209d9bee91d8&#39;$B!"$^$?$O$=$N0MB84X78$N(B 1 $B$D$,FI$_9~$a$^$;$s$G$7$?!#;XDj$5$l$?%U%!%$%k$,8+$D$+$j$^$;$s(B.<br>
<br>This is the Exception i got.<br><br>Any other settings i missed here?<br><br>Thanks in Advance.<br>Thomas.<br><br>&nbsp;<br><br><br><div class="gmail_quote">2010/6/7 kubo <span dir="ltr">&lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
At first, DB settings are in App.config<br>
<br>
// App.config example of dfnet-basic-example<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-basic-example/source/DfExampleTest/App.config" target="_blank">https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-basic-example/source/DfExampleTest/App.config</a><br>

<br>
 &nbsp;&lt;quill&gt;<br>
 &nbsp; &nbsp;&lt;dataSources&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;dataSource name=&quot;xxx&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;provider&gt;xxx&lt;/provider&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;connectionString&gt;&quot;xxx&quot;&lt;/connectionString&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;class&gt;Seasar.Extension.Tx.Impl.TxDataSource&lt;/class&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/dataSource&gt;<br>
 &nbsp; &nbsp;&lt;/dataSources&gt;<br>
 &nbsp; &nbsp;&lt;assemblys&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;assembly&gt;xxx&lt;/assembly&gt;<br>
 &nbsp; &nbsp;&lt;/assemblys&gt;<br>
 &nbsp;&lt;/quill&gt;<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
And there is an example of &quot;<a href="http://ASP.NET" target="_blank">ASP.NET</a> + DBFlute.NET&quot;.<br>
Please refer to the example, and you can get<br>
a way to call those classes.<br>
(Even if you don&#39;t use <a href="http://ASP.NET" target="_blank">ASP.NET</a>, it is so beneficial)<br>
<br>
// dfnet-asp.net-example<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example" target="_blank">https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example</a><br>
<br>
// MemberList.aspx.cs (uses QuillInjector at the constructor)<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleWeb/View/Member/MemberList.aspx.cs" target="_blank">https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleWeb/View/Member/MemberList.aspx.cs</a><br>

<br>
// MemberFacade.cs (called by <a href="http://asp.net" target="_blank">asp.net</a> class and uses Behavior)<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleBiz/Facade/Member/MemberFacade.cs" target="_blank">https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleBiz/Facade/Member/MemberFacade.cs</a><br>

<br>
Call-path is as follows:<br>
 &nbsp;MemberList.aspx<br>
 &nbsp;--&gt; MemberFacade.cs<br>
 &nbsp;--&gt; MemberBhv.cs<br>
<br>
DBFlute.NET uses Quill.<br>
It&#39;s simple DI container without setting files.<br>
(similar to Google Guice in Java)<br>
<a href="http://s2container.net.seasar.org/ja/quill.html" target="_blank">http://s2container.net.seasar.org/ja/quill.html</a><br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
MemberFacade and MemberBhv are DI component (of Quill).<br>
If a class has an [Implementation] attribute, it means DI conponent.<br>
<br>
[Implementation]<br>
public class MemberFacade ...<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
And MemberFacade.Update() method has a [Transaction] attribute.<br>
It means the method is in transaction scope.<br>
Only a DI component can use the [Transaction] attribute.<br>
(And then the method must be virtual)<br>
<br>
[Transaction]<br>
public virtual void Update(MemberDto dto)<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
MemberList is not (cannot be) DI component<br>
so MemberList needs to inject myself by QuillInjector<br>
at the constructor for calling DI component classes.<br>
<br>
protected MemberFacade facade; // injected by Inject(this);<br>
public MemberList() {<br>
 &nbsp; &nbsp;QuillInjector.GetInstance().Inject(this);<br>
}<br>
protected void Page_Load(object sender, EventArgs e) {<br>
 &nbsp; &nbsp;... = facade.GetMemberList();<br>
}<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
Thanks<br>
jflute<br>
<br>
2010/6/7 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; Now am able to create C# classes using dbflute with SQLServer.<br>
&gt; Now i want to use these classes in my application.<br>
&gt;<br>
&gt; What are the setting files i have to write for calling these classes.<br>
&gt; (like jdbc.dicon in java)<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt; Thomas<br>
&gt;<br>
&gt;<br>
&gt; 2010/6/5 kubo &lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hello thomas<br>
&gt;&gt;<br>
&gt;&gt; Please retry by dbflute-0.8.9.17-01-SNAPSHOT.zip.<br>
&gt;&gt; You can get more detail messages of SQLException.<br>
&gt;&gt;<br>
&gt;&gt; Download it from this page:<br>
&gt;&gt; <a href="http://dbflute.net.sandbox.seasar.org/ja/environment/newest.html" target="_blank">http://dbflute.net.sandbox.seasar.org/ja/environment/newest.html</a><br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; jflute<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seasar-dotnet mailing list<br>
&gt;&gt; <a href="mailto:seasar-dotnet@ml.seasar.org">seasar-dotnet@ml.seasar.org</a><br>
&gt;&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-dotnet" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-dotnet</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seasar-dotnet mailing list<br>
&gt; <a href="mailto:seasar-dotnet@ml.seasar.org">seasar-dotnet@ml.seasar.org</a><br>
&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-dotnet" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-dotnet</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
seasar-dotnet mailing list<br>
<a href="mailto:seasar-dotnet@ml.seasar.org">seasar-dotnet@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-dotnet" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-dotnet</a><br>
</div></div></blockquote></div><br>