Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. List(of Table name ) How to avoid , appending the duplicate records in this variable

List(of Table name ) How to avoid , appending the duplicate records in this variable

Scheduled Pinned Locked Moved LINQ
csharpalgorithmstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Garg
    wrote on last edited by
    #1

    Hi, I have a variable of List type Dim list as List(of TableName) when this list get populated with records, at that time while populating, I wanted to check whether the record I am going to insert into this list, does it already exit into it or not. Somebody told me that I think I should use the predicates. I was searching for the same in google, but could not find it in VB.net. Can you provide me any link? Is there any alternative to do the same?

    If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!

    T 1 Reply Last reply
    0
    • P Pankaj Garg

      Hi, I have a variable of List type Dim list as List(of TableName) when this list get populated with records, at that time while populating, I wanted to check whether the record I am going to insert into this list, does it already exit into it or not. Somebody told me that I think I should use the predicates. I was searching for the same in google, but could not find it in VB.net. Can you provide me any link? Is there any alternative to do the same?

      If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!

      T Offline
      T Offline
      TylerBrinks
      wrote on last edited by
      #2

      http://www.google.com/search?source=ig&hl=en&rlz=1W1GGLL_en&q=vb.net+predicate&aq=0&oq=vb.net+predi[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups