Uniqueness
-
I've ordered my Linq book, but since it has not arrive and I'm trying to finish a project, I have a question. Is there a slick Linq command to find out if a value in a NON key field (column) is unique? The old fashion way of retrieving via a where clause will get the job done, just wondered if there is a short cut.
-
I've ordered my Linq book, but since it has not arrive and I'm trying to finish a project, I have a question. Is there a slick Linq command to find out if a value in a NON key field (column) is unique? The old fashion way of retrieving via a where clause will get the job done, just wondered if there is a short cut.
If you are trying to save unique data, before saving just check if that field already having that value. Where clause is enough to do that. :)
Arun Jacob http://codepronet.blogspot.com/
-
If you are trying to save unique data, before saving just check if that field already having that value. Where clause is enough to do that. :)
Arun Jacob http://codepronet.blogspot.com/
Arun, Was looking for an even faster shortcut. Already created the lookup in where clause. Thanks for the response. Steve
-
Arun, Was looking for an even faster shortcut. Already created the lookup in where clause. Thanks for the response. Steve
Hi please use group by having command in LINQ to find the value is unique or not. If C# then try using Lambda expression to filter out the unwanted values. Thanks, Thani
India is Mythical and so we are