The problem is not the IUserType. You have to check how your DataProvider understand DbType.Guid
On Tue, Jul 27, 2010 at 4:05 AM, eti <[email protected]> wrote: > Frans Bouma wrote: > > You could also implement IUserType to convert from varchar(40) to Guid > and > > back, so you can keep your database. > > > > Hi, > > Thanks for your answer, but at the moment the conversion is working > without any intervention. > > I was thinking of changing the type only for performance/space reasons. > After spending some time and reading a lot on the subject i gave up on > changing this since it seems that the performance and space would gained > would be marginal and the effort required is more than I'm willing to > invest. > > Anyway it seems that the mysql .net connector at first was converting > GUIDs to VARCHAR(40) than it changed to BINARY(16) and now it seems as > CHAT(36) BINARY is the preferred type. > > Thanks again for your time > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
