Click here to Skip to main content
15,891,184 members

Comments by SandhyaPillai (Top 10 by date)

SandhyaPillai 18-Jan-13 13:47pm View    
yep :) seconds mount up to min.

waiting for others input........thank you very much.
SandhyaPillai 18-Jan-13 11:44am View    
For a single agency method takes only few seconds to get the required result. Method has a complicated business logic, inspite of that it takes only few seconds.
Method is faster, no doubt. Now the quesyion is how I can improve the timing if multiple agencies are selected? User can select 1 to all (500 + agencies). Problem arises if they choose to get data for all. I am running on .net3.5, parallel class is not an option. I was just reading up on that since another developer suggested that. Looks like it is available oly in 4.

There is no requirement forcing me to use multithreading, neither I know much about it. I am just looking for the right approach.
SandhyaPillai 5-Dec-12 16:06pm View    
Thank you very much :)
SandhyaPillai 5-Dec-12 15:52pm View    
oops my mistake.......
modified interface as follows.....

public interface IGOS
{
string GOS_Seq { get; set; }
string Rec1_Amount { get; set; }
string Rec2_Amount { get; set; }
}
It works but I added only elements I need. Should I add all common elements from

GOSMOFAmount , GOSFTEPositions classsomething as follows: public interface IGOS { string GOS_Seq { get; set; } string Bud_Amount { get; set; } string Rec1_Amount { get; set; } string Rec2_Amount { get; set; } }
SandhyaPillai 5-Dec-12 15:11pm View    
can u give a code sample?

I created IGOS interface as follows
public interface IGOS{}

added inheritance to the classes
public class GOSMOFAmount :IGOS
public class GOSOOEAmount :IGOS

then defined following method
private static List<t> RemUnwantedRows<t>(List<t> lstData) where T: IGOS

But inside the method, when i do the following, it gives error
"T does not contain definition for Rec1_Amount "
lstfoundEmpty = lstData.FindAll(c =>
c.Rec1_Amount == "0" &&
c.Rec1_Amount == "0");