DeleteEntity doesn't delete records

Posts   
 
    
Stephan
User
Posts: 63
Joined: 16-Jan-2007
# Posted on: 30-Oct-2007 16:11:11   

Hi, we have a simple table containing three field. One of the unique type and two other fields of the integer type. There is no PK set on this table. Actually this is an intermediate table. Al the fields are FK to other tables.

We use LLBLGen 2.0 adapter.

The whole function (in short) is:

ActionEntity _entity = new ActionEntity()

_entity.Field1 = {value 1} _entity.Field2 = {value 2} _entity.Field3 = {value 3}

using (DataAccesAdapter _adapater = new DataAccessAdapter) { bool isDeleted = _adapater.DeleteEntity(_entity) }

That is it. No exception is thrown nor does it delete a record. What could be wrong here?

Any help appreciated.

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 30-Oct-2007 22:03:22   

You should have a PK defined for each table in order to use the LLBL's framework properly.