EntityCommand.ExecuteScalar Method ()
Executes the command, and returns the first column of the first row in the result set. Additional columns or rows are ignored.
Assembly: EntityFramework (in EntityFramework.dll)
Return Value
Type: System.ObjectThe first column of the first row in the result set, or a null reference (Nothing in Visual Basic) if the result set is empty.