SubSonic Forums
All Your Database Are Belong To Us

RemoveAll

Latest post 08-19-2008 8:48 AM by pqsik. 2 replies.
  • 08-18-2008 4:14 PM

    • pqsik
    • Top 500 Contributor
    • Joined on 02-02-2008
    • Posts 7

    RemoveAll

     Hi all,

    Can anyone give me an example of how to use the removeall from a collection

    I'm using 2.0.3

    PartNumber = "TH-WG67" 

    PartNumber is not the key field

    CollectionOne.RemoveAll(PartNumber)

    Thanks

     

    Filed under:
  • 08-18-2008 4:17 PM In reply to

    Re: RemoveAll

    Is this the one from List<T>?

    check out http://msdn.microsoft.com/en-us/library/wdka673a.aspx

    This will only remove it from the collection not from the DB

    If I am I because I am I, and You are You because You are You, then I am I, and you are you. But If I am I because You are You, and You are You because I am I, then I am not I and You are not You. -Rabbi of Kotzk

  • 08-19-2008 8:48 AM In reply to

    • pqsik
    • Top 500 Contributor
    • Joined on 02-02-2008
    • Posts 7

    Re: RemoveAll

     thanks for your reply, I will try that and hope I can work it out.

Page 1 of 1 (3 items) | RSS