Getting System.MissingMethodException on AddNew of BusinessListBase

Getting System.MissingMethodException on AddNew of BusinessListBase

Old forum URL: forums.lhotka.net/forums/t/2669.aspx


boo posted on Monday, April 09, 2007

Maybe I should be using EditableRootListBase?  I'm not sure of the difference between the two.  The specific error I'm getting is 'Constructor on type 'SomeObject' not found'.

I have no problems on Fetch or any other methods.  I'm not sure how else you would add an item to the list.

Note, for now this list is a top level item...i.e. it will not be a child of some other object.

xal replied on Monday, April 09, 2007

Did you implement AddNewCore in your collection?

 

Andrés

boo replied on Monday, April 09, 2007

I don't understand.  Do I need to override the AddNew method and put it there?  I thought this was all encapsulated already.

ajj3085 replied on Tuesday, April 10, 2007

You need to override AddNewCore so that it returns the proper object using your factory methods.

Copyright (c) Marimer LLC