PK/FK Relation on Different Types?

Posts   
 
    
psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 30-Oct-2006 18:41:31   

Hello,

I have a (legacy) situation where I need to create a custom relation between a numeric field and an integer field. Is there any workaround for this in the designer (maybe using a type converter or a field expression)?

My current solution is to wrap the table in a view, and cast the key field. This works fine, but I am wondering if there are other alternatives.

Thanks,

Phil

(Edit: LLBL Version 2.0, SQL Server 2000)

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 31-Oct-2006 06:59:12   

I don't think this would be possible in the Designer. But you may try to create this relation manually in the code.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 31-Oct-2006 08:41:06   

If you apply a typeconverter, you can indeed create a custom relation between the two. Also be sure that one of the two is the PK of the entity it's in.

Frans Bouma | Lead developer LLBLGen Pro
santy78
User
Posts: 10
Joined: 14-Mar-2013
# Posted on: 14-Mar-2013 19:11:42   

Otis wrote:

If you apply a typeconverter, you can indeed create a custom relation between the two. Also be sure that one of the two is the PK of the entity it's in.

I tried the same thing but it is not working please see the thread. http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=21772

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 14-Mar-2013 19:50:11   

Let's continue this in your own thread.