CSLA for Silverlight - No such factory method errorCSLA for Silverlight - No such factory method error
Old forum URL: forums.lhotka.net/forums/t/6275.aspx
Fel posted on Wednesday, January 28, 2009
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
I have page with grid and few fields that allow modify data in the grid. I’m utilizing two CslaDataProvider’s, one for populating the grid, second to populate detail fields. I’m able to populate the grid, select row and display details in the fields. When I select different row in the grid, I’m getting error message that “No such factory method:XXX”.
Any suggestion?
ThanksFel replied on Tuesday, February 10, 2009
I was missing FactoryParameters.Clear() statement when I called CslaDataProvider
CslaDataProvider provider = this.Resources["xxx"]
as CslaDataProvider;
provider.FactoryParameters.Clear()
provider.FactoryParameters.Add(SelectedCCId);
provider.FactoryMethod = "YYY";
provider.Refresh();
Copyright (c) Marimer LLC