Search the docs
Languages
/
.NET
Methods
The .NET SDK for SurrealDB enables simple and advanced querying of a remote or embedded database.
Runs a set of SurrealQL statements against the database.
Method Syntax
await db.Query(sql)
sql
cancellationToken
// Execute query with paramsconst string table = "person";var result = await db.Query($"CREATE person; SELECT * FROM type::table({table});");// Get the first result from the first queryvar created = result.GetValue<Person>(0);// Get all of the results from the second queryvar people = result.GetValue<List<Person>>(1);
Was this page helpful?
Previous
Patch
Next
RawQuery