alternative to linq to query in SQlite c# (lambda compile error)

ozkaro 66 Reputation points
2021-06-11T03:42:37.283+00:00

Hi there i need to compare each character in a string data from database and vice versa in any order but i have this error "cannot compile: lambda"

var query = dbcon.Table<userDatabase>().Where(x => x.components.All(j => j.Equals(name.ToCharArray()))).ToListAsync();

I remember use the "using statements" to connect to the databases and foreach to access to the data but in this version of sqlite I don't know how use it and i can't find info about it

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,737 questions
{count} votes

1 answer

Sort by: Newest
  1. Alessandro Caliaro 4,181 Reputation points
    2021-06-11T10:47:52.903+00:00

    I think you can use the "query" method to execute a select

    sqlite-net

    manual query

    0 comments No comments