DeleteMulti NotSupportedException

Posts   
 
    
Ccs
User
Posts: 5
Joined: 22-Nov-2007
# Posted on: 22-Nov-2007 15:30:46   

I have control base class and several controls that inherit form this baseclass. All the properties of the controls are saved in a database for witch I use LLLBLGen.

For this reason I created a Fieldbase table in the database to save the control properties. For each subtype of the basecontrol I created another table in the database. I marked these tables as Sub-type of Fieldbase

Now I get a NotSupportedException on the deletmulti of any of the collections of the sub-type entities. I don't get this exception on the baseClass collection

Public Overridable Overloads Function DeleteMulti(deleteFilter As IPredicate) As Integer
            Throw new NotSupportedException("This method isn't supported for this entity")
        End Function

Formerly I used LLBLGen Pro 2.0 where this problem doesn't occur. Recently however I upgraded to LLBLGen Pro 2.5 where this problem does occur.

In the attachement is an image of the entities. (deletmulti works on fieldbase but not in it's subtypes)

Attachments
Filename File size Added on Approval
FieldBase.JPG 13,303 22-Nov-2007 15:31.42 Approved
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 23-Nov-2007 10:12:48   

The following note is written in the LLBLGen Pro manual, under Deleting one or more entities from the persistent storage title, inside the Using the generated code -> SelfServicing -> Using the entity collection classes section:

DeleteMulti(*) is not supported for entities which are in a hierarchy of type TargetPerEntity (See Concepts - Entity inheritance and relational models.). This is by design, as the delete action isn't possible in one go with proper checks due to referential integrity issues.