How to save a collection or entity to table without PK

Posts   
 
    
Andre1
User
Posts: 8
Joined: 19-May-2009
# Posted on: 05-Jun-2009 13:19:48   

How is it possible to save a collection or entity to a table without PK?

rdhatch
User
Posts: 198
Joined: 03-Nov-2007
# Posted on: 05-Jun-2009 14:55:40   

May I ask why?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Jun-2009 19:50:09   

Andre1 wrote:

How is it possible to save a collection or entity to a table without PK?

By "Save", Do you mean "Insert" or "Update" ?

David Elizondo | LLBLGen Support Team
Andre1
User
Posts: 8
Joined: 19-May-2009
# Posted on: 06-Jun-2009 12:34:57   

rdhatch wrote:

May I ask why?

The database is like this, it is not possible to change this. With other tools it's possible, so why LLBL is giving problems?

daelmo wrote:

Andre1 wrote:

How is it possible to save a collection or entity to a table without PK?

By "Save", Do you mean "Insert" or "Update" ?

Insert is working, update and delete is not working.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Jun-2009 22:59:38   

For update and delete in that case, use UpdatesEntitiesDirectly (Option 3 in this link).

David Elizondo | LLBLGen Support Team
Andre1
User
Posts: 8
Joined: 19-May-2009
# Posted on: 08-Jun-2009 09:43:25   

daelmo wrote:

For update and delete in that case, use UpdatesEntitiesDirectly (Option 3 in this link).

Thx, this fixed it. I could not find this info. Things are VERY complicated in LLBL, this is my opinion. This also answered my other question, I did't post jet. I could not find this info either.