Is it Ok to define DP Fetch Like this.

Is it Ok to define DP Fetch Like this.

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


Vinodonly posted on Wednesday, September 14, 2011

This is a very simple and basic question.. normally we are using singlecriteria class for factory methods and dataportal methods.. in my case, there are multiple params involved

is it ok to define fetch like this

 

protected 

 

 

void DataPortal_Fetch(SortedList<<string, int>> MyParams)

same way the the factory method like this

public

 

 

static SrcDCReq GetSrcDCReq(SortedList<string, int> MyParams)

{

 

 

return DataPortal.Fetch<SrcDCReq>(MyParams);

}

JonnyBee replied on Wednesday, September 14, 2011

Which version are you using? Do you use remote dataportal?

SingleCriteria is no longer required in Csla 4.2 (in fact should considered Obsolete).

The main concern would dbe in SL where all lists should inherit from Mobilelist in order to be serialized by the Mobileformatter.
When using BinaryFomatter or NetDataContractSerializer (NET 4) you can use this code so long as the input object is serializable.

Vinodonly replied on Thursday, September 15, 2011

i'm using 3.8.3 and not using remote dataportal..

my app is also winforms..

Ramonkirk replied on Thursday, September 15, 2011

well say by JonnyBee, i read your answer.

EZ Breathe Ventilation System


Copyright (c) Marimer LLC