DbExpressionBuilder.Distinct Method (DbExpression)
Creates a new DbDistinctExpression that removes duplicates from the given set argument.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- argument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that defines the set over which to perfom the distinct operation.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbDistinctExpressionA new DbDistinctExpression that represents the distinct operation applied to the specified set argument.
Exception | Condition |
---|---|
ArgumentNullException | argument is null. |
ArgumentException | argument does not have a reference result type. |