[seasar-dotnet:1709] Re: [dbflute JDBCエラー]

thomas [E-MAIL ADDRESS DELETED]
2010年 6月 8日 (火) 13:51:35 JST


Hi,

Thanks for your reply.After your reply now i am able to call dbflute from my
application.

Regards,
Thomas.

On Tue, Jun 8, 2010 at 11:29 AM, kubo <[E-MAIL ADDRESS DELETED]> wrote:

> Hello,
>
> > when i call this function it throws FilenotFoundException
> >
> > ファイルまたはアセンブリ 'Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral,
> > PublicKeyToken=f362209d9bee91d8'、またはその依存関係の 1
> > つが読み込めませんでした。指定されたファイルが見つかりません.
>
> Does it include the Castle.DynamicProxy.dll as reference libraries?
> For example, dfnet-basic-example refers these libraries:
>
>  Castle.DynamicProxy.dll
>  CoreLab.MySql.dll
>  log4net.dll
>  MbUnit.Framework.dll
>  MySql.Data.dll
>  Seasar.dll
>  Seasar.Dao.dll
>  Seasar.Dxo.dll
>  Seasar.DynamicProxy.dll
>  Seasar.Quill.dll
>  Seasar.Unit.dll
>
> You don't need CoreLab.MySql.dll, MySql.Data.dll
> because you use SQLServer. And also if you don't
> use MbUnit, MbUnit.Framework.dll is not required.
> Other dll files are required to use "Quill + DBFlute.NET".
>
> 2010/6/8 thomas <[E-MAIL ADDRESS DELETED]>:
> > Hi,
> >
> > Thanks for your immediate reply.
> >
> > I have gone through the samples.I am trying to call these functions from
> > windows application.
> > Am using SQLServer Database.
> >
> >
> > my App.config file
> >
> > <quill>
> >     <dataSources>
> >       <dataSource name="ExampleDB">
> >         <provider>SqlServer</provider>
> >         <connectionString>"server=AGTNB15;user id=sa; password=angels;
> > database=pmsdb-client;"</connectionString>
> >         <class>Seasar.Extension.Tx.Impl.TxDataSource</class>
> >       </dataSource>
> >     </dataSources>
> >     <!--<assemblys>
> >
> > <assembly>Oracle.DataAccess, version=10.2.0.100, Culture=neutral,
> >
> >           PublicKeyToken=89b483f429c47342</assembly>
> >     </assemblys>
> >
> > -->
> >   </quill>
> >
> > In that documents it is mentioned that the assembly is needed only if i
> use
> > other than Sqlserver.
> >
> >
> >  QuillInjector.GetInstance.Inject(Me)
> >
> > when i call this function it throws FilenotFoundException
> >
> > ファイルまたはアセンブリ 'Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral,
> > PublicKeyToken=f362209d9bee91d8'、またはその依存関係の 1
> > つが読み込めませんでした。指定されたファイルが見つかりません.
> >
> > This is the Exception i got.
> >
> > Any other settings i missed here?
> >
> > Thanks in Advance.
> > Thomas.
> >
> >
> >
> >
> > 2010/6/7 kubo <[E-MAIL ADDRESS DELETED]>
> >>
> >> Hello,
> >>
> >> At first, DB settings are in App.config
> >>
> >> // App.config example of dfnet-basic-example
> >>
> >>
> https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-basic-example/source/DfExampleTest/App.config
> >>
> >>  <quill>
> >>    <dataSources>
> >>      <dataSource name="xxx">
> >>        <provider>xxx</provider>
> >>        <connectionString>"xxx"</connectionString>
> >>        <class>Seasar.Extension.Tx.Impl.TxDataSource</class>
> >>      </dataSource>
> >>    </dataSources>
> >>    <assemblys>
> >>      <assembly>xxx</assembly>
> >>    </assemblys>
> >>  </quill>
> >>
> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >> -
> >> And there is an example of "ASP.NET + DBFlute.NET".
> >> Please refer to the example, and you can get
> >> a way to call those classes.
> >> (Even if you don't use ASP.NET, it is so beneficial)
> >>
> >> // dfnet-asp.net-example
> >>
> https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example
> >>
> >> // MemberList.aspx.cs (uses QuillInjector at the constructor)
> >>
> >>
> https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleWeb/View/Member/MemberList.aspx.cs
> >>
> >> // MemberFacade.cs (called by asp.net class and uses Behavior)
> >>
> >>
> https://www.seasar.org/svn/sandbox/dbflute.net/trunk/dfnet-asp.net-example/source/DfExampleBiz/Facade/Member/MemberFacade.cs
> >>
> >> Call-path is as follows:
> >>  MemberList.aspx
> >>  --> MemberFacade.cs
> >>  --> MemberBhv.cs
> >>
> >> DBFlute.NET uses Quill.
> >> It's simple DI container without setting files.
> >> (similar to Google Guice in Java)
> >> http://s2container.net.seasar.org/ja/quill.html
> >>
> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >> -
> >> MemberFacade and MemberBhv are DI component (of Quill).
> >> If a class has an [Implementation] attribute, it means DI conponent.
> >>
> >> [Implementation]
> >> public class MemberFacade ...
> >>
> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >> -
> >> And MemberFacade.Update() method has a [Transaction] attribute.
> >> It means the method is in transaction scope.
> >> Only a DI component can use the [Transaction] attribute.
> >> (And then the method must be virtual)
> >>
> >> [Transaction]
> >> public virtual void Update(MemberDto dto)
> >>
> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >> -
> >> MemberList is not (cannot be) DI component
> >> so MemberList needs to inject myself by QuillInjector
> >> at the constructor for calling DI component classes.
> >>
> >> protected MemberFacade facade; // injected by Inject(this);
> >> public MemberList() {
> >>    QuillInjector.GetInstance().Inject(this);
> >> }
> >> protected void Page_Load(object sender, EventArgs e) {
> >>    ... = facade.GetMemberList();
> >> }
> >>
> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >> -
> >>
> >> Thanks
> >> jflute
> >>
> >> 2010/6/7 thomas <[E-MAIL ADDRESS DELETED]>:
> >> > Hi,
> >> >
> >> > Now am able to create C# classes using dbflute with SQLServer.
> >> > Now i want to use these classes in my application.
> >> >
> >> > What are the setting files i have to write for calling these classes.
> >> > (like jdbc.dicon in java)
> >> >
> >> > Thanks in advance.
> >> > Thomas
> >> >
> >> >
> >> > 2010/6/5 kubo <[E-MAIL ADDRESS DELETED]>
> >> >>
> >> >> Hello thomas
> >> >>
> >> >> Please retry by dbflute-0.8.9.17-01-SNAPSHOT.zip.
> >> >> You can get more detail messages of SQLException.
> >> >>
> >> >> Download it from this page:
> >> >> http://dbflute.net.sandbox.seasar.org/ja/environment/newest.html
> >> >>
> >> >> Thanks
> >> >> jflute
> >> >> _______________________________________________
> >> >> seasar-dotnet mailing list
> >> >> [E-MAIL ADDRESS DELETED]
> >> >> https://ml.seasar.org/mailman/listinfo/seasar-dotnet
> >> >
> >> >
> >> > _______________________________________________
> >> > seasar-dotnet mailing list
> >> > [E-MAIL ADDRESS DELETED]
> >> > https://ml.seasar.org/mailman/listinfo/seasar-dotnet
> >> >
> >> >
> >> _______________________________________________
> >> seasar-dotnet mailing list
> >> [E-MAIL ADDRESS DELETED]
> >> https://ml.seasar.org/mailman/listinfo/seasar-dotnet
> >
> >
> > _______________________________________________
> > seasar-dotnet mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-dotnet
> >
> >
> _______________________________________________
> seasar-dotnet mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-dotnet
>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-dotnet/attachments/20100608/5574f272/attachment.html>


seasar-dotnet メーリングリストの案内