CSLA 4.1 ReadOnlyBase DataPortal_Fetch removed ~ issue 867

CSLA 4.1 ReadOnlyBase DataPortal_Fetch removed ~ issue 867

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


SNiedinger posted on Thursday, January 20, 2011

Hi,

What is the recommended alternative?

Thanks,

Siegfried

SNiedinger replied on Thursday, January 20, 2011

What I am doing is to move the code from the DataPortal_Fetch method into the static 'Get' method of the ReadOnlyBase class.

This works ok.

Siegfried

 

 

JonnyBee replied on Thursday, January 20, 2011

The Bugid says that ReadOnlyBase should NOT have a default DataPortal_Fetch.

This means that your code will no longer need to override a base class method, so you  much change from:

protected override void DataPortal_Fetch(object criteria)

to

private void DataPortal_Fetch(object criteria)

SNiedinger replied on Thursday, January 20, 2011

Yes, that makes sense. Thank you.

The purpose of the private DataPortal_Fetch method would thus only be the 'general' method for data retrieval in that class, I assume.

I try to follow the same structure as in the CSLA sample BOs. mmm.. perhaps I need to check out the new 4.1 samples to see how Rocky does it! :)

Kewl beans!

Siegfried

 

 

 

 

Copyright (c) Marimer LLC