OK I committed the patch.Note that I didn't run the project unit tests, so I can't guarantee there is no side effects. Let me know of you find some. Pascal.
jabber/gtalk: [email protected] msn: [email protected] On Thu, Feb 12, 2009 at 14:43, Jeroen Vrijnsen <[email protected]>wrote: > Sure, > here it is ( I hope :)) > > Anyways, thanks for your time and answers. > > Jeroen > > 2009/2/12 Pascal Craponne <[email protected]>: > > Could you send it as an attached file? I always have problems with > literal > > contents. > > Thanks, > > Pascal. > > > > jabber/gtalk: [email protected] > > msn: [email protected] > > > > > > > > On Thu, Feb 12, 2009 at 14:32, JeroenV <[email protected]> wrote: > >> > >> Here it is: > >> > >> Index: Util/StringExtensions.cs > >> =================================================================== > >> --- Util/StringExtensions.cs (revision 969) > >> +++ Util/StringExtensions.cs (working copy) > >> @@ -58,6 +58,7 @@ > >> case > >> System.Globalization.UnicodeCategory.LetterNumber: > >> case > >> System.Globalization.UnicodeCategory.LowercaseLetter: > >> case > >> System.Globalization.UnicodeCategory.UppercaseLetter: > >> + case > >> System.Globalization.UnicodeCategory.ConnectorPunctuation: > >> break; > >> default: > >> return false; > >> > >> On Feb 12, 2:25 pm, Pascal Craponne <[email protected]> wrote: > >> > If you submit a svn .patch file for it, i'll commit it to the > >> > repository. > >> > Pascal. > >> > > >> > jabber/gtalk: [email protected] > >> > msn: [email protected] > >> > > >> > On Thu, Feb 12, 2009 at 14:24, JeroenV <[email protected]> > wrote: > >> > > >> > > Hi, > >> > > okay, I fixed the problem: one of my enumeration values was > >> > > READ_WRITE. > >> > > >> > > The function DbLinq.Util.StringExtensions.IsIdentifier() fails on > the > >> > > '_' character, as the char.GetUnicodeCategory() function returns > >> > > a System.Globalization.UnicodeCategory.ConnectorPunctuation > category, > >> > > which isn't part of the switch statement. > >> > > >> > > Adding it solves all my problems :) So you might consider patching > >> > > this as well for a (far) future release. > >> > > >> > > Jeroen > >> > > >> > > On Feb 12, 2:02 pm, JeroenV <[email protected]> wrote: > >> > > > The database I'm trying to convert is a MySQL database, so yes, I > >> > > > guess the enum support is broken :) > >> > > >> > > > Are you thinking of updating that functionality soon? > >> > > >> > > > On Feb 12, 1:59 pm, Pascal Craponne <[email protected]> wrote: > >> > > >> > > > > I added a long time ago an experimental support for enum types, > >> > > > > but it > >> > > was > >> > > > > only on MySQL. Anyway it hasn't been tested for a while and may > >> > > > > have > >> > > been > >> > > > > broken. > >> > > > > Pascal. > >> > > >> > > > > jabber/gtalk: [email protected] > >> > > > > msn: [email protected] > >> > > >> > > > > On Thu, Feb 12, 2009 at 13:57, JeroenV < > [email protected]> > >> > > wrote: > >> > > >> > > > > > Hi, > >> > > >> > > > > > I finally found the time to debug DbMetal. > >> > > > > > It turns out, that my database contains some enum's, which are > >> > > > > > not > >> > > > > > handled correctly in DbMetal... > >> > > >> > > > > > Jeroen > >> > > >> > > > > > On Feb 6, 1:58 pm, Pascal Craponne <[email protected]> wrote: > >> > > > > > > Unfortunately, I'm running out of solutions.The next thing > to > >> > > > > > > do is > >> > > to > >> > > > > > debug > >> > > > > > > and understand what fails. > >> > > >> > > > > > > Pascal. > >> > > >> > > > > > > jabber/gtalk: [email protected] > >> > > > > > > msn: [email protected] > >> > > >> > > > > > > On Fri, Feb 6, 2009 at 13:07, JeroenV > >> > > > > > > <[email protected]> > >> > > wrote: > >> > > >> > > > > > > > Actually, I'm using the DbMetal build from the svn source, > >> > > > > > > > so > >> > > that > >> > > > > > > > doesn't fix the problem... > >> > > >> > > > > > > > On Feb 6, 1:03 pm, Pascal Craponne <[email protected]> > wrote: > >> > > > > > > > > DbMetal was maybe broken in the released 0.18 version. I > >> > > suggest that > >> > > > > > you > >> > > > > > > > > get the source from SVN, it should work better. > >> > > > > > > > > Pascal. > >> > > >> > > > > > > > > On Fri, Feb 6, 2009 at 07:46, JeroenV < > >> > > [email protected]> > >> > > > > > wrote: > >> > > >> > > > > > > > > > Hi Pascal, > >> > > >> > > > > > > > > > Thanks for your quick and clear answer :) > >> > > > > > > > > > I've tried DbMetal, but I'm still without success: > >> > > > > > > > > > If ran DbMetal with the following command line > >> > > > > > > > > > bin\DbMetal.exe -provider=MySql -database:hfm > >> > > -server:localhost - > >> > > > > > > > > > user:blah -password:**** -namespace:hfm > >> > > > > > > > > > -code:hfmdatabase.cs > >> > > > > > -sprocs > >> > > >> > > > > > > > > > After DbMetal starts writing the c# class, it halts > with > >> > > > > > > > > > the > >> > > > > > following > >> > > > > > > > > > error: > >> > > >> > > > > > > > > > DbMetal failed:System.IO.FileLoadException: The given > >> > > assembly name > >> > > > > > or > >> > > > > > > > > > codebase was invalid. (Except > >> > > > > > > > > > ion from HRESULT: 0x80131047) > >> > > > > > > > > > at System.RuntimeTypeHandle._GetTypeByName(String > >> > > > > > > > > > name, > >> > > Boolean > >> > > > > > > > > > throwOnError, Boolean ignoreCase, > >> > > > > > > > > > Boolean reflectionOnly, StackCrawlMark& stackMark, > >> > > > > > > > > > Boolean > >> > > > > > > > > > loadTypeFromPartialName) > >> > > > > > > > > > .... > >> > > > > > > > > > at > >> > > > > > > > > > > DbMetal.Generator.Implementation.Processor.ProcessSchema > >> > > > > > > > > > (Parameters parameters) in > >> > > C:\DbLinq-0.18\src\DbMetal\Generator > >> > > > > > > > > > \Implementation\Processor.cs:line 111 > >> > > >> > > > > > > > > > I'm unable to find the root-cause of this, could you > or > >> > > someone > >> > > > > > else > >> > > > > > > > > > perhaps tell me what's going wrong? Thanks in advance! > >> > > >> > > > > > > > > > Jeroen > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
