Hi, How do I unsubscribe from the list. Sorry for the trouble but I looked on the website and couldn't see any instructions/forms. Thanks,
Kind Regards Dr Paul Neumeyer Random Sea Pty Ltd T: 02 9939 1988 M: 0418 400 656 [EMAIL PROTECTED] +------------------------------------------------------------------------+ This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person. Thank you. +------------------------------------------------------------------------+ -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Friday, October 14, 2005 1:06 PM To: user-cs@ibatis.apache.org Subject: Re: ConfigureAndWatch Performance Issue Is it ok if I include your VB.Net code in the IBatisNet DataMapper documentation so other people can use it? --- Cynthia Torres <[EMAIL PROTECTED]> wrote: > Hi, > > > > I'm newer to iBatis. I'm experiencing some performance issues with > the > ConfigureAndWatch method, it takes about 6 seconds in been executed > the > first time is called. The language I'm using is vb.net. I have > translated the code from c# to vb because I didn't find and example > in > vb. Please tell me if I have something wrong in my code or if is a > performance issue of iBatis. > > > > I will appreciate any help you guys can give me. > > > > Imports IBatisNet.DataMapper > > Imports IBatisNet.Common.Utilities > > Namespace Mapper > > Public MustInherit Class BaseServiceConfig > > Private Shared mapper As SqlMapper = Nothing > > > > Protected Shared Sub Configure(ByVal obj As Object) > > mapper = CType(obj, SqlMapper) > > End Sub 'Configure > > > > Protected Shared Sub InitMapper() > > Dim handler As New ConfigureHandler(AddressOf Configure) > > mapper = SqlMapper.ConfigureAndWatch(handler) > > End Sub 'InitMapper > > > > Public Shared Function GetMapper() As SqlMapper > > If mapper Is Nothing Then > > SyncLock GetType(SqlMapper) > > If mapper Is Nothing Then ' double-check > > InitMapper() > > End If > > End SyncLock > > End If > > Return mapper > > End Function 'Get > > End Class 'Mapper > > End Namespace > >