Repeating Values

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have the following:

List<PostsTag> updated = (from t in
(from t in database.Tags
where form.Contains(t.Name)
select t).ToList()
select new PostsTag {
PostID = paper.Post.PostID,
TagID = t.TagID
}).ToList();

I am not sure about something: if form has two records with the same
Name I want to prevent errors in my query.

Basically, I want to not have repeating names ...

Thanks,
Miguel
 
Back
Top