CslaDataProvider RemoveItem

CslaDataProvider RemoveItem

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

Adam posted on Friday, June 25, 2010



I am having issues this this as I have just upgraded from 3.7.0 to 3.8.3 but now am stuck as csla:InvokeMethos="RemoveItem" doesn't appear to exist anymore - could you let me know what this has been replaced with.




<Button x:Name="DeleteButton" Content="Delete" Margin="3"
                                                Visibility="{Binding Mode=OneWay, Path=CanRemoveItem, Converter={StaticResource VisibilityConverter}}"
                                                Style="{StaticResource Button}"/>

RockfordLhotka replied on Friday, June 25, 2010

I think this is a bug - an oversight on my part.

In 3.8 InvokeMethod, like Execute and now TriggerAction, invokes methods with 0 or 2 parameters. RemoveItem() has one parameter, and so can't be invoked by these components. The RemoveItem() method is still there, just unreachable...

I think most people are switching from the data provider model to MVVM (ViewModel<T>), which might explain why you appear to be the first to have encountered this issue.

I'll add it to the bug list to fix in 3.8.4 and 4.

Adam replied on Friday, June 25, 2010

Ah ok well I guess back to CSLA 3.7.0 for now then! Will this post be updated when this is fixed or is there something else to subscribe to when this is fixed?



RockfordLhotka replied on Friday, June 25, 2010

I always post on my blog and on the forum when I release versions of CSLA. This change will be in 3.8.4 and 4, both of which should have a beta release later today actually.

Copyright (c) Marimer LLC