Repeating Values

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top