Scry.Client
0.1.0-beta.13
dotnet add package Scry.Client --version 0.1.0-beta.13
NuGet\Install-Package Scry.Client -Version 0.1.0-beta.13
<PackageReference Include="Scry.Client" Version="0.1.0-beta.13" />
<PackageVersion Include="Scry.Client" Version="0.1.0-beta.13" />
<PackageReference Include="Scry.Client" />
paket add Scry.Client --version 0.1.0-beta.13
#r "nuget: Scry.Client, 0.1.0-beta.13"
#:package Scry.Client@0.1.0-beta.13
#addin nuget:?package=Scry.Client&version=0.1.0-beta.13&prerelease
#tool nuget:?package=Scry.Client&version=0.1.0-beta.13&prerelease
Scry.Client
Client-side LINQ provider for Scry. Write ordinary LINQ against the source-generated query models; Scry captures it, serializes it to the query AST, and sends it to the server. No EF dependency, so it stays small in a trimmed Blazor WebAssembly app and light in a WPF, Windows Forms, or console client.
This package also ships the Scry source generator, so a client project needs only a <ScryModelDll> path to the server model's built DLL — never a reference to it.
<a id='snippet-clientModelPath'></a>
<ScryModelDll>$(MSBuildThisFileDirectory)..\Sample.Model\bin\$(Configuration)\net10.0\Sample.Model.dll</ScryModelDll>
<sup><a href='/samples/Sample.WebClient/Sample.WebClient.csproj#L7-L10' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientModelPath' title='Start of snippet'>anchor</a></sup>
A model shipped as a NuGet package is pointed at inside the package, which is downloaded and never referenced: see The model as a package.
Register the client over a named HttpClient, so its base address — and any handler pipeline it grows — stays separate from every other call the application makes:
<a id='snippet-clientRegistration'></a>
var services = builder.Services;
services.AddHttpClient(
"scry",
_ => _.BaseAddress = new(builder.HostEnvironment.BaseAddress));
services.AddScryClient(
"/api/query",
_ => _.GetRequiredService<IHttpClientFactory>().CreateClient("scry"));
services.AddScoped<ScryQuery>();
<sup><a href='/samples/Sample.WebClient/Program.cs#L14-L23' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientRegistration' title='Start of snippet'>anchor</a></sup>
Blazor WebAssembly is the exception: there is one HttpClient, the browser backs it, and it already points at the app's own origin, so nothing needs disambiguating and the shorter overload avoids pulling Microsoft.Extensions.Http into the payload.
<a id='snippet-clientWasmRegistration'></a>
services.AddScoped(
_ => new HttpClient
{
BaseAddress = new("https://localhost")
});
services.AddScryClient("/api/query");
services.AddScoped<ScryQuery>();
<sup><a href='/samples/Sample.Tests/ClientRegistrationTests.cs#L19-L27' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientWasmRegistration' title='Start of snippet'>anchor</a></sup>
<a id='snippet-clientQuery'></a>
employees = await Query
.Employee
.Where(_ => _.Active)
.OrderBy(_ => _.Name)
.Select(_ => new EmployeeRow(_.Name, _.Status, _.Manager!.Name, _.Department!.Name))
.ToListAsync();
<sup><a href='/samples/Sample.WebClient/Pages/Index.razor.cs#L82-L89' title='Snippet source file'>snippet source</a> | <a href='#snippet-clientQuery' title='Start of snippet'>anchor</a></sup>
Docs: Getting started · Writing queries · Source generator · The model as a package
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Scry.Wire (>= 0.1.0-beta.13)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Scry.Client:
| Package | Downloads |
|---|---|
|
Scry.Client.SignalR
Sends Scry queries, streams and live queries over a SignalR hub connection, so many live queries share one connection. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.13 | 0 | 10/7/2026 |
| 0.1.0-beta.12 | 49 | 10/1/2026 |
| 0.1.0-beta.11 | 48 | 9/30/2026 |
| 0.1.0-beta.10 | 54 | 9/24/2026 |
| 0.1.0-beta.9 | 77 | 9/8/2026 |
| 0.1.0-beta.7 | 68 | 9/4/2026 |
| 0.1.0-beta.6 | 63 | 9/4/2026 |
| 0.1.0-beta.5 | 74 | 8/30/2026 |
| 0.1.0-beta.4 | 79 | 8/15/2026 |
| 0.1.0-beta.3 | 81 | 8/2/2026 |
| 0.1.0-beta.2 | 71 | 7/31/2026 |
| 0.1.0-beta.1 | 69 | 7/26/2026 |