Saving Entities Mapped on Views

Posts   
 
    
Bruce
User
Posts: 61
Joined: 18-May-2006
# Posted on: 17-Aug-2007 11:29:34   

Using LLBLGenPro v2.0, Net 1.1, SQLServer 2000.

I have an Entity (called BondPlus) mapped on a view. The view contains an Inner Join and is updateable in SQLServer (I've checked this).

I have a collection (BondPlusColl) of these Entities as the data-source for a grid.

When I use BondPlusColl.SaveMulti() no error is thrown, but the changed values in the grid are not saved.

The code is all very simple and I've used similar coding elsewhere without problem, so I'm having difficulty discovering what is wrong.

Is this kind of view updateable in LLBLGenPro?

Bruce
User
Posts: 61
Joined: 18-May-2006
# Posted on: 17-Aug-2007 12:13:45   

OK solved - I just needed to set the Primary Key in the designer. wink

Posts: 15
Joined: 01-Mar-2005
# Posted on: 08-Sep-2007 21:52:02   

Bruce wrote:

OK solved - I just needed to set the Primary Key in the designer. wink

thanks for posting the answer Bruce - you just saved me!