Suppressing ORMEntityIsDeletedException

Posts   
 
    
Kodiak
User
Posts: 92
Joined: 13-Apr-2009
# Posted on: 10-May-2009 13:22:23   

Hi,

Just wondering if there's any way to suppress the ORMEntityIsDeletedException.

Seems to me like this exception is in many ways pointless. I understand that the entity has been removed from persistent storage but you should still be able to access properties from it.

I have a case where complicated logic is used to add/remove line items in the business layer and the UI receives an event telling it which items have been removed (as some entities may have related custom controls to be stripped from the screen). Unfortunately though this generates the EntityIsDeleted Exception.

I'd rather not iterate though all line items on the screen to rebuild the UI. I'd rather tell the UI layer the ones that have been deleted and let it handle it.

Any one have any thoughts?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-May-2009 21:07:55   

There are some changes to this on v2.0 version. Check this: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=10827 http://llblgen.com/TinyForum/Messages.aspx?ThreadID=9481

What LLBLGen Pro build and runtime library version are you using (http://llblgen.com/TinyForum/Messages.aspx?ThreadID=7722)?

And, if possible post a tiny code snippet that reproduces the problem (better with the Northwind or AdvertureWorks database).

David Elizondo | LLBLGen Support Team