score:1
there should be more than one record in the table with the same id 17 in your database.
if you need only the first record of the search result then you can use firstordefault method.
var jfja = re.users.where(u => u.userid == 17).firstordefault();
Source: stackoverflow.com
Related Query
- Bind a LINQ query to FastReport and get only one row of data
- Get excel cell value with Row and Column Position through open xml sdk linq query
- linq query to join two tables and get the count from one table values from the other
- Limit data query and get only last 1000 rows
- Pull data from multiple tables in one SQL query using LINQ and Entity Framework (Core)
- Datatable LINQ select datarow only returning one row and how to order
- Joining Two list using LINQ Query and displaying only relevant data
- how to fetch multiple table data in a single linq query and bind it to a autocomplete search model
- Query XML to pull out one record and bind data to individual text blocks
- LINQ Query to traverse treeview and get data
- Linq group by and then get only one of the items
- How to get data of atleast one id match using linq query in c#
- Get data by filtering and grouping LINQ query
- How to get a strongly typed linq query of a data table and database
- linq query to get dependent data in one connection using entity framework 6
- Get data from database using linq query and display it in dynamically generated labels in repeater
- Unable to get linq query data in the async ActionResult with await and task, Error: await can't be used with async method
- Linq query and group by data from table which has one to many relationship?
- LINQ Query - Only get Order and MAX Date from Child Collection
- LINQ Query Syntax: Group By and OrderBy and take one row
- how to fetch data from database using linq query for relationship 1:N and N:N (between 3 entity) in asp.net mvc EF code first?
- How can I bind a query with a join to a GridView, with a Linq datasource with a business layer and data access layer
- Linq and SQL, get only some data
- Query with many-to-many relationship by linQ and filter result/ Get dynamic data by LINQ
- How to group and subgroup and get data from a linq query
- Get sum of two columns in one LINQ query
- Take the first five elements and the last five elements from an array by one query using LINQ
- Get Max and Min in a single LINQ query
- Get sum of two columns in one LINQ query without grouping
- Get max & min from Entity Framework, in one query and with best query possible
More Query from same tag
- What is the equivalent DISTINCT(sql server) in the Linq
- Parent/Children Xml to DTO Object Model with LINQ
- Linq to XML - parse a node into dictionary
- linq find in which position is my object in List
- Create XML file from collection list
- Exception creating JSON with LINQ
- Sum equal data in DataTable and pass them to a new DataTable C #
- Join 3 XML document at specific attribute and get single XML document using LINQ in C#
- Edit List contains objects which themselves contain objects, and so on
- Update class property inside Enumerable.Zip linq c#
- Filtering Windows logs using lambda expressions on non-IEnumerable types
- linq to sql, begin with query
- LINQ - GroupBy Year/Month
- How should i handle LINQ internal exceptions?
- Linq to select objects from two lists based on content
- Fill array of objects from ConcurrentDictionary
- What is the correct way to perform this sort operation?
- Why IEnumerable.ToList() return fields in alphabetical order?
- Unable to cast Anonymous Type from 'System.Linq.IQueryable' to 'System.Data.Entity.Core.Objects.ObjectQuery'
- Why are anonymous types in .NET implemented as reference type?
- Setting up linq to sql context
- Is there an example of Ix.NET (System.Interactive) somewhere?
- C# Linq to SQL is contains safe for sql injections
- Expression cannot contain lambda expressions
- Normalizing a flat file with Linq
- Why Linq to Entities cannot convert this call to SQL?
- LINQ - to XML Schema - import of multiple XSD files (.NET)
- NHibernate - Select Id from reference column without join
- Joins and subqueries in LINQ
- Contains method for comparing in multiple table