Hi,

Thanks for the reply........ :-) 

 

Actually there is no primary key or a composite key in an entity. I'm
working on C#. The data is not retrieved from DB but from client side. I
want to remove the duplicates before pushed in to DB.

 

Class TestEntity

{

            Int FilterID = 0 //Primay key in DB. Populated when it is
retrieved from DB.

            bool FilterFlag = false;

            int FilterType = 0; //(integer value(selected value) will be
taken from drop down list)

            int FilterVlaue = 0; //(integer value(selected value) will
be taken from drop down list)

}

 

There is no primay key before the insertion in to DB.

 

Thanks and Regards,

 Vimal

________________________________

Wipro Technologies | Tower- 8, Electronics City, Bangalore| Extn 82234

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Jayanthi Prakash
Sent: Friday, August 15, 2008 5:44 AM
To: [email protected]
Subject: [.NetIndia] Re: Duplication Removal From List<T> in C# 2.0

 

Sure, i can help you with that. But tell me on what condition we are
deleting i.e what is the primary key or combination key. if this is not
the case then it is very difficult to do.

 

is this C# code or something you are trying........send me more
details....

 

Top of mind comment: "Distinct" is available in SQL, as well as in
Dataset of .net.

On Thu, Aug 14, 2008 at 5:22 AM, <[EMAIL PROTECTED]> wrote:

Hi guys,

Can any one help me to remove the duplication from a list of entities?
Entity contains three fields Filter Flag(Yes/No), Filter Type(e.g.:
a,b,cd,e,f,g,h,i) and Filter Value(numeric value).

 

Thanks and Regards,

 Vimal

________________________________

Wipro Technologies | Tower- 8, Electronics City, Bangalore| Extn 82234

 


Thanks and Regards,
Surya Prakash Jayanti.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
".NetIndia" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TechdotNetIndia?hl=en
http://www.satheeshbabu.com
http://www.satheeshbabu.blogspot.com/
-~----------~----~----~----~------~----~------~--~---

Reply via email to