TypeConverter again...

Posts   
 
    
ChBaeumer
User
Posts: 175
Joined: 23-Oct-2003
# Posted on: 30-Sep-2008 16:46:17   

Hi,

I wrote my own type converter. So far so good.

Now the designer behaves a little bit strange. The type converter is only loaded when I remove the default type converter from the LLBLGen installation folder.

Any hints?

Christoph

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 30-Sep-2008 17:07:14   

Would you please attach your type converter?

Which Designer are you using? (Help->About-> Release date)

ChBaeumer
User
Posts: 175
Joined: 23-Oct-2003
# Posted on: 30-Sep-2008 17:23:02   

Version 2.6 September 12th, 2008

I re-used the type-converter from Otis and changed it to convert from System.Guid to char(32)

[Edit]

It is also not working to set the project specific AdditionalTypeConverterFolder property. I had to copy the assembly into the TypeConverters folder of the LLBLGen Pro installation.

Attachments
Filename File size Added on Approval
GuidTypeConverter.cs 2,700 30-Sep-2008 17:23.23 Approved
Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 01-Oct-2008 10:02:37   

I can't reproduce it.

I built the class you attached into a dll (release build, with VS 2005), and placed it under "[LLBLGen Pro v2.6 installation folder]\TypeConverters" folder.

And opened an old Northwind lgp project file into the LLBLGen Pro v.2.6 Designer, and whenever I click on a string field in any entity, I see the new GuidTypeConverter in the "Use different .Net type" combo box.

ChBaeumer
User
Posts: 175
Joined: 23-Oct-2003
# Posted on: 01-Oct-2008 10:14:40   

Sorry it works for me now, too.

What is a little bit misleading that I have to close and start the Designer in order to get correct access to the converter. Is is not possible to change the library during runtime since the designer seems not to catch this.

Thank you

Christoph